/* =============================================================================
   Gravity Forms — Champ Adhérents & Délégués
   ============================================================================= */

.gf-adherents-field {
    font-family: inherit;
}

.gf-adherents-group {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fafafa;
}

.gf-adherents-group-num{
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333 ;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gf-adherents-person {
    border: 1px solid #e8e8e8 !important;
    border-radius: 4px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    background: #fff !important;
}

.gf-adherents-person legend {
    font-weight: 600;
    padding: 0 8px;
    color: #555;
}

.gf-adherents-person-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.gf-adherents-field-wrap label {
    display: block;
    font-size: .85em;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.gf-adherents-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: .95em;
    box-sizing: border-box;
    transition: border-color .2s;
}

.gf-adherents-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,.15);
}

.gf-required {
    color: #c00;
}

.gf-adherents-field-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.gf-adherents-field-checkbox input {
    width: 10px;
    margin-right: 5px;
    order: 1;
}

.gf-adherents-field-checkbox label {
    order: 2;
    margin-bottom: 0;
}

.gf-adherents-field-accept_photo_rights {
    grid-column: 1 / -1;
}

.gf-adherents-section-title {
    font-size: 1em;
    font-weight: 700;
    margin: 24px 0 12px;
    color: #333;
    border-top: 2px solid #e0e0e0;
    padding-top: 16px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gf-adherents-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: .9em;
    font-weight: 600;
    transition: background .2s;
    margin-top: 4px;
}

.gf-adherents-add-btn:hover {
    background: #005a87;
}

.gf-adherents-remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: .85em;
    line-height: 1;
    color: #888;
    transition: color .2s, border-color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gf-adherents-remove-btn:hover {
    color: #c00;
    border-color: #c00;
}

.gf-adherents-entry strong {
    display: block;
    margin: 12px 0 4px;
    font-weight: 700;
}

.gf-adherents-entry-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9em;
    margin-bottom: 8px;
}

.gf-adherents-entry-table th,
.gf-adherents-entry-table td {
    padding: 5px 8px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.gf-adherents-entry-table th {
    background: #f0f0f0;
    font-weight: 600;
}

@media (max-width: 600px) {
    .gf-adherents-person-grid {
        grid-template-columns: 1fr;
    }
}
.gf-adherents-required {
    color: #c0392b;
    font-weight: bold;
}
