/* =========================================
   BIOCOOP PARTICIPATION FORM STYLES
   ========================================= */

.biocoop-form-wrapper { 
    max-width: 800px; 
	margin: auto;
}

/* Success / Error messages */
.biocoop-success-message {
    background: #2d5a3d;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

.biocoop-error-message {
    background: #c0392b;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
}

/* Grid: two columns */
.biocoop-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    margin-bottom: 28px;
}

@media (max-width: 700px) {
    .biocoop-form-grid {
        grid-template-columns: 1fr;
		gap: 14px;
    }
    .biocoop-form-wrapper {
        padding: 24px 18px;
    }
}

/* Columns */
.biocoop-col-left,
.biocoop-col-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Input fields */
.biocoop-field input[type="text"],
.biocoop-field input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 15px;
    font-size: 15px;
    color: #555;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    outline: none;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
	font-family: 'Lato Bold';
}
.biocoop-field input::placeholder {
	color: #ABBED2
}
 
 
/* Address autocomplete containers */
.biocoop-magasin-container,
.biocoop-adresse-container {
    position: relative;
}

#biocoop-adresse-autocomplete,
#biocoop-magasin-autocomplete {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 200;
    overflow: hidden;
    animation: biocoop-ac-in 0.18s ease-out;
}

#biocoop-adresse-autocomplete.show,
#biocoop-magasin-autocomplete.show {
    display: block;
}

@keyframes biocoop-ac-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.biocoop-ac-item {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f0ebe0;
    transition: background 0.15s;
}

.biocoop-ac-item:last-child { border-bottom: none; }

.biocoop-ac-item:hover { background: #fdf8f0; }

.biocoop-ac-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.biocoop-ac-sub {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.biocoop-ac-loading,
.biocoop-ac-empty {
    color: #aaa;
    font-size: 13px;
    cursor: default;
    font-style: italic;
}

.biocoop-ac-loading:hover,
.biocoop-ac-empty:hover { background: none; }

/* Nearest stores selectable list */
#biocoop-nearest-store {
    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    max-height: 320px;
    overflow-y: auto;
}

#biocoop-nearest-store::-webkit-scrollbar { width: 4px; }
#biocoop-nearest-store::-webkit-scrollbar-thumb { background: #c5d4c0; border-radius: 4px; }

.biocoop-storelist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.biocoop-storelist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0ebe0;
    transition: background 0.15s;
    outline: none;
}

.biocoop-storelist-item:last-child { border-bottom: none; }

.biocoop-storelist-item:hover,
.biocoop-storelist-item:focus { background: #fdf8f0; }

.biocoop-storelist-item.selected {
	background: var(--kaki);
}
.biocoop-storelist-item.selected .biocoop-storelist-name,
.biocoop-storelist-item.selected .biocoop-storelist-meta { color: #fff; }

.biocoop-storelist-name {
    font-size: 13px;
	font-family: 'Lato Bold';
    color: #1a2f23;
    flex: 1;
}

.biocoop-storelist-meta {
    font-size: 12px;
    color: #7a7a72;
    white-space: nowrap;
}

.biocoop-storelist-empty {
    padding: 16px;
    font-size: 13px;
    color: #aaa;
    font-style: italic;
    margin: 0;
}

/* Geolocation button row */
.biocoop-geoloc-row {
    display: flex;
    align-items: center;
}

.biocoop-geoloc-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
	font-family: 'Lato Bold';
}

.biocoop-geoloc-btn:hover {
    color: var(--orange);
    background: none;
    box-shadow: none;
}

.biocoop-geoloc-btn svg {
    flex-shrink: 0;
    color: #fff;
    stroke: #fff;
    /* geoloc target icon */
}

/* Friends green box */
.biocoop-friends-box {
	background: var(--vert);
	border-radius: 16px;
	padding: 20px 22px 18px;
	margin-top: 4px;
	border: 3px solid #C3EE66;
	transform: rotate(-2deg);
}

.biocoop-friends-title {
	color: #ffffff;
	font-size: 18px;
	line-height: normal;
	font-family: 'Lilita One';
	padding: 0 15px
}

#biocoop-friends-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.biocoop-friend-row input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    color: #555;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
	font-family: 'Lato Bold';
} 

.biocoop-friend-row input[type="email"]::placeholder {
    color: #ABBED2;
}

/* Add friend button */
.biocoop-add-friend-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.biocoop-add-friend-btn:hover {
    opacity: 0.85;
    background: none;
    box-shadow: none;
}

.biocoop-plus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    flex-shrink: 0;
}

.biocoop-friends-max {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    margin: 8px 0 0;
    font-style: italic;
}

/* Checkboxes */
.biocoop-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.biocoop-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.biocoop-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.biocoop-checkbox-custom {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 2px solid #1a3d6e;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    margin-top: 1px;
}

.biocoop-checkbox-label input[type="checkbox"]:checked + .biocoop-checkbox-custom {
    background: #1a3d6e;
    border-color: #1a3d6e;
}

.biocoop-checkbox-label input[type="checkbox"]:checked + .biocoop-checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    display: block;
    margin-top: -2px;
}

.biocoop-checkbox-text {
    font-size: 18px;
    color: #fff;
    line-height: 1.4;
	font-family: 'Lilita One'
}

.biocoop-rules-link {
    color: #FFFF00 !important;
    text-decoration: underline !important;
}

/* Submit row */
.biocoop-submit-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.biocoop-submit-btn { 
	font-size: 30px;
	border-radius: 15px !important;
	text-transform: uppercase;
	padding: 10px 25px !important; 
	position: relative !important;
	font-family: 'Azo Sans Uber' !important;
	background: var(--bordeaux) !important;
}
.biocoop-submit-btn:hover span {
	transform: rotate(0deg);
	display: block;
	transition: 0.2s;
}
.biocoop-submit-btn:hover span {
	transform: rotate(-4deg)
}

.biocoop-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.biocoop-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: biocoop-spin 0.7s linear infinite;
}

@keyframes biocoop-spin {
    to { transform: rotate(360deg); }
}

/* RGPD notice */
.biocoop-rgpd {
    margin-top: 32px;
    padding: 20px 24px;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.6;
    color: #555;
}

.biocoop-rgpd p {
    margin: 0 0 10px;
}

.biocoop-rgpd p:last-child {
    margin-bottom: 0;
}

.biocoop-rgpd a {
    color: #555;
    text-decoration: underline;
}

/* Friends consent note */
.biocoop-friends-consent {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: #666;
    font-style: italic;
}

