/*
  Figma Styles translated to CSS
  Combined styles for header and main content.
*/

/* ==== VARIABLES & BASE STYLES ==== */
:root {
    /* Colors */
    --White-100: #FFF;
    --Grey-100: #F2F3FC;
    --Grey-200: #EBECF6;
    --Grey-300: #E4E5F0;
    --Black-100: #515359;
    --Black-500: #2A3143;
    --Orange-100: #FF6318;
    --Blue-Gulf: #002776;
    /* NEW: Added the blue color from Figma */

    /* Spacing */
    --spacing-md: 8px;
    --spacing-xl: 16px;
    --spacing-6xl: 48px;

    /* Radius */
    --sds-size-radius-200: 12px;
    --sds-size-radius-full: 1000px;

    /* Font */
    --font-helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-helvetica);
    background: var(--White-100);
    margin: 0;
    padding: 0;
    color: #232323;
}

.page-container {
    width: 100%;
    max-width: 1512px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ==== HEADER ==== */
.gulf-header {
    width: 100%;
    border-bottom: 1px solid var(--Grey-100);
    background: var(--White-100);
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.gulf-header-row {
    display: flex;
    padding: var(--spacing-xl) var(--spacing-6xl);
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    box-sizing: border-box;
}

.gulf-logo {
    width: 51px;
    height: 48px;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-switcher-btn {
    display: flex;
    height: 35px;
    padding: 0 var(--spacing-xl);
    align-items: center;
    gap: var(--spacing-md);
    border-radius: var(--sds-size-radius-full);
    border: 1px solid var(--Grey-300);
    background: var(--White-100);
    box-shadow: 0 1px 2px 0 rgba(42, 49, 67, 0.05);
    cursor: pointer;
    transition: border-color 0.2s;
}

.lang-switcher-btn:hover,
.lang-switcher.open .lang-switcher-btn {
    border-color: var(--Orange-100);
}

.lang-switcher-icon {
    width: 20px;
    height: 20px;
}

.lang-switcher-active-label {
    color: var(--Black-500);
    font-size: 13px;
    font-weight: 500;
    line-height: 23px;
}

.lang-switcher-arrow {
    transition: transform 0.3s ease;
}

.lang-switcher.open .lang-switcher-arrow {
    transform: rotate(180deg);
}

.lang-switcher-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--White-100);
    border-radius: var(--sds-size-radius-200);
    border: 1px solid var(--Grey-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 20;
    padding: var(--spacing-md);
    min-width: 120px;
}

.lang-switcher.open .lang-switcher-dropdown {
    display: block;
}

.lang-switcher-option {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 12px;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    color: #2A3143;
    box-sizing: border-box;
}

.lang-switcher-option:hover,
.lang-switcher-option.active {
    background-color: var(--Grey-100);
}


/* ==== MAIN CONTENT ==== */
.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
    position: relative;
}

.background-swoosh {
    width: 320px;
    height: 293px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
}

.feedback-container {
    width: 100%;
    max-width: 393px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.form-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-header {
    padding: 0 16px;
}

.form-header h2 {
    text-align: center;
    color: #2A3143;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    margin: 0;
}

.error-message {
    color: #c00;
    background-color: #fdd;
    border: 1px solid #c00;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    margin-top: -16px;
}

/* Input Group Styles */
.input-group {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px;
    box-shadow: 0px 1px 2px rgba(42, 49, 67, 0.05);
    border-radius: 8px;
    border: 1px solid #E4E5F0;
    gap: 8px;
    background: #FFF;
}

.country-code {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #515359;
    font-size: 15px;
}

.flag {
    width: 20px;
    height: 20px;
}

.flag img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.divider {
    width: 1px;
    align-self: stretch;
    background: #EBECF6;
}

.phone-input {
    border: none;
    outline: none;
    background: transparent;
    color: #2A3143;
    font-size: 15px;
    font-weight: 500;
    flex-grow: 1;
    width: 100%;
}

.phone-input::placeholder {
    color: #8A8FA6;
    font-weight: 400;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 12px 24px;
    background: #FF6318;
    border-radius: 9999px;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    line-height: 23px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background: #E55B15;
}


.resend-timer button {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-weight: 500;
    padding: 0;
    font-size: 15px;
    margin-right: 17px;
    /* Matches the "change number" link */
}

.resend-timer button:disabled {
    color: #999;
    /* Greyed out when disabled */
    cursor: not-allowed;
}



/* =====================================================
=========== OTP VERIFICATION FORM STYLES ==============
=====================================================
*/
.form-wrapper.verify-modal {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin: 0 auto;
}

.verify-subtext {
    color: #515359;
    text-align: center;
    font-size: 15px;
    line-height: 23px;
    margin-top: 8px;
}

.otp-group {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.otp-input {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 1px solid #E4E5F0;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #2A3143;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-input:focus {
    border-color: var(--Orange-100);
    box-shadow: 0 0 0 2px rgba(255, 99, 24, 0.2);
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-input[type=number] {
    -moz-appearance: textfield;
}

.resend-timer {
    text-align: center;
    font-size: 15px;
    margin-top: -16px;
}

.resend-timer a {
    color: var(--Orange-100);
    text-decoration: none;
    font-weight: 500;
}

.resend-timer a:hover {
    text-decoration: underline;
}

/* =====================================================
=========== THANK YOU / DONE PAGE STYLES ==============
=====================================================
*/
.thank-you-icon img {
    width: 64px;
    height: 64px;
    background: var(--Blue-100, #002776);
    border-radius: 32px
}

.done-button-container {
    margin-top: 32px;
    width: 100%;
}

.done-button {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background-color: var(--Blue-Gulf);
    /* Using the new blue color variable */
    color: var(--White-100);
    border: none;
    border-radius: var(--sds-size-radius-full);
    font-size: 15px;
    font-weight: 500;
    line-height: 23px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none;
    transition: background-color 0.2s;
}

.done-button:hover {
    background-color: #001f5a;
    /* A slightly darker blue for hover */
}


/* Responsive Styles */
@media (max-width: 768px) {
    .gulf-header-row {
        padding: 16px 24px;
    }

    .background-swoosh {
        max-width: 100px;
        max-height: 100px;
    }

    .main-content {
        align-items: center;
    }

    .form-wrapper.verify-modal {
        width: 100%;
        margin: 0 16px;
    }

    .otp-group {
        gap: 8px;
    }

    .otp-input {
        width: 100%;
        height: 50px;
        font-size: 20px;
    }
}