* {
    box-sizing: border-box;
}

body {

    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #eef4ff,
            #f8fbff
        );

    color: #1f2937;

    min-height: 100vh;

}


.membership-wrapper {

    width: 100%;

    padding: 50px 20px;

}


.membership-card {

    max-width: 900px;

    margin: auto;

    background: white;

    border-radius: 24px;

    box-shadow:
        0 25px 70px rgba(30, 60, 100, 0.12);

    overflow: hidden;

}


.form-header {

    text-align: center;

    padding: 45px 30px 30px;

}


.logo {
    width: 100px;
    height: 100px;

    margin: 0 auto 20px auto;

    border-radius: 50%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}


.form-header h1 {

    margin: 0;

    font-size: 34px;

}


.form-header p {

    color: #6b7280;

    margin-top: 10px;

}


/* ==========================================
   PROGRESS
   ========================================== */

.progress-container {
    padding: 20px 60px 35px;
    position: relative;
}

.progress-line {
    position: relative;
    height: 4px;
    background: #e5e7eb;
    margin: 0 8%;
    top: 15px;
    z-index: 1;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: #2563eb;
    transition: width .4s ease;
}

.progress-steps {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;

    margin-top: -4px;
}

.progress-step {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    color: #9ca3af;
}

.progress-step span {
    position: relative;
    z-index: 3;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e5e7eb;

    border: 4px solid white;

    font-size: 13px;
    font-weight: 600;

    box-sizing: content-box;
}

.progress-step.active {
    color: #2563eb;
}

.progress-step.active span {
    background: #2563eb;
    color: white;
}

.progress-step.completed {
    color: #10b981;
}

.progress-step.completed span {
    background: #10b981;
    color: white;
}

/* FORM */

form {

    padding: 0 60px 50px;

}


.form-step {

    display: none;

}


.form-step.active {

    display: block;

    animation: fadeIn .35s ease;

}


@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateX(15px);

    }

    to {

        opacity: 1;

        transform: translateX(0);

    }

}


.step-heading {

    display: flex;

    gap: 18px;

    margin-bottom: 35px;

}


.step-number {

    font-size: 13px;

    font-weight: 700;

    color: #2563eb;

}


.step-heading h2 {

    margin: 0;

    font-size: 26px;

}


.step-heading p {

    margin-top: 7px;

    color: #6b7280;

}


/* SELECTION CARDS */

.selection-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

}


.selection-card {

    cursor: pointer;

}


.selection-card input {

    display: none;

}


.selection-content {

    border: 2px solid #e5e7eb;

    border-radius: 18px;

    padding: 30px;

    transition: .25s;

}


.selection-content:hover {

    border-color: #93c5fd;

    transform: translateY(-2px);

}


.selection-card input:checked
+ .selection-content {

    border-color: #2563eb;

    background: #eff6ff;

    box-shadow:
        0 10px 30px rgba(37,99,235,.12);

}


.selection-icon {

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: #2563eb;

    color: white;

    font-size: 24px;

    margin-bottom: 20px;

}


.selection-content h3 {

    margin: 0 0 8px;

}


.selection-content p {

    margin: 0;

    color: #6b7280;

    line-height: 1.6;

}


/* FIELDS */

.form-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

}


.field {

    margin-bottom: 20px;

}


.field.full {

    grid-column: 1 / -1;

}


.field label {

    display: block;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 8px;

}


.field input,
.field select,
.field textarea {

    width: 100%;

    padding: 14px 16px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    font-size: 15px;

    outline: none;

    transition: .2s;

    background: white;

}


.field input:focus,
.field select:focus,
.field textarea:focus {

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37,99,235,.1);

}


.section-title {

    font-size: 18px;

    font-weight: 700;

    margin: 35px 0 20px;

}


.question-box {

    margin-top: 30px;

    padding: 22px;

    background: #f8fafc;

    border-radius: 14px;

}


.question-box h3 {

    margin-top: 0;

    font-size: 16px;

}


.radio-options {

    display: flex;

    gap: 25px;

}


.radio-options label {

    cursor: pointer;

}


/* CONDITIONAL */

.conditional-section {

    display: none;

    margin-bottom: 20px;

}


.conditional-section.visible {

    display: block;

    animation: fadeIn .3s ease;

}


/* CHILDREN */

