/**
 * QuraKare - PIN Request Page Styles
 * Design System based on Figma
 */

/* =============================================================================
   LOCAL FONTS - Roboto & Titillium Web
   ============================================================================= */

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Font Awesome Icons */
@font-face {
    font-family: 'Font Awesome 6 Brands';
    src: url('../fonts/fa-brands-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Font Awesome 6 Regular';
    src: url('../fonts/fa-regular-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Font Awesome 6 Solid';
    src: url('../fonts/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: block;
}

/* CSS Variables - Design Tokens */
:root {
    /* Colors - from Figma design */
    --color-primary-dark-blue: #005CA9;
    --color-primary-extradark-blue: #001C39;
    --color-primary-medium-blue: #2B86F1;
    --color-primary-light-blue: #C1D8F4;
    --color-link-blue: #116BD4;
    --color-secondary-dark-yellow: #EF7D00;

    --color-text-extradark-grey: #333333;
    --color-text-dark-grey: #626D78;
    --color-text-medium-grey: #B3B8BD;

    --color-status-positive: #6DC1B6;
    --color-status-negative: #D93131;

    --color-neutral-white: #FFFFFF;
    --color-bg-light: #EAF2FB;
    --color-stroke-light: #E1E3E5;

    /* Typography - Local Fonts */
    --font-family-title: 'Titillium Web', sans-serif;
    --font-family-body: 'Roboto', sans-serif;

    /* Spacing */
    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-s: 12px;
    --spacing-m: 16px;
    --spacing-l: 20px;
    --spacing-xl: 24px;
    --spacing-xxl: 32px;
    --spacing-xxxl: 40px;
    --spacing-900: 56px;
    --spacing-1000: 80px;

    /* Letter Spacing */
    --letter-spacing: 0.45px;
}

/* Honeypot field - Hidden from users */
.form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* reCAPTCHA v3 Badge - Hidden (attribution text shown instead) */
.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-terms {
    font-family: var(--font-family-body);
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-text-dark-grey);
    text-align: center;
    margin-top: var(--spacing-m);
}

.recaptcha-terms a {
    color: var(--color-link-blue);
    text-decoration: underline;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-extradark-grey);
    background-color: var(--color-bg-light);
}

/* Page Container */
.page-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header Pre Login */
.qk-header-prelogin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--color-neutral-white);
    border-bottom: 1px solid var(--color-stroke-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Certification Banner - anchored to header */
.certification-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    height: 40px;
    background-color: var(--color-status-positive);
    position: sticky;
    top: 88px; /* Header height */
    z-index: 99;
}

.qk-header-prelogin .header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 24px 90px;
    width: 100%;
    max-width: 1440px;
}

.qk-header-prelogin .logo-qurakare {
    width: 170.899px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.qk-header-prelogin .logo-partner {
    width: 109.151px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.certification-banner p {
    font-family: var(--font-family-body);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-extradark-grey);
}


/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: visible;
}

/* PIN Request Section */
.pin-request-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 197px;
    width: 100%;
    background-color: var(--color-bg-light);
}

.pin-request-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xxxl);
    padding: var(--spacing-900) 0;
}

/* Content Header */
.content-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xxl);
    width: 674px;
}

.content-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xxl);
    width: 100%;
}

.content-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-s);
    width: 100%;
    text-align: center;
}

.content-text h1 {
    font-family: var(--font-family-title);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: var(--letter-spacing);
    color: var(--color-primary-extradark-blue);
    width: 100%;
}

.content-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-l);
    width: 100%;
}

.content-description p {
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-extradark-grey);
}

.required-fields-note {
    font-size: 12px;
}

.required-fields-note .asterisk {
    font-weight: 700;
    color: var(--color-status-negative);
}

/* Divider */
.divider {
    width: 674px;
    height: 0;
    border: none;
    border-bottom: 1px solid var(--color-text-medium-grey);
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xxl);
    width: 620px;
}

/* Form Row */
.form-row {
    display: flex;
    gap: var(--spacing-l);
    width: 100%;
}

