/* ============================================================ */
/* 1. RESET & BASIS                                             */
/* ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-color: #1f2937;
    --header-color: #2f4356;
    --accent-color: #d8232a;
    --white: #ffffff;
    --light-gray: #f9fafb;
    --border-color: #e5e7eb;
    --muted: #4b5563;
    --error: #d8232a;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================ */
/* 2. TOP BAR                                                   */
/* ============================================================ */
.top-bar {
    background-color: var(--header-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-text,
.language-select {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 10px;
}

/* ============================================================ */
/* 3. PAGINA HEADER                                             */
/* ============================================================ */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.swiss-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.header-actions {
    display: flex;
    gap: 20px;
}

.search-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.search-link:hover {
    color: var(--accent-color);
}

/* ============================================================ */
/* 4. NAVIGATIE                                                 */
/* ============================================================ */
.main-nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 15px 0;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--accent-color);
}

/* ============================================================ */
/* 5. HERO SECTIE                                               */
/* ============================================================ */
.main-content {
    padding: 40px 0;
    background-color: var(--white);
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

.hero-image {
    max-width: 100%;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ============================================================ */
/* 6. FAQ / HÄUFIGSTE ANLIEGEN SECTIE                           */
/* ============================================================ */
.faq-section {
    background-color: var(--light-gray);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 40px;
}

.faq-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.faq-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
}

.faq-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.faq-card-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    flex-grow: 1;
}

.faq-card-icon {
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.faq-card-icon svg {
    width: 16px;
    height: 16px;
}

/* ============================================================ */
/* 7. FOOTER                                                    */
/* ============================================================ */
.main-footer {
    background-color: var(--header-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* ============================================================ */
/* 8. MODAL OVERLAY & CONTENT                                   */
/* ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.35s ease, max-width 0.35s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Modal breder zodra een formulierstap actief is */
.modal-content.form-mode {
    max-width: 680px;
}

/* ============================================================ */
/* 9. MODAL HEADER                                              */
/* ============================================================ */
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-flag {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

/* Stap-indicator */
.modal-step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #cbd5e1;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.step-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.15);
}

/* ============================================================ */
/* 10. MODAL BODY & STAPPEN                                     */
/* ============================================================ */
.modal-body {
    padding: 28px 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active-step {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Welkomststap --- */
.modal-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.welcome-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 16px;
}

.welcome-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ============================================================ */
/* 11. LOADER                                                   */
/* ============================================================ */
.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0 40px;
    text-align: center;
}

.loader-spinner {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.loader-spinner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    border-top-color: var(--header-color);
    animation: spin 0.9s linear infinite;
}

.loader-spinner svg {
    animation: pulse 1.4s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.55; transform: scale(0.94); }
    50%      { opacity: 1;    transform: scale(1); }
}

.loader-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.loader-subtext {
    font-size: 13px;
    color: #6b7280;
}

/* ============================================================ */
/* 12. FORMULIER — SECTIETITEL & HIGHLIGHT BOX                  */
/* ============================================================ */
.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--header-color);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f6;
}

/* Highlight box met subtiele tint en diepte */
.form-note {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
    border-left: 3px solid var(--header-color);
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 24px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(47, 67, 86, 0.08);
}

/* ============================================================ */
/* 13. FORMULIER — VELDEN & LABELS                              */
/* ============================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-color);
    background-color: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: var(--header-color);
    box-shadow: 0 0 0 3px rgba(47, 67, 86, 0.12);
}

/* Foutstate — rode border */
.form-input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(216, 35, 42, 0.12);
}

/* Twee kolommen */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Foutmelding */
.form-error {
    display: none;
    font-size: 12.5px;
    color: var(--error);
    margin-top: 6px;
    font-weight: 500;
}

.form-error.visible {
    display: block;
}

/* ============================================================ */
/* 13c. SUMMARY BOX (stap 5)                                    */
/* ============================================================ */
.summary-box {
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.summary-section {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--header-color);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.summary-edit {
    font-size: 12px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.summary-edit:hover {
    text-decoration: underline;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    padding: 3px 0;
    gap: 12px;
}

.summary-row .label {
    color: #6b7280;
    flex-shrink: 0;
}

.summary-row .value {
    color: var(--text-color);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* ============================================================ */
/* 14. RADIO-OPTIES (KONTOTYP)                                  */
/* ============================================================ */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--white);
    position: relative;
}

.radio-option:hover {
    border-color: var(--header-color);
    background-color: #f8fafc;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.radio-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-color);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.radio-option input[type="radio"]:checked ~ .radio-mark {
    border-color: var(--accent-color);
}

.radio-option input[type="radio"]:checked ~ .radio-mark::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-option:has(input:checked) {
    border-color: var(--accent-color);
    background-color: #fef5f5;
    box-shadow: 0 0 0 3px rgba(216, 35, 42, 0.08);
}

.radio-option.error {
    border-color: var(--error);
}

.radio-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}
/* ============================================================ */
/* 14b. CHECKBOX-GROEP (BANKEN)                                 */
/* ============================================================ */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--white);
    font-size: 14px;
    position: relative;
}

.checkbox-option:hover {
    border-color: var(--header-color);
    background-color: #f8fafc;
}

.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-mark {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-mark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.checkbox-option input[type="checkbox"]:checked ~ .checkbox-mark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-option input[type="checkbox"]:checked ~ .checkbox-mark::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-option:has(input:checked) {
    border-color: var(--accent-color);
    background-color: #fef5f5;
    box-shadow: 0 0 0 3px rgba(216, 35, 42, 0.08);
}

.checkbox-option.error {
    border-color: var(--error);
}

/* Responsive: één kolom op mobiel */
@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}
/* ============================================================ */
/* 15. MODAL FOOTER & BUTTONS                                   */
/* ============================================================ */
.modal-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: var(--light-gray);
    flex-shrink: 0;
}

.btn {
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #b91c1a;
    box-shadow: 0 4px 6px rgba(216, 35, 42, 0.25);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

/* ============================================================ */
/* 16. RESPONSIVE                                               */
/* ============================================================ */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
    }

    .nav-list {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .faq-content {
        grid-template-columns: 1fr;
    }

    .faq-card {
        height: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .modal-content.form-mode {
        max-width: 95%;
    }
}