.child-card {

    padding: 20px;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    margin-top: 15px;

    background: #fafafa;

}


.child-card h4 {

    margin-top: 0;

}


/* REVIEW */

.review-container {

    background: #f8fafc;

    border-radius: 16px;

    padding: 25px;

}


.review-section {

    padding-bottom: 20px;

    margin-bottom: 20px;

    border-bottom: 1px solid #e5e7eb;

}


.review-section:last-child {

    border-bottom: none;

    margin-bottom: 0;

}


.review-section h3 {

    margin-top: 0;

    color: #2563eb;

}


.review-row {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 7px 0;

}


.review-label {

    color: #6b7280;

}


.declaration {

    margin-top: 25px;

}


.checkbox-label {

    display: flex;

    gap: 12px;

    align-items: flex-start;

    margin-bottom: 15px;

    cursor: pointer;

    line-height: 1.5;

}


.checkbox-label input {

    margin-top: 4px;

}


/* BUTTONS */

.form-navigation {

    display: flex;

    justify-content: space-between;

    margin-top: 40px;

}


.btn {

    border: none;

    border-radius: 10px;

    padding: 14px 25px;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: .2s;

}


.btn:hover {

    transform: translateY(-1px);

}


.btn-primary {

    background: #2563eb;

    color: white;

}


.btn-secondary {

    background: #e5e7eb;

    color: #374151;

}


.btn-success {

    background: #10b981;

    color: white;

}


#submitButton {

    display: none;

}


/* MOBILE */

@media(max-width: 700px) {

    .membership-wrapper {

        padding: 10px;

    }


    .membership-card {

        border-radius: 16px;

    }


    form {

        padding: 0 25px 35px;

    }


    .progress-container {

        padding-left: 25px;

        padding-right: 25px;

    }


    .progress-step label {

        display: none;

    }


    .selection-grid,
    .form-grid {

        grid-template-columns: 1fr;

    }


    .field.full {

        grid-column: auto;

    }


    .form-navigation {

        gap: 10px;

    }


    .btn {

        flex: 1;

        padding: 13px 10px;

    }


    .review-row {

        flex-direction: column;

        gap: 3px;

    }

}

/* ==========================================
   FILE UPLOAD
   ========================================== */

.upload-box {

    border: 2px dashed #cbd5e1;

    border-radius: 18px;

    padding: 35px;

    text-align: center;

    background: #f8fafc;

    transition: .25s;

}


.upload-box:hover {

    border-color: #2563eb;

    background: #eff6ff;

}


.upload-icon {

    width: 55px;

    height: 55px;

    margin: 0 auto 15px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #2563eb;

    color: white;

    font-size: 25px;

}


.upload-box h3 {

    margin: 0 0 8px;

}


.upload-box p {

    color: #6b7280;

    margin-bottom: 20px;

}


.upload-box input[type="file"] {

    display: none;

}


.upload-button {

    display: inline-block;

    padding: 12px 22px;

    background: #2563eb;

    color: white;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 600;

    transition: .2s;

}


.upload-button:hover {

    background: #1d4ed8;

    transform: translateY(-1px);

}


.file-name {

    margin-top: 15px;

    font-weight: 600;

    color: #2563eb;

}


.upload-box small {

    display: block;

    margin-top: 15px;

    color: #94a3b8;

}

/* ==========================================
   MEMBERSHIP PRICE
   ========================================== */

.price-display {

    display: none;

    align-items: center;

    gap: 18px;

    margin: 25px 0;

    padding: 22px 25px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fafc
        );

    border: 1px solid #dbeafe;

    animation: fadeIn .3s ease;

}


.price-display.visible {

    display: flex;

}


.price-icon {

    width: 55px;

    height: 55px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: #2563eb;

    color: white;

    font-size: 24px;

    font-weight: 700;

}


.price-information {

    display: flex;

    flex-direction: column;

}


.price-label {

    font-size: 13px;

    color: #64748b;

    margin-bottom: 2px;

}


.price-information strong {

    font-size: 28px;

    color: #1e3a8a;

    line-height: 1.2;

}


.price-information small {

    margin-top: 5px;

    color: #64748b;

}

/* ==========================================
   FILE PREVIEW
   ========================================== */

