* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 20px;
    color: #2c3e50;
}

.page {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    animation: pulse 0.5s ease-out forwards;
    opacity: 0;
}

.page.active {
    display: block;
    opacity: 1;
}

@keyframes pulse {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.01);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-page {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.home-page.active {
    display: flex;
    animation: fadeIn 0.6s ease-out;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 60px 40px;
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.logo {
    margin-bottom: 40px;
    cursor: pointer;
}

.logo img {
    max-width: 180px;
    height: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.logo:hover img {
    transform: scale(1.08);
}

h1 {
    font-size: 32px;
    color: #1a2332;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 28px;
    color: #1a2332;
    margin-bottom: 24px;
    font-weight: 700;
}

h3 {
    font-size: 20px;
    color: #0052cc;
    margin-bottom: 16px;
    font-weight: 600;
}

.subtitle,
p {
    color: #5a6c7d;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.button-group.small-buttons {
    gap: 16px;
    justify-content: flex-start;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 52, 204, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    color: white;
    min-width: 280px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 52, 204, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: #0052cc;
    border: 2px solid #e0e6f2;
    min-width: 200px;
}

.btn-secondary:hover {
    background: #f8faff;
    border-color: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 52, 204, 0.15);
}

.btn-back {
    background: transparent;
    color: #0052cc;
    padding: 10px 16px;
    border-radius: 8px;
    min-width: auto;
    font-size: 14px;
    box-shadow: none;
}

.btn-back:hover {
    background: #f0f5ff;
    transform: translateX(-2px);
}

.disclaimer {
    color: #8a96a8;
    font-size: 12px;
    margin-top: 12px;
    margin-bottom: 32px;
}

.footer {
    border-top: 1px solid #e8ecf1;
    padding-top: 30px;
    color: #5a6c7d;
    font-size: 14px;
}

.footer a,
.footer-section a {
    color: #0052cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover,
.footer-section a:hover {
    color: #003d99;
    text-decoration: underline;
}

.eligibility-page {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 40px;
    animation: slideInUp 0.6s ease-out;
}

.header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ecf1;
}

.form-section {
    margin-bottom: 30px;
}

.form-section p {
    color: #5a6c7d;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.example {
    background: #f8faff;
    padding: 12px 16px;
    border-left: 3px solid #0052cc;
    margin-bottom: 20px;
    font-size: 14px;
    color: #0052cc;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.example:hover {
    background: #f0f5ff;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #0052cc;
    box-shadow: 0 0 0 3px rgba(0, 52, 204, 0.1);
}

.search-box button {
    padding: 12px 20px;
    background: #0052cc;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box button:hover {
    background: #003d99;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 52, 204, 0.3);
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#map {
    width: 100%;
    height: 100%;
}

.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    border-radius: 12px;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.marker-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
    z-index: 1000;
    text-align: center;
}

.marker-pin {
    font-size: 48px;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4));
    line-height: 1;
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    70% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.marker-address {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    font-weight: 600;
    color: #0052cc;
    white-space: nowrap;
    margin-top: 8px;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: slideInUp 0.6s ease-out 0.2s backwards;
}



.loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #f0f0f0;
    border-top: 2px solid #0052cc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.footer-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e8ecf1;
    color: #5a6c7d;
    font-size: 14px;
}

.logo-footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.logo-footer:hover {
    opacity: 1;
    transform: scale(1.05);
}

.logo-footer img {
    width: 100%;
    height: auto;
}

.validate-btn {
    width: 100%;
    margin-top: 20px;
}

.validate-btn:disabled {
    background: linear-gradient(135deg, #c0c6cc 0%, #a8adb3 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.validate-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 52, 204, 0.1);
}

.address-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    color: #991b1b;
    font-size: 14px;
    text-align: center;
}

.address-error a {
    color: #991b1b;
    font-weight: 600;
    text-decoration: none;
}

.address-error a:hover {
    text-decoration: underline;
}

