* {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            background: #f5f7fb;
            color: #1f2937;
        }

        .page {
            min-height: 100vh;
            padding: 50px 20px;
        }

        .form-wrapper {
            max-width: 720px;
            margin: auto;
            background: #fff;
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        }
        .name-fields {
            display: flex;
            gap: 20px;
        }

        .name-fields .form-group {
            flex: 1;
        }
/* =========================
   STEPPER
========================= */

.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 45px;
}

/* Gray line behind the steps */
.stepper::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e5e7eb;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 25%;
}

/* Circle */
.step-number {
    width: 36px;
    height: 36px;
    margin: auto;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    font-size: 15px;
}

/* Label */
.step-label {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

/* =========================
   ACTIVE STEP
========================= */

.step.active .step-number {
    background-color: #3D5AF1;
    color: #ffffff;

    box-shadow: 0px 0px 0.3px 6px #3d5bf150;
}

.step.active .step-label {
    color: #2563eb;
    font-weight: 600;
}

/* =========================
   COMPLETED STEP
========================= */

.step.completed .step-number {
    background: #16a34a;
    color: #ffffff;
}

/* Checkmark */
.step.completed .step-number::before {
    content: "✓";
    font-size: 22px;
    font-weight: bold;
}

/* Hide the original number */
.step.completed .step-number {
    font-size: 0;
}

/* =========================
   COMPLETED LABEL
========================= */

.step.completed .step-label {
    color: #2563eb;
    font-weight: 600;
}
        /* =========================
           FORM
        ========================= */

        .step-content {
            display: none;
        }

        .step-content.active {
            display: block;
        }

        h1 {
            margin-top: 0;
            margin-bottom: 8px;
            font-size: 28px;
        }

        .subtitle {
            color: #6b7280;
            margin-bottom: 30px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            font-weight: 600;
            margin-bottom: 8px;
        }

        input,
        textarea,
        select {
            width: 100%;
            padding: 13px 14px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 15px;
            outline: none;
        }

        input:focus,
        textarea:focus,
        select:focus {
            border-color: #2563eb;
        }

        textarea {
            min-height: 100px;
            resize: vertical;
        }

        /* =========================
           BUTTONS
        ========================= */

        .buttons {
            display: flex;
            justify-content: space-between;
            gap: 15px;
            margin-top: 30px;
        }

        button {
            border: none;
            border-radius: 8px;
            padding: 13px 25px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
        }

        .btn-primary {
            background: #273168;
            color: white;
            margin-left: auto;
        }

        .btn-primary:hover {
            background: #1d4ed8;
        }

        .btn-secondary {
            background: #e5e7eb;
            color: #374151;
        }

        .btn-success {
            background: #16a34a;
            color: white;
            width: 100%;
            font-size: 17px;
            padding: 15px;
        }

        /* =========================
           SOA
        ========================= */
        #id_discussion_products {
            margin-top: 12px;
        }


        .soa-product {
            padding: 13px 16px;
            margin-bottom: 8px;

            border: 1px solid #dee2e6;
            border-radius: 8px;

            background: #fff;

            transition: background 0.2s ease,
                        border-color 0.2s ease;
        }


        .soa-product:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
        }


        .soa-product label {
            display: flex;
            align-items: center;

            gap: 10px;

            margin: 0;

            cursor: pointer;

            font-weight: 500;
        }


        .soa-product input[type="checkbox"] {
            width: 18px;
            height: 18px;

            flex-shrink: 0;
        }

        /* Beneficiary information */

        #beneficiary-info {
            font-size: 14px;
            line-height: 1.6;

            color: #374151;
        }


        #beneficiary-info p {
            margin-bottom: 12px;
        }


        /* SOA consent */

        .soa-consent {
            margin-top: 25px;
            padding: 16px;

            background: #f8fafc;

            border: 1px solid #e5e7eb;
            border-radius: 8px;
        }


        .soa-checkbox {
            display: flex;
            align-items: flex-start;

            gap: 10px;

            margin: 0;

            cursor: pointer;

            font-size: 14px;
            line-height: 1.5;
        }


        .soa-checkbox input[type="checkbox"] {
            width: 18px;
            height: 18px;

            flex-shrink: 0;

            margin-top: 2px;
        }


        /* Error */

        #product-selection-error {
            margin-top: 5px;
        }


        /* =========================
           AGENT
        ========================= */

        .agent-card {
            text-align: center;
            padding: 30px;
            background: #f8fafc;
            border-radius: 12px;
            margin-bottom: 25px;
        }

        .agent-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: #dbeafe;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            font-size: 30px;
        }

        .agent-card h2 {
            margin: 5px 0;
        }

        .meeting-link {
            display: inline-block;
            margin-top: 10px;
            color: #2563eb;
            text-decoration: none;
            word-break: break-all;
        }

        /* =========================
           MOBILE
        ========================= */

        @media (max-width: 600px) {

            .page {
                padding: 20px 10px;
            }

            .form-wrapper {
                padding: 25px 20px;
            }

            .step-label {
                font-size: 11px;
            }

            h1 {
                font-size: 24px;
            }
        }

.thank-you-modal {
    display: none !important;

    position: fixed;
    z-index: 99999;
    inset: 0;

    background: rgba(0, 0, 0, 0.6);

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.thank-you-modal.show {
    display: flex !important;
}

.thank-you-modal-content {
    position: relative;

    width: 100%;
    max-width: 500px;

    background: white;
    border-radius: 12px;

    padding: 40px 30px;

    text-align: center;
}

.thank-you-icon,
.thank-you-error-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 20px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
}

.thank-you-icon {
    background: #28a745;
    color: white;
}

.thank-you-error-icon {
    background: #dc3545;
    color: white;

    display: none;
}

.thank-you-close {
    position: absolute;

    top: 10px;
    right: 15px;

    border: none;
    background: transparent;

    font-size: 30px;

    cursor: pointer;
}

.thank-you-modal-content h2 {
    margin-bottom: 15px;
}

.calendly-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
     display: none;
}

.calendly-section h3 {
    margin-bottom: 10px;
}

.calendly-section .btn-success {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;

    text-decoration: none;
    border-radius: 6px;
}