/* Input Field */
.input-field {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.input-field.fixed-width {
    flex: none;
    width: 300px;
}

.input-field-inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxs);
    width: 100%;
}

.input-label {
    display: flex;
    gap: var(--spacing-xxs);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
}

.input-label span {
    font-family: var(--font-family-body);
    font-weight: 400;
    color: var(--color-text-extradark-grey);
}

.input-label .required {
    font-weight: 700;
    color: var(--color-status-negative);
}

.input-container {
    display: flex;
    align-items: center;
    padding: 12px;
    height: 40px;
    background: var(--color-neutral-white);
    border: 1px solid var(--color-text-dark-grey);
}

.input-container input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-extradark-grey);
    background: transparent;
}

.input-container input::placeholder {
    color: var(--color-text-dark-grey);
}

.input-container input:focus {
    outline: none;
}

.input-field:focus-within .input-container {
    border-color: var(--color-link-blue);
    border-width: 2px;
    padding: 11px;
}

/* Error State */
.input-field.has-error .input-container {
    border-color: var(--color-status-negative);
}

.input-field.has-error .input-label span:first-child {
    color: var(--color-text-extradark-grey);
}

.error-message {
    display: none;
    font-family: var(--font-family-body);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-status-negative);
    margin-top: 4px;
}

.input-field.has-error .error-message {
    display: block;
    font-weight: 700;
}

/* Input placeholder styling */
.input-container input::placeholder {
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-dark-grey);
}

/* Warning Message Box */
.warning-message {
    display: flex;
    align-items: center;
    gap: var(--spacing-m);
    padding: var(--spacing-m);
    border: 1px solid var(--color-text-medium-grey);
    width: 100%;
}

.warning-message .warning-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.warning-message p {
    flex: 1;
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-extradark-grey);
}

/* Privacy Info */
.privacy-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-m);
    width: 100%;
}

.privacy-link {
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-extradark-grey);
}

.privacy-link a {
    font-weight: 600;
    color: var(--color-link-blue);
    text-decoration: underline;
}

.privacy-consent {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    width: 100%;
}

.checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-link-blue);
    background: var(--color-neutral-white);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
}

.checkbox:checked {
    background-color: var(--color-link-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.privacy-consent label {
    flex: 1;
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-extradark-grey);
    cursor: pointer;
}

/* Submit Button */
.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 40px;
    height: 48px;
    background-color: var(--color-link-blue);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:disabled,
.submit-button[disabled] {
    background-color: var(--color-primary-light-blue);
    cursor: not-allowed;
}

.submit-button.active {
    background-color: var(--color-link-blue);
    cursor: pointer;
}

.submit-button span,
.submit-button .btn-text {
    font-family: var(--font-family-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: var(--letter-spacing);
    color: var(--color-neutral-white);
}

.submit-button:hover:not(:disabled) {
    background-color: var(--color-primary-medium-blue);
}

/* How It Works Section */
.how-it-works-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xxxl);
    padding: var(--spacing-xxxl) 90px var(--spacing-900);
    width: 100%;
    background-color: var(--color-neutral-white);
    position: relative;
    overflow: visible;
}

.how-it-works-section > *:not(.bg-vector-blue) {
    max-width: 1260px;
}

.how-it-works-section h2 {
    font-family: var(--font-family-title);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: var(--letter-spacing);
    color: var(--color-primary-extradark-blue);
}

.steps-container {
    display: flex;
    gap: var(--spacing-l);
    width: 1046px;
}

.step-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    flex: 1;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100px;
}

.step-icon img {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* CSS variables for SVG colors */
    --fill-0: white;
    --stroke-0: #001C39;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-m);
    text-align: center;
    width: 100%;
}

.step-content h3 {
    font-family: var(--font-family-title);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: var(--letter-spacing);
    color: var(--color-primary-extradark-blue);
}

.step-content p {
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-extradark-grey);
}

/* Help Section */
.help-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 90px 56px;
    width: 100%;
    background-color: var(--color-bg-light);
    position: relative;
    overflow: visible;
}

.help-section > *:not(.bg-vector-orange) {
    max-width: 1260px;
}