select.naf-input {
    padding: 12px 15px;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

select.naf-input:focus {
    outline: none;
    border-color: #0052cc;
    box-shadow: 0 0 0 3px rgba(0, 52, 204, 0.1);
}

select.naf-input:disabled {
    background: #f5f7fa;
    cursor: not-allowed;
    opacity: 0.6;
}

.not-eligible-message {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.not-eligible-message h3 {
    color: #991b1b;
    margin-bottom: 16px;
}

.not-eligible-message p {
    color: #7c2d12;
    margin-bottom: 12px;
}

.naf-search-container {
    position: relative;
    width: 100%;
}

.naf-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.naf-input:focus {
    outline: none;
    border-color: #0052cc;
    box-shadow: 0 0 0 3px rgba(0, 52, 204, 0.1);
}

.naf-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d5dce5;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.naf-suggestions.active {
    display: block;
    animation: slideInUp 0.3s ease-out;
}

.naf-suggestion-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.naf-suggestion-item:hover {
    background: #f8faff;
    transform: translateX(4px);
}

.naf-suggestion-item.selected {
    background: #e8f0ff;
    font-weight: 600;
}

.naf-code {
    font-weight: 600;
    color: #0052cc;
    display: block;
}

.naf-label {
    color: #5a6c7d;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.address-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    background: #f8faff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e6f2;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row-two {
    display: flex;
    gap: 12px;
}

.form-row-two>* {
    flex: 1;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #0052cc;
    box-shadow: 0 0 0 3px rgba(0, 52, 204, 0.1);
}

.form-input.postal {
    flex: 0 0 120px;
}

.form-input.city {
    flex: 1;
}

@media (max-width: 600px) {
    .container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 24px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        min-width: 100%;
    }

    .header-section {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .map-wrapper {
        height: 300px;
    }

    .logo-footer {
        width: 80px;
        bottom: 15px;
        right: 15px;
    }

    .recap-container {
        flex-direction: column;
    }
}

/* =========================================================
    RECAP ET ELIGIBILITE
========================================================= */

.recap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.recap-section {
    background: #ffffff;
    border: 1px solid #d5dce5;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.5s ease-out forwards;
}

.recap-section:hover {
    border-color: #0052cc;
    box-shadow: 0 8px 24px rgba(0, 52, 204, 0.12);
    transform: translateY(-2px);
}

.recap-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.recap-icon {
    font-size: 24px;
    min-width: 28px;
    opacity: 0.7;
}

.recap-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0052cc;
    margin: 0;
}

.recap-value {
    font-size: 15px;
    color: #1a2332;
    font-weight: 500;
    padding-left: 40px;
    line-height: 1.6;
}

.recap-value.yes {
    color: #22c55e;
}

.recap-value.no {
    color: #ef4444;
}

.eligibility-result {
    margin-top: 30px;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    animation: slideInUp 0.6s ease-out 0.3s backwards;
}

.eligibility-result.eligible {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #86efac;
}

.eligibility-result.not-eligible {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
}

.eligibility-result h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
}

.eligibility-result.eligible h3 {
    color: #15803d;
}

.eligibility-result.not-eligible h3 {
    color: #991b1b;
}

.eligibility-result p {
    margin: 0;
    font-size: 15px;
}

.eligibility-result.eligible p {
    color: #166534;
}

.eligibility-result.not-eligible p {
    color: #7c2d12;
}

.logo-center {
    text-align: center;
    margin-bottom: 30px;
}

.logo-center img {
    max-width: 250px !important;
    width: 250px;
    height: auto;
}

/* =========================================================
    FORMULAIRE CONTACT
========================================================= */

.contact-section {
    margin-bottom: 40px;
}

.status-choice {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.radio-card {
    display: block;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid #e0e6f2;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
}

.radio-card input[type="radio"]:checked+.radio-card-content {
    border-color: #0052cc;
    background: #f8faff;
}

.radio-card-content::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: white;
    margin-right: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-card:hover .radio-card-content::before {
    border-color: #0052cc;
}

.radio-card input[type="radio"]:checked+.radio-card-content::before {
    border-color: #0052cc;
    box-shadow: inset 0 0 0 5px #0052cc;
}

.radio-card:hover .radio-card-content {
    border-color: #0052cc;
    transform: translateX(4px);
}

.radio-icon {
    font-size: 24px;
}

.radio-label {
    font-size: 14px;
    color: #1a2332;
    font-weight: 500;
}

.gender-choice {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-inline input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-inline span {
    font-size: 14px;
    color: #1a2332;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 8px;
}

.field-help {
    font-size: 12px;
    color: #8a96a8;
    margin-top: 6px;
    font-style: italic;
}

.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #0052cc;
    box-shadow: 0 0 0 3px rgba(0, 52, 204, 0.1);
}

.captcha-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8faff;
    border: 1px solid #e0e6f2;
    border-radius: 8px;
}