.file-preview {

    display: none;

    margin-top: 25px;

    padding: 15px;

    border-radius: 14px;

    background: white;

    border: 1px solid #dbeafe;

    text-align: left;

    animation: fadeIn .3s ease;

}


.file-preview.visible {

    display: block;

}


/* ==========================================
   ID IMAGE PREVIEW
   ========================================== */

.image-preview {

    display: none;

    width: 320px;

    height: 200px;

    margin: 0 auto 15px;

    overflow: hidden;

    border-radius: 12px;

    background: #f1f5f9;

    border: 1px solid #e2e8f0;

    align-items: center;

    justify-content: center;

}


.image-preview.visible {

    display: flex;

}


.image-preview img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;

}

@media (max-width: 600px) {

    .image-preview {

        width: 100%;

        max-width: 320px;

        height: 180px;

    }

}

/* ==========================================
   PAYMENT
   ========================================== */

.payment-summary {

    margin-bottom: 25px;

    padding: 20px;

    border-radius: 16px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

}


.payment-summary-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 8px 0;

}


.payment-summary-row strong {

    font-size: 18px;

    color: #1e3a8a;

}


.payment-card {

    max-width: 600px;

    margin: 0 auto;

    padding: 30px;

    border-radius: 20px;

    background: white;

    border: 1px solid #e2e8f0;

    box-shadow:
        0 10px 30px
        rgba(15, 23, 42, .08);

}


.payment-card-header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 30px;

}


.payment-lock {

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: #eff6ff;

    font-size: 22px;

}


.payment-card-header h3 {

    margin: 0;

}


.payment-card-header p {

    margin: 4px 0 0;

    color: #64748b;

    font-size: 13px;

}


.payment-field {

    margin-bottom: 20px;

}


.payment-field label {

    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: 600;

    color: #334155;

}


.pin-field {

    min-height: 48px;

    padding: 0 14px;

    display: flex;

    align-items: center;

    border: 1px solid #cbd5e1;

    border-radius: 10px;

    background: white;

    transition: .2s;

}


.pin-field:focus-within {

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, .1);

}


.payment-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;

}


.payment-error {

    margin-top: 5px;

    color: #dc2626;

    font-size: 12px;

}


.payment-error-box {

    display: none;

    margin-bottom: 20px;

    padding: 12px 15px;

    border-radius: 10px;

    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;

    font-size: 14px;

}


.payment-error-box.visible {

    display: block;

}


.payment-button {

    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 12px;

    background: #2563eb;

    color: white;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;

}


.payment-button:hover {

    background: #1d4ed8;

    transform: translateY(-1px);

}


.payment-button:disabled {

    opacity: .6;

    cursor: not-allowed;

    transform: none;

}


.payment-security {

    margin-top: 15px;

    text-align: center;

    color: #64748b;

    font-size: 12px;

}


@media (max-width: 600px) {

    .payment-card {

        padding: 20px;

    }

    .payment-grid {

        grid-template-columns: 1fr;

    }

}

/* ==========================================
   PIN PAYMENTS HOSTED FIELDS
   ========================================== */

.pin-field {

    position: relative;

    width: 100%;

    height: 44px;

    min-height: 44px;

    box-sizing: border-box;

    padding: 0 12px;

    display: flex;

    align-items: center;

    overflow: hidden;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    background: #ffffff;

    cursor: text;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}


.pin-field:focus-within {

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, .10);

}


.pin-field iframe {

    display: block;

    width: 100% !important;

    height: 42px !important;

    min-height: 42px !important;

    max-height: 42px !important;

    border: 0 !important;

    margin: 0;

    padding: 0;

    pointer-events: auto !important;

}


/* ==========================================
   FOCUS
   ========================================== */

.pin-field:focus-within {

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, .10);

}


/* ==========================================
   PIN HOSTED IFRAME
   ========================================== */

.pin-field iframe {

    display: block;

    width: 100% !important;

    height: 42px !important;

    min-height: 42px !important;

    max-height: 42px !important;

    border: 0 !important;

    margin: 0;

    padding: 0;

    pointer-events: auto !important;

}


/* ==========================================
   PAYMENT CARD LAYERING
   ========================================== */

.payment-card {

    position: relative;

    z-index: 10;

}


.payment-field {

    position: relative;

    z-index: 11;

}


.payment-grid {

    position: relative;

    z-index: 11;

}