/* Background Decorative Vectors */
.bg-vector-blue {
    position: absolute;
    left: 0;
    top: -104px;
    width: 100px;
    height: 208px;
    z-index: 0;
    pointer-events: none;
}

.bg-vector-orange {
    position: absolute;
    right: 0;
    top: -104px;
    width: 100px;
    height: 208px;
    z-index: 0;
    pointer-events: none;
}

.help-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    width: 620px;
    position: relative;
    z-index: 1;
}

.help-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    width: 100%;
}

.help-header h3 {
    flex: 1;
    font-family: var(--font-family-title);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: var(--letter-spacing);
    color: var(--color-primary-extradark-blue);
}

.help-header a {
    font-family: var(--font-family-body);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-link-blue);
    text-decoration: underline;
}

.help-email-link {
    font-weight: 700;
    text-decoration: underline;
    color: var(--color-link-blue);
}

.help-content > p {
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-extradark-grey);
    width: 100%;
}

/* Disclaimers Section */
.disclaimers-section {
    display: flex;
    justify-content: center;
    gap: var(--spacing-l);
    padding: var(--spacing-xxxl) 90px var(--spacing-1000);
    width: 100%;
    background-color: var(--color-neutral-white);
}

.disclaimers-section > * {
    max-width: 420px;
}

.disclaimer-box {
    display: flex;
    gap: var(--spacing-m);
    padding: var(--spacing-m);
    border: 1px solid var(--color-text-medium-grey);
    flex: 1;
}

.disclaimer-box .warning-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.disclaimer-box p {
    flex: 1;
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-extradark-grey);
}

.disclaimer-box a {
    font-weight: 600;
    color: var(--color-text-extradark-grey);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .qk-header-prelogin .header-content {
        padding: 24px 60px;
    }

    .pin-request-section {
        padding: 0 60px;
    }

    .steps-container {
        width: 100%;
        max-width: 1046px;
    }

    .disclaimers-section {
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-xxxl) 60px var(--spacing-900);
    }

    .bg-vector-blue,
    .bg-vector-orange {
        width: 40px;
        height: 83.84px;
        top: -41.92px;
    }
}