.captcha-placeholder input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.captcha-placeholder label {
    font-size: 14px;
    color: #1a2332;
    cursor: pointer;
}

/* =========================================================
    POPUP SUCCESS
========================================================= */

.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.success-popup.active {
    display: flex;
}

.success-popup-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease-out;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-popup-content h2 {
    color: #15803d;
    margin-bottom: 16px;
    font-size: 28px;
}

.success-popup-content p {
    color: #5a6c7d;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.countdown {
    color: #0052cc;
    font-weight: 600;
    font-size: 14px;
    margin-top: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Classe pour masquer le bouton NAF au départ */
.hidden {
    display: none !important;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #1a2332;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* =========================================================
    ENCADRÉS DU FORMULAIRE - NOUVEAUX STYLES
========================================================= */

.motif-adhesion-box,
.adresse-facturation-box,
.dae-box {
    background: #ffffff;
    border: 3px solid #1d2b68;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(29, 43, 104, 0.1);
}

.motif-adhesion-box h4,
.adresse-facturation-box h4,
.dae-box h4 {
    color: #1d2b68;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.motif-adhesion-box p,
.dae-box p {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

/* Radio options pour motif adhésion */
.radio-option {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border: 2px solid #e0e6f2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: #1d2b68;
    background: #fff5f7;
    transform: translateX(4px);
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #1d2b68;
    background: #fff5f7;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #1d2b68;
}

.radio-option span {
    font-size: 14px;
    color: #1a2332;
    font-weight: 500;
}

/* Champs texte inline dans les radio options */
.form-input-inline {
    padding: 8px 12px;
    border: 2px solid #d5dce5;
    border-radius: 6px;
    font-size: 14px;
    margin: 0 4px;
    min-width: 180px;
    transition: all 0.2s ease;
}

.form-input-inline:focus {
    outline: none;
    border-color: #1d2b68;
    box-shadow: 0 0 0 3px rgba(29, 43, 104, 0.1);
}

input[type="date"].form-input-inline {
    min-width: 160px;
}

/* Section titre avec emoji */
.contact-section h3 {
    color: #1a2332;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #1d2b68;
}

/* Questions avec icônes */
.question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e6f2;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.question-row:hover {
    border-color: #0052cc;
    background: #f8faff;
}

.question-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #1a2332;
    flex: 1;
}

.question-icon {
    font-size: 20px;
}

/* =========================================================
    RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    .form-row-two {
        flex-direction: column;
    }

    .question-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* EFFECTIFS CARD */
.employee-card {
    background: #ffffff;
    border: 2px solid #e0e6f2;
    /* Default border */
    border-top: 4px solid #0052cc;
    /* Blue top frame */
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    transition: all 0.3s ease;
    animation: slideInUp 0.4s ease-out;
    box-shadow: 0 4px 12px rgba(0, 52, 204, 0.05);
    /* Slight blue shadow */
}

.employee-card:hover {
    box-shadow: 0 8px 24px rgba(0, 52, 204, 0.1);
    border-color: #0052cc;
}

.employee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.employee-header h4 {
    color: #0052cc;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.btn-remove {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: #fecaca;
    color: #dc2626;
}

.risks-section {
    background: #f8faff;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.risks-section h5 {
    color: #1a2332;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
}

.risks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 12px;
}

.checkbox-simple {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.2s;
}

.checkbox-simple:hover {
    color: #0052cc;
}

.checkbox-simple input {
    margin-top: 3px;
    cursor: pointer;
}

.form-row-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.form-row-four {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.form-row-five {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

@media (max-width: 900px) {

    .form-row-four,
    .form-row-five {
        grid-template-columns: 1fr 1fr;
    }

    .risks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .form-row-three,
    .form-row-four,
    .form-row-five {
        grid-template-columns: 1fr;
    }

    .risks-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix select width and overflow */
.emp-pcs {
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.input-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 1px #dc2626 !important;
}
