/* Modern Theme for Optima Reach */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f1f5f9;
    --surface: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: background 0.3s;
}

.service-card:hover .icon-wrapper {
    background: #eff6ff;
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* Survey Container - High Contrast Fix */
.survey-container {
    background: #ffffff !important;
    /* Force solid white */
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
    /* Strong shadow for lift */
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: visible;
    /* For autocomplete */
}

/* Ensure text inside survey is dark and visible */
.survey-container h4,
.survey-container h5,
.survey-container label,
.survey-container p,
.survey-container div,
.survey-container span,
.survey-container .form-label {
    color: #1e293b !important;
}

.survey-container .step-progress {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.step-progress-bar {
    background: var(--gradient-primary);
    border-radius: 4px;
}

.option-btn {
    border: 1px solid #cbd5e1;
    font-weight: 500;
    color: #475569;
    background: #fff;
    padding: 1rem;
    text-align: left;
    width: 100%;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: var(--primary);
    background: #f8fafc;
    color: var(--primary);
    transform: translateX(2px);
}

.option-btn.selected {
    border-color: var(--primary);
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--primary);
}

/* Autocomplete Dropdown */
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f8fafc;
    color: var(--primary);
}

.hidden {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .survey-container {
        padding: 1.5rem;
    }

    .hero {
        padding: 60px 0;
    }

    .display-4 {
        font-size: 2.5rem;
    }
}