/* One-Question-at-a-Time Form Styles */

.strategic-form-oqat {
    position: relative;
    min-height: 500px;
    z-index: 10;
}

/* Progress Bar */
.form-progress-container {
    margin-bottom: 3rem;
    pointer-events: none;
}

.form-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.form-progress-fill {
    height: 100%;
    width: 9.09%;
    /* Initial width for step 1 of 11 */
    background: hsl(47 95% 58%);
    border-radius: 8px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 0 16px hsla(47, 95%, 58%, 0.8),
        0 0 32px hsla(47, 95%, 58%, 0.4);
}

.form-progress-text {
    display: none;
}

/* Form Steps */
.form-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-step.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* Question Styling */
.form-question {
    margin-bottom: 2rem;
}

.question-label {
    font-family: var(--font-sans);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 2rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.question-input {
    font-family: var(--font-sans);
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 500;
    position: relative;
    z-index: 20;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    letter-spacing: -0.01em;
}

.question-input::placeholder {
    color: #555;
    font-weight: 400;
}

.question-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(160, 160, 160, 0.6);
    box-shadow: 0 0 0 3px rgba(160, 160, 160, 0.15);
}

/* Radio Options (Multiple Choice) */
.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.option-card input[type="radio"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: none;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

/* Lucide icon will be inserted here via JS */
.option-card input[type="radio"] i {
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}

.option-card input[type="radio"]:checked i {
    color: hsl(47, 95%, 58%);
}

.option-card input[type="radio"]:checked~.option-text {
    color: #fff;
    font-weight: 600;
}

.option-card:has(input:checked) {
    background: rgba(190, 157, 48, 0.08);
    border-color: hsl(47, 95%, 58%);
    box-shadow: 0 0 0 1px hsla(47, 95%, 58%, 0.3);
}

.option-text {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: #c7c7c7;
    line-height: 1.5;
    letter-spacing: -0.01em;
    transition: all 0.25s ease;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    justify-content: space-between;
}

.btn-nav {
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.01em;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}


.btn-next {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-next:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.form-disclaimer {
    text-align: center;
    color: #555;
    font-size: 0.75rem;
    margin-top: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .question-label {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .question-input {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .option-card {
        padding: 1rem;
    }

    .option-text {
        font-size: 0.875rem;
    }

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

    .btn-nav {
        width: 100%;
        justify-content: center;
    }

    .btn-next {
        margin-left: 0;
        order: -1;
    }
}

/* =========================================
   International Phone Input Styles
   ========================================= */

/* Container wrapper */
.iti {
    width: 100%;
}

.iti--allow-dropdown .iti__flag-container {
    padding: 0;
}

/* Selected flag button */
.iti__selected-flag {
    background: rgba(255, 255, 255, 0.05) !important;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem 0 0 0.75rem;
    padding: 0 0.75rem 0 1rem;
    transition: all 0.3s ease;
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Dial code display */
.iti__selected-dial-code {
    color: #888;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Arrow */
.iti__arrow {
    border-top-color: #666;
    margin-left: 0.5rem;
}

.iti__arrow--up {
    border-bottom-color: #666;
}

.iti__dropdown-content {
    border-radius: 0.75rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #555;
}

.iti--inline-dropdown .iti__dropdown-content {
    border: none !important;
}

/* Input field adjustments when iti is active */
.iti input.question-input {
    padding-left: 0.75rem;
    border-radius: 0.75rem;
}

/* Dropdown country list */
.iti__country-list {
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: 280px;
    margin-top: 0.5rem;
    z-index: 10000;
}

.iti__country-list::-webkit-scrollbar {
    width: 6px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.iti__country-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Country item */
.iti__country {
    padding: 0.75rem 1rem;
    color: #ccc;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.iti__country:hover,
.iti__country--highlight {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.iti__country-name {
    color: inherit;
    margin-right: auto;
}

.iti__dial-code {
    color: #666;
    font-weight: 500;
}

/* Preferred countries divider */
.iti__divider {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0.5rem 0;
}

/* Flag container in dropdown */
.iti__flag-box {
    margin-right: 0.75rem;
}

/* Search input (if enabled) */
.iti__search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #fff;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-sans);
    margin: 0.5rem;
}

.iti__search-input::placeholder {
    color: #555;
}

.iti__search-input:focus {
    outline: none;
    border-color: rgba(160, 160, 160, 0.5);
}

/* Validation states */
.question-input.input-valid {
    border-color: rgba(34, 197, 94, 0.5);
}

.question-input.input-error {
    border-color: rgba(239, 68, 68, 0.6);
    animation: shake 0.3s ease;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .iti__selected-flag {
        padding: 0 0.5rem 0 0.75rem;
    }

    .iti__selected-dial-code {
        font-size: 0.9rem;
    }

    .iti__country-list {
        max-height: 220px;
    }

    .iti__country {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
}