@media (max-width: 768px) {
    .qk-header-prelogin .header-content {
        padding: 16px 20px;
        gap: 20px;
    }

    .qk-header-prelogin .logo-qurakare {
        width: 130px;
        height: 30px;
    }

    .qk-header-prelogin .logo-partner {
        width: 80px;
        height: 20px;
    }

    .certification-banner {
        top: 62px; /* Tablet header height */
    }

    .pin-request-section {
        padding: 0 20px;
    }

    .content-header,
    .form-section {
        width: 100%;
    }

    .content-text h1 {
        font-size: 28px;
    }

    .divider {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .input-field.fixed-width {
        width: 100%;
    }

    .how-it-works-section {
        padding: var(--spacing-xxxl) 20px var(--spacing-900);
    }

    .how-it-works-section h2 {
        font-size: 28px;
    }

    .steps-container {
        flex-direction: column;
        width: 100%;
    }

    .help-section {
        padding: var(--spacing-xxxl) 20px var(--spacing-900);
    }

    .help-content {
        width: 100%;
    }

    .help-header {
        flex-direction: row;
        align-items: baseline;
        flex-wrap: wrap;
        gap: var(--spacing-m);
    }

    .bg-vector-blue,
    .bg-vector-orange {
        width: 40px;
        height: 83.84px;
        top: -41.92px;
    }

    .disclaimers-section {
        padding: var(--spacing-xxxl) 20px var(--spacing-900);
    }
}

/* Mobile Design - Figma 375px */
@media (max-width: 480px) {
    /* Header Mobile */
    .qk-header-prelogin {
        height: 100px;
        box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.08);
        border-bottom: none;
    }

    .qk-header-prelogin .header-content {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        padding: 15px 40px 24px;
        height: 100%;
    }

    .qk-header-prelogin .logo-qurakare {
        width: 140px;
        height: 32.77px;
    }

    .qk-header-prelogin .logo-partner {
        width: 89.66px;
        height: 23px;
    }

    /* Certification Banner Mobile */
    .certification-banner {
        padding: 8px 15px;
        height: auto;
        top: 100px; /* Mobile header height */
    }

    .certification-banner p {
        flex: 1;
        text-align: center;
    }


    /* PIN Request Section Mobile */
    .pin-request-section {
        padding: 0;
    }

    .pin-request-content {
        padding: var(--spacing-xxxl) 15px 84px;
        gap: var(--spacing-xxxl);
    }

    .content-header {
        width: 100%;
        gap: var(--spacing-xxl);
    }

    .content-header-inner {
        gap: var(--spacing-xxl);
    }

    .content-text {
        gap: var(--spacing-s);
        width: 345px;
        max-width: 100%;
    }

    .content-text h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .content-description {
        gap: var(--spacing-xl);
    }

    .content-description p {
        font-size: 14px;
    }

    .required-fields-note {
        font-size: 12px;
    }

    .divider {
        width: 100%;
    }

    /* Form Section Mobile */
    .form-section {
        width: 100%;
        gap: var(--spacing-xxl);
    }

    .form-row {
        flex-direction: column;
        gap: var(--spacing-xxl);
    }

    .input-field {
        width: 100%;
    }

    .input-field.fixed-width {
        width: 100%;
    }

    .input-field-inner {
        gap: var(--spacing-xs);
    }

    .input-container {
        height: 40px;
        padding: 12px;
    }

    .input-container input {
        font-size: 14px;
    }

    .error-message {
        font-size: 12px;
        font-weight: 700;
        margin-top: 0;
    }

    /* Warning Message Mobile */
    .warning-message {
        width: 100%;
        padding: var(--spacing-m);
        gap: var(--spacing-m);
    }

    /* Privacy Info Mobile */
    .privacy-info {
        gap: var(--spacing-m);
    }

    /* Submit Button Mobile */
    .submit-button {
        width: 100%;
        height: 48px;
    }

    /* How It Works Section Mobile */
    .how-it-works-section {
        padding: var(--spacing-xxxl) 15px var(--spacing-900);
        gap: var(--spacing-xxl);
    }

    .how-it-works-section h2 {
        font-size: 32px;
    }

    .steps-container {
        flex-direction: column;
        gap: var(--spacing-xxxl);
        width: 100%;
    }

    .step-box {
        gap: var(--spacing-m);
    }

    .step-icon {
        height: 100px;
        width: 100px;
    }

    .step-content {
        gap: var(--spacing-m);
    }

    .step-content h3 {
        font-size: 20px;
    }

    .step-content p {
        font-size: 14px;
    }

    /* Help Section Mobile */
    .help-section {
        padding: var(--spacing-xxxl) 15px var(--spacing-900);
    }

    .help-content {
        width: 100%;
        gap: var(--spacing-m);
    }

    .help-header {
        flex-direction: row;
        align-items: baseline;
        gap: var(--spacing-m);
    }

    .help-header h3 {
        flex: 1;
        font-size: 26px;
    }

    .help-header a {
        font-size: 18px;
    }

    .help-content > p {
        font-size: 14px;
    }

    /* Disclaimers Section Mobile */
    .disclaimers-section {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-m);
        padding: var(--spacing-xl) 15px var(--spacing-1000);
        background-color: var(--color-neutral-white);
    }

    .disclaimers-section > * {
        max-width: 100%;
    }

    .disclaimer-box {
        width: 345px;
        max-width: 100%;
        padding: var(--spacing-m);
        gap: var(--spacing-m);
    }

    .disclaimer-box p {
        font-size: 12px;
    }

    /* Modal Mobile */
    .modal-container {
        margin: 0;
        padding: 86px 15px 0;
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        justify-content: flex-start;
    }

    .modal-close {
        top: 40px;
        right: 15px;
    }

    .modal-content {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .modal-warning {
        width: 100%;
    }

    .modal-actions {
        width: 100%;
        flex-direction: column;
        gap: 15px;
        margin-top: auto;
        padding: 15px 0;
    }

    .modal-button,
    .modal-button-outline {
        width: 100%;
    }

    .modal-title {
        font-size: 28px;
    }
}

/* =============================================================================
   THANK YOU PAGE STYLES
   ============================================================================= */

/* Thank You Section */
.thank-you-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 84px 90px;
    width: 100%;
    background-color: var(--color-bg-light);
}

.thank-you-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xxxl);
    width: 100%;
    max-width: 832px;
}

/* Message Container */
.message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xxxl);
    padding-bottom: var(--spacing-xxxl);
    border-bottom: 1px solid var(--color-text-medium-grey);
    width: 100%;
}

/* Illustration Container */
.illustration-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 170px;
}

.rocket-illustration {
    width: 170px;
    height: 170px;
    object-fit: contain;
}

/* Message Text */
.message-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    width: 620px;
    text-align: center;
}

.message-text h1 {
    font-family: var(--font-family-title);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: var(--letter-spacing);
    color: var(--color-primary-extradark-blue);
    margin: 0;
}

.message-text p {
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-primary-extradark-blue);
    margin: 0;
}

/* Warning Message Wide (for thank you page) */
.warning-message-wide {
    width: 672px;
}

/* CTA Button */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 40px;
    height: 48px;
    background-color: var(--color-link-blue);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-family: var(--font-family-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: var(--letter-spacing);
    color: var(--color-neutral-white);
}

.cta-button:hover {
    background-color: var(--color-primary-medium-blue);
}

/* Help Section Inline (for thank you page) */
.help-section-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xl);
    width: 620px;
}

.help-section-inline .help-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    width: 100%;
}

.help-section-inline .help-header h3 {
    flex: 1;
    font-family: var(--font-family-title);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: var(--letter-spacing);
    color: var(--color-primary-extradark-blue);
    margin: 0;
}

.help-section-inline .help-header a {
    font-family: var(--font-family-body);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-link-blue);
    text-decoration: underline;
}

.help-section-inline > p {
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-extradark-grey);
    margin: 0;
    width: 100%;
}

/* Thank You Page - Responsive */
@media (max-width: 768px) {
    .thank-you-section {
        padding: 40px 20px;
    }

    .message-text {
        width: 100%;
    }

    .message-text h1 {
        font-size: 28px;
    }

    .warning-message-wide {
        width: 100%;
    }

    .help-section-inline {
        width: 100%;
    }

    .help-section-inline .help-header {
        flex-direction: row;
        align-items: baseline;
        flex-wrap: wrap;
        gap: var(--spacing-m);
    }

    .help-section-inline .help-header h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .thank-you-section {
        padding: 40px 15px;
    }

    .thank-you-content {
        gap: var(--spacing-xxl);
    }

    .message-container {
        gap: var(--spacing-xxl);
        padding-bottom: var(--spacing-xxl);
    }

    .illustration-container {
        width: 140px;
        height: 140px;
    }

    .rocket-illustration {
        width: 140px;
        height: 140px;
    }

    .message-text {
        gap: var(--spacing-m);
    }

    .message-text h1 {
        font-size: 32px;
    }

    .cta-button {
        width: 100%;
    }

    .help-section-inline {
        gap: var(--spacing-m);
    }

    .help-section-inline .help-header {
        flex-direction: row;
        align-items: baseline;
    }

    .help-section-inline .help-header h3 {
        font-size: 26px;
    }
}

/* =============================================================================
   END THANK YOU PAGE STYLES
   ============================================================================= */

/* Loading Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-button.loading .spinner {
    display: block;
}

.submit-button.loading .btn-text {
    display: none;
}

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

/* Success Message */
.success-message {
    display: none;
    padding: var(--spacing-m);
    background-color: rgba(109, 193, 182, 0.1);
    border: 1px solid var(--color-status-positive);
    margin-top: var(--spacing-m);
}

.success-message.show {
    display: block;
}

.success-message p {
    font-family: var(--font-family-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-extradark-grey);
    text-align: center;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2147483647;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

/* Modal Container */
.modal-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xxl);
    padding: var(--spacing-900) var(--spacing-1000);
    width: 100%;
    max-width: 834px;
    background-color: var(--color-neutral-white);
    box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.08);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: var(--spacing-m);
    right: var(--spacing-m);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    --fill-0: #001C39;
}

.modal-close img {
    width: 24px;
    height: 24px;
}

.modal-close:hover {
    opacity: 0.7;
}

/* Modal Illustration */
.modal-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    --fill-0: white;
    --stroke-0: #001C39;
}

.modal-illustration img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

/* Modal Content */
.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    width: 100%;
    text-align: center;
}

.modal-title {
    font-family: var(--font-family-title);
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-extradark-grey);
    margin: 0;
}

.modal-description {
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-extradark-grey);
    margin: 0;
}

.modal-link {
    font-weight: 700;
    color: var(--color-link-blue);
    text-decoration: underline;
}

.modal-link-no-underline {
    text-decoration: none;
}

/* Modal Warning */
.modal-warning {
    display: flex;
    align-items: center;
    gap: var(--spacing-m);
    padding: var(--spacing-m);
    border: 1px solid var(--color-text-medium-grey);
    width: 100%;
    --fill-0: #317ED9;
    --stroke-0: #001C39;
}

.modal-warning .warning-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.modal-warning p {
    flex: 1;
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-extradark-grey);
    margin: 0;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    width: 100%;
}

/* Modal Button */
.modal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 40px;
    height: 48px;
    background-color: var(--color-link-blue);
    border: none;
    cursor: pointer;
    font-family: var(--font-family-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: var(--letter-spacing);
    color: var(--color-neutral-white);
    transition: background-color 0.3s ease;
}

.modal-button:hover {
    background-color: var(--color-primary-medium-blue);
}

/* Modal Button Outline */
.modal-button-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    height: 48px;
    background-color: var(--color-neutral-white);
    border: 1px solid var(--color-link-blue);
    cursor: pointer;
    font-family: var(--font-family-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: var(--letter-spacing);
    color: var(--color-link-blue);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.modal-button-outline:hover {
    background-color: var(--color-bg-light);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-container {
        margin: 0;
        padding: 86px 15px 0;
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        justify-content: flex-start;
    }

    .modal-close {
        top: 40px;
        right: 15px;
    }

    .modal-content {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .modal-warning {
        width: 100%;
    }

    .modal-actions {
        width: 100%;
        flex-direction: column;
        gap: 15px;
        margin-top: auto;
        padding: 15px 0;
    }

    .modal-button,
    .modal-button-outline {
        width: 100%;
    }

    .modal-title {
        font-size: 28px;
    }
}

/* Footer */
.qk-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #005CA9;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 45px;
    width: 100%;
    max-width: 1440px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.footer-logo .logo-footer {
    width: 213.75px;
    height: 50px;
    object-fit: contain;
}

.footer-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 21px;
}

.footer-menu-item {
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.45px;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.footer-menu-item:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 45px;
    width: 100%;
    border-top: 1px solid #C1D8F4;
}

.footer-bottom p {
    flex: 1;
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.45px;
    color: #C1D8F4;
    text-align: center;
    margin: 0;
}

.footer-company-link {
    color: #C1D8F4;
    text-decoration: underline;
}

.footer-company-link:hover {
    opacity: 0.8;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-menu {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 32px 20px;
        gap: 24px;
    }

    .footer-logo .logo-footer {
        width: 170px;
        height: 40px;
    }

    .footer-menu {
        gap: 20px;
        row-gap: 12px;
    }

    .footer-menu-item {
        font-size: 13px;
    }

    .footer-bottom {
        padding: 8px 20px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* Mobile Footer - Figma 375px */
@media (max-width: 480px) {
    .qk-footer {
        width: 100%;
    }

    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 24px 15px;
    }

    .footer-logo .logo-footer {
        width: 170px;
        height: 40px;
    }

    .footer-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        height: auto;
    }

    .footer-menu-item {
        font-size: 14px;
    }

    .footer-bottom {
        padding: 8px 15px;
    }

    .footer-bottom p {
        font-size: 12px;
        text-align: center;
    }
}
