/* ================================
   Home Value Haven - Complete Stylesheet
   Works with Bootstrap 5
   Updated with Professional Design Elements
   Color Scheme: Navy (#161928)
   ================================ */

/* CSS Variables */
:root {
    --primary-color: #161928;
    --primary-dark: #0d0f18;
    --primary-light: #1f2337;
    --accent-color: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #2563eb;
    --success-color: #10b981;
    --text-dark: #161928;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --white: #ffffff;
    --background-light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #161928 0%, #1f2337 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%) fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Fixed body layout to prevent footer from going off-screen */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%) fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { 
    font-weight: 700; 
    line-height: 1.2; 
    color: #161928;
}

h1 { 
    font-size: clamp(1.75rem, 5vw, 3rem); 
    letter-spacing: -0.02em; 
}

h2 { 
    font-size: clamp(1.75rem, 4vw, 2.5rem); 
    letter-spacing: -0.01em; 
}

h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem); 
}

h4 { 
    font-size: clamp(1.25rem, 2.5vw, 1.75rem); 
}

/* Primary Color Text */
.primary-color {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.primary-sub-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
    margin: 2rem auto;
}

/* ================================
   HEADER STYLES
   ================================ */

header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

header.scrolled { 
    box-shadow: var(--shadow-md); 
}

header .container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.logo { 
    max-height: 60px; 
    width: auto; 
    transition: transform var(--transition-base); 
    margin: 0 auto; 
}

.logo:hover { 
    transform: scale(1.05); 
}

header .word-wrap { 
    font-size: 0.95rem; 
    line-height: 1.4; 
}

header .circle-draw { 
    display: inline-block; 
    position: relative; 
    padding: 0 8px; 
}

header .circle-draw::after {
    content: '';
    position: absolute; 
    left: -5px; 
    right: -5px; 
    top: -3px; 
    bottom: -3px;
    border: 3px solid var(--accent-color); 
    border-radius: 50%;
    transform: rotate(-5deg); 
    animation: drawCircle 0.6s ease-out 0.5s both;
}

@keyframes drawCircle {
    from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
    to   { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* ================================
   MAIN SECTION
   ================================ */

.section-main {
    background: transparent;
    padding: 1.5rem 0 2rem 0;
    position: relative;
    overflow: visible;
    min-height: 0;
    flex: 1 0 auto;
}

.section-main::before {
    content: '';
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23161928' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.wrapper-narrow-maxwidth { 
    max-width: 1100px; 
    width: 100%;
    margin: 0 auto; 
    position: relative; 
    z-index: 1;
    padding: 0 1rem;
}

.section-main h1 { 
    margin-bottom: 0.5rem; 
}

.section-main .primary-sub-text { 
    margin: 0.5rem auto 1rem; 
    font-size: 1.1rem; 
}

/* ================================
   PROGRESS BAR - ENHANCED
   ================================ */

.progress-wrapper { 
    margin-bottom: 1.5rem; 
    background: transparent; 
    padding: 0.5rem 0; 
}

.progress {
    height: 14px;
    border-radius: 50px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
    border: 2px solid #e0e0e0;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    transition: width 0.5s ease;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    font-weight: 700;
    color: var(--white);
    font-size: 0.75rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-status-text { 
    text-align: center; 
    color: var(--text-light); 
    font-size: 0.875rem; 
    margin: 0.5rem 0 0 0; 
}

#current-step { 
    font-weight: 700; 
    color: var(--text-light); 
}

/* ================================
   FORM WRAPPER - ENHANCED
   ================================ */

.form-wrapper { 
    background: var(--white); 
    border-radius: var(--radius-xl); 
    padding: 2rem 2rem 2.25rem 2rem; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); 
    margin: 1rem auto; 
    position: relative;
    max-width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ================================
   FORM STEPS
   ================================ */

.form-steps { 
    display: none; 
    animation: fadeIn 0.5s ease-out; 
}

.form-steps:first-of-type { 
    display: block; 
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-steps legend.questions,
.form-steps h3 { 
    color: #161928; 
    margin-bottom: 1.5rem; 
    font-size: 1.75rem; 
    font-weight: 700; 
    text-align: center; 
    line-height: 1.2;
}

.form-steps p { 
    color: #161928; 
    margin-bottom: 1.5rem; 
    line-height: 1.6; 
    text-align: center;
    font-size: 1rem;
}

/* ================================
   SELECTION BOXES
   ================================ */

.select-box { 
    cursor: pointer; 
    transition: all var(--transition-base); 
    height: 100%; 
    margin-bottom: 1rem; 
}

.select-label-option {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    padding: 1.25rem 0.875rem; 
    border: 3px solid #e0e0e0; 
    border-radius: 16px; 
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); 
    transition: all var(--transition-base);
    cursor: pointer; 
    height: 100%; 
    min-height: 110px; 
    position: relative; 
    overflow: hidden;
}

/* Override Bootstrap for select boxes */
.select-label-option.form-label { 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important; 
    text-align: center !important; 
}

.select-label-option::before {
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: var(--gradient-primary); 
    opacity: 0; 
    transition: opacity var(--transition-base); 
    z-index: 0;
}

.select-label-option::after {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 5px; 
    background: var(--gradient-accent);
    transform: scaleX(0); 
    transition: transform var(--transition-base);
}

.select-box:hover .select-label-option, 
.select-label-option.clickable:hover {
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); 
    border-color: var(--primary-color);
}

.select-box:hover .select-label-option::before { 
    opacity: 0.06; 
}

.select-box:hover .select-label-option::after { 
    transform: scaleX(1); 
}

.select-box input[type="radio"] { 
    position: absolute; 
    opacity: 0; 
    pointer-events: none; 
}

.select-img {
    width: 56px; 
    height: 56px; 
    object-fit: contain; 
    margin-bottom: 0.5rem;
    margin-left: auto !important; 
    margin-right: auto !important; 
    filter: grayscale(0%) brightness(0) saturate(100%);
    opacity: 0.85; 
    transition: all var(--transition-base); 
    position: relative; 
    z-index: 1;
}

.select-box:hover .select-img { 
    filter: grayscale(0%) brightness(100%); 
    opacity: 1; 
    transform: scale(1.15); 
}

.box-option-title {
    font-size: 1rem; 
    font-weight: 800; 
    color: #161928; 
    text-align: center !important; 
    width: 100% !important;
    position: relative; 
    z-index: 1; 
    transition: color var(--transition-base); 
    letter-spacing: -0.01em;
}

.box-option-title small { 
    font-size: 0.8rem; 
    font-weight: 500; 
    display: block; 
    margin-top: 0.25rem; 
}

.select-box:hover .box-option-title { 
    color: var(--primary-color); 
}

/* Row spacing */
.section-main .row.justify-content-center { 
    row-gap: 1rem; 
}

/* ================================
   FORM CONTROLS - ENHANCED
   ================================ */

.input-field-wrapper { 
    margin-bottom: 1rem; 
}

.form-control, 
.form-control-lg {
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--white);
    color: #161928;
    font-weight: 500;
}

.form-control:focus, 
.form-control-lg:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    outline: none;
    background: var(--white);
}

.form-control.error { 
    border-color: #dc3545; 
}

.form-control.valid { 
    border-color: #10b981; 
}

.form-label { 
    font-weight: 600; 
    color: #161928; 
    margin-bottom: 0.5rem; 
    font-size: 0.9rem; 
    display: block; 
}

.form-select, 
.form-select-lg {
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--white);
    cursor: pointer;
    color: #161928;
    font-weight: 500;
}

.form-select:focus, 
.form-select-lg:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    outline: none;
}

.text-muted {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Input Groups */
.input-group-text {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border: 2px solid #e0e0e0;
    border-right: none;
    color: var(--primary-color);
    font-weight: 700;
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--accent-color);
}

.input-group:focus-within .form-control {
    border-left: none;
}

/* ================================
   ENHANCED RADIO BUTTON CARDS
   ================================ */

.form-check {
    margin-bottom: 0;
    position: relative;
}

.form-check-input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-check-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 600;
    font-size: 1rem;
    color: #161928;
    text-align: center;
    min-height: 56px;
    position: relative;
    user-select: none;
}

.form-check-label:hover {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.form-check-input[type="radio"]:checked + .form-check-label {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.15) 100%);
    border-color: var(--accent-color);
    border-width: 3px;
    color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.form-check-input[type="radio"]:checked + .form-check-label::before {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: checkmarkPop 0.3s ease-out;
}

@keyframes checkmarkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.form-check-input[type="radio"]:focus + .form-check-label {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ================================
   CLEAN THIN SLIDER
   ================================ */

.form-range,
input[type="range"],
.form-wrapper input[type="range"],
.form-steps input[type="range"],
input.form-range,
.form-control.form-range {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 6px !important;
    min-height: 6px !important;
    max-height: 6px !important;
    padding: 0 !important;
    border-radius: 3px !important;
    background: linear-gradient(to right, 
        #3b82f6 0%, 
        #3b82f6 var(--val, 0%), 
        #e5e7eb var(--val, 0%), 
        #e5e7eb 100%) !important;
    outline: none !important;
    margin: 2rem 0 1.5rem 0 !important;
    cursor: pointer !important;
    position: relative !important;
    border: none !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    vertical-align: middle !important;
}

/* WebKit (Chrome/Safari) - Thumb */
input[type="range"]::-webkit-slider-thumb,
.form-range::-webkit-slider-thumb,
.form-wrapper input[type="range"]::-webkit-slider-thumb,
.form-steps input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 3px solid #3b82f6 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: -9px !important;
    position: relative !important;
}

input[type="range"]::-webkit-slider-thumb:hover,
.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

input[type="range"]::-webkit-slider-thumb:active,
.form-range::-webkit-slider-thumb:active {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* WebKit - Track */
input[type="range"]::-webkit-slider-runnable-track,
.form-range::-webkit-slider-runnable-track,
.form-wrapper input[type="range"]::-webkit-slider-runnable-track,
.form-steps input[type="range"]::-webkit-slider-runnable-track {
    width: 100% !important;
    height: 6px !important;
    min-height: 6px !important;
    max-height: 6px !important;
    background: transparent !important;
    border-radius: 3px !important;
    border: none !important;
    padding: 0 !important;
}

/* Firefox - Thumb */
input[type="range"]::-moz-range-thumb,
.form-range::-moz-range-thumb,
.form-wrapper input[type="range"]::-moz-range-thumb,
.form-steps input[type="range"]::-moz-range-thumb {
    -moz-appearance: none !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 3px solid #3b82f6 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

input[type="range"]::-moz-range-thumb:hover,
.form-range::-moz-range-thumb:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

input[type="range"]::-moz-range-thumb:active,
.form-range::-moz-range-thumb:active {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Firefox - Track */
input[type="range"]::-moz-range-track,
.form-range::-moz-range-track,
.form-wrapper input[type="range"]::-moz-range-track,
.form-steps input[type="range"]::-moz-range-track {
    width: 100% !important;
    height: 6px !important;
    min-height: 6px !important;
    max-height: 6px !important;
    background: transparent !important;
    border-radius: 3px !important;
    border: none !important;
    padding: 0 !important;
}

/* Firefox - Progress fill */
input[type="range"]::-moz-range-progress,
.form-range::-moz-range-progress {
    background: #3b82f6 !important;
    height: 6px !important;
    border-radius: 3px !important;
}

/* IE/Edge - Thumb */
input[type="range"]::-ms-thumb,
.form-range::-ms-thumb {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 3px solid #3b82f6 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    margin-top: 0 !important;
}

/* IE/Edge - Track */
input[type="range"]::-ms-track,
.form-range::-ms-track {
    width: 100% !important;
    height: 6px !important;
    background: transparent !important;
    border-color: transparent !important;
    color: transparent !important;
    border-radius: 3px !important;
}

input[type="range"]::-ms-fill-lower,
.form-range::-ms-fill-lower {
    background: #3b82f6 !important;
    border-radius: 3px !important;
}

input[type="range"]::-ms-fill-upper,
.form-range::-ms-fill-upper {
    background: #e5e7eb !important;
    border-radius: 3px !important;
}

/* Value label styling */
.range-label {
    display: block !important;
    text-align: center !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #161928 !important;
    margin-bottom: 0.4rem !important;
}

/* Remove any padding/margin Bootstrap might add */
.form-wrapper .form-range,
.form-steps .form-range,
.form-wrapper input[type="range"],
.form-steps input[type="range"] {
    padding: 0 !important;
    margin: 1.25rem 0 1rem 0 !important;
}

/* ================================
   RANGE BUTTON + SLIDER SYSTEM
   ================================ */

/* Range Button Grid */
.value-range-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    justify-items: stretch;
}

/* Individual range button sizing */
.range-btn {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: 16px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #161928;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.range-btn:hover {
    border-color: var(--primary-color);
    background: rgba(22, 25, 40, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.range-btn:active {
    transform: translateY(0);
}

.range-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Slider Container */
.slider-container {
    background: rgba(59, 130, 246, 0.05);
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Value Display */
.slider-value-display {
    margin-bottom: 16px;
}

.display-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Custom Range Slider Styling */
.value-slider {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #e0e0e0 0%, #e0e0e0 100%);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    margin: 12px 0;
}

.value-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-fast);
}

.value-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.value-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-fast);
}

.value-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Slider Labels */
.slider-labels {
    font-size: 0.875rem;
    margin-top: 8px;
}

/* ================================
   BUTTONS - ENHANCED
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.back-btn { 
    background: var(--white);
    color: #161928;
    border: 2px solid #e0e0e0;
    box-shadow: var(--shadow-sm);
}

.back-btn:hover { 
    background: #fafafa;
    border-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(-4px); 
}

.next-btn, 
.submit-btn,
.btn-primary { 
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

.next-btn::before,
.submit-btn::before,
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.next-btn:hover::before,
.submit-btn:hover::before,
.btn-primary:hover::before {
    left: 100%;
}

.next-btn:hover, 
.submit-btn:hover:not(:disabled),
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    color: var(--white); 
}

.btn-success {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.btn.invisible { 
    visibility: hidden; 
}

#submit-btn { 
    background: var(--gradient-primary); 
    padding: 1rem 2.5rem; 
    border-radius: 14px; 
    font-size: 1.1rem; 
    width: auto; 
    margin: 0 auto; 
    display: inline-flex; 
}

#submit-btn:disabled { 
    opacity: 0.6; 
    cursor: not-allowed; 
}

.icon-forward, 
.icon-back { 
    width: 1em; 
    height: 1em; 
}

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

/* ================================
   VALIDATION & MESSAGES
   ================================ */

label.error {
    color: #dc3545; 
    font-size: 0.875rem; 
    margin-top: 0.25rem; 
    display: block; 
    animation: shake 0.3s;
}

@keyframes shake { 
    0%,100% { transform: translateX(0);} 
    25% { transform: translateX(-5px);} 
    75% { transform: translateX(5px);} 
}

/* Address Search Components */
.manual-addres-wrapper { 
    display: none; 
    margin-top: 1rem; 
}

.addressSearch, 
.manualSearch { 
    font-size: 0.9rem; 
    color: var(--text-light); 
    margin-top: 1rem; 
}

.addressSearch { 
    display: none; 
}

.addressSearch a, 
.manualSearch a { 
    color: var(--accent-color); 
    text-decoration: underline; 
    cursor: pointer; 
    transition: all var(--transition-base); 
}

.addressSearch a:hover, 
.manualSearch a:hover { 
    color: var(--accent-dark); 
}

/* ================================
   POOR CREDIT OFFER POPUP STYLES
   ================================ */

#step-poor-credit { 
    display: none; 
}

.ty-offer-container {
    border: 3px solid #3b82f6;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
    transition: all 0.3s ease;
}

.ty-offer-container:hover {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    border-color: #161928;
}

.ty-offer-container ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.ty-offer-container ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.ty-offer-container ul li::marker {
    color: #3b82f6;
    font-weight: bold;
}

/* ================================
   LOADING SPINNER
   ================================ */

.spinner-border { 
    width: 1rem; 
    height: 1rem; 
    border-width: 2px; 
}

#dynamic-loader {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(255, 255, 255, 0.9);
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 2000;
}

#dynamic-loader .spinner-border { 
    width: 3rem; 
    height: 3rem; 
    border-width: 4px; 
    color: var(--accent-color); 
}

/* ================================
   ZIPCODE LABEL
   ================================ */

.zipcode-label {
    display: inline-block; 
    font-weight: 600; 
    color: var(--primary-color);
    padding: 0.25rem 0.5rem; 
    background: rgba(59, 130, 246, 0.1); 
    border-radius: 6px;
}

/* ================================
   PARTNERS SECTION
   ================================ */

.section-partners {
    background: var(--white); 
    padding: 3rem 0; 
    border-top: 1px solid #e0e0e0; 
    border-bottom: 1px solid #e0e0e0; 
    overflow: hidden;
}

.partners-text { 
    font-size: 0.875rem; 
    font-weight: 700; 
    letter-spacing: 0.1em; 
    color: var(--text-light); 
    margin-bottom: 2rem; 
}

.partners-container { 
    overflow: hidden; 
    position: relative; 
}

.partners { 
    display: flex; 
    animation: scroll 30s linear infinite; 
    width: fit-content; 
}

.partner { 
    flex-shrink: 0; 
    padding: 0 3rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.partner img { 
    opacity: 0.6; 
    filter: grayscale(100%); 
    transition: all var(--transition-base); 
}

.partner:hover img { 
    opacity: 1; 
    filter: grayscale(0%); 
}

@keyframes scroll { 
    0% { transform: translateX(0);} 
    100% { transform: translateX(-50%);} 
}

/* ================================
   FEATURES SECTION
   ================================ */

.features { 
    padding: 6rem 0; 
    background: var(--white); 
}

.features-title { 
    text-align: center; 
    margin-bottom: 3rem; 
    color: #161928; 
    font-size: clamp(2rem, 4vw, 2.75rem); 
}

.features .item {
    background: var(--white); 
    border-radius: 24px; 
    padding: 2.5rem; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    border: 2px solid #e0e0e0; 
    transition: all var(--transition-base); 
    position: relative; 
    overflow: hidden;
}

.features .item::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 4px; 
    background: var(--gradient-accent); 
    transform: scaleX(0); 
    transition: transform var(--transition-base); 
}

.features .item:hover { 
    transform: translateY(-12px); 
    box-shadow: var(--shadow-xl); 
    border-color: var(--primary-light); 
}

.features .item:hover::before { 
    transform: scaleX(1); 
}

.features .item h2 { 
    font-size: 1.5rem; 
    color: #161928; 
    margin-bottom: 1rem; 
}

.item-discription { 
    color: var(--text-light); 
    font-size: 1rem; 
    margin-bottom: 1.5rem; 
    line-height: 1.7; 
}

.item-why { 
    font-weight: 600; 
    color: var(--primary-color); 
    font-size: 0.95rem; 
    margin-bottom: 1rem; 
}

.item-why-container { 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem; 
    margin-bottom: 2rem; 
}

.item-why-container .icon { 
    width: 28px; 
    height: 28px; 
    object-fit: contain; 
}

/* ================================
   CTA BUTTONS
   ================================ */

.cta-button {
    background: var(--gradient-accent); 
    color: var(--white); 
    box-shadow: var(--shadow-md);
    font-weight: 700; 
    padding: 0.75rem 1.5rem; 
    border-radius: var(--radius-md); 
    display: inline-block; 
    text-decoration: none; 
    transition: all var(--transition-base);
    position: relative; 
    overflow: hidden;
}

.cta-button::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); 
    transition: left 0.5s;
}

.cta-button:hover { 
    transform: translateY(-3px); 
    box-shadow: var(--shadow-lg); 
    color: var(--white); 
    text-decoration: none; 
}

.cta-button:hover::before { 
    left: 100%; 
}

/* ================================
   TESTIMONIALS
   ================================ */

.testimonial { 
    background: var(--white); 
    padding: 2rem; 
    border-radius: var(--radius-xl); 
    box-shadow: var(--shadow-sm); 
    transition: all var(--transition-base); 
}

.testimonial:hover { 
    box-shadow: var(--shadow-md); 
    transform: translateY(-4px); 
}

.testimonial img.rounded-circle { 
    border: 4px solid var(--accent-color); 
}

.testimonial p { 
    font-size: 0.95rem; 
    line-height: 1.7; 
    color: #161928; 
}

.splide__slide { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

/* ================================
   TRUST BADGES
   ================================ */

.img-fluid { 
    max-width: 100%; 
    height: auto; 
}

/* ================================
   FOOTER STYLES - TRANSPARENT & MINIMAL
   ================================ */

footer,
.footer-modern {
    background: transparent;
    color: #161928;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding: 2rem 0 1.5rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

footer * { 
    background: transparent !important; 
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Footer Trust Section */
.footer-trust-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: all var(--transition-base);
}

.trust-item:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.trust-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--accent-color);
}

.trust-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #161928;
}

/* Footer Links */
.footer-links {
    padding: 1.5rem 0;
}

.footer-link {
    color: var(--text-medium);
    text-decoration: none; 
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative; 
    padding: 0.25rem 0.5rem;
}

.footer-link::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    width: 0; 
    height: 2px; 
    background: var(--accent-color); 
    transition: all var(--transition-base); 
    transform: translateX(-50%);
}

.footer-link:hover { 
    color: var(--primary-color); 
}

.footer-link:hover::after { 
    width: 80%; 
}

.footer-separator {
    color: rgba(0, 0, 0, 0.2);
    margin: 0 0.75rem;
}

.list-inline { 
    list-style: none; 
    padding: 0; 
    margin: 1.5rem 0; 
}

.list-inline-item { 
    display: inline-block; 
    margin: 0.5rem 0.75rem; 
}

/* Footer Copyright */
.copyright,
.footer-copyright {
    text-align: center; 
    padding: 1rem 0 0.5rem 0;
}

.copyright p,
.footer-copyright p { 
    color: var(--text-medium);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

/* Footer Disclaimer */
.impt-disclosure { 
    color: var(--primary-color); 
    font-weight: 700; 
    font-size: 0.9rem; 
    margin-top: 1.5rem; 
    margin-bottom: 0.75rem; 
}

.disclosure-text,
.footer-disclaimer p { 
    color: var(--text-light);
    font-size: 0.8rem; 
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.footer-disclaimer {
    text-align: center;
    padding: 0.5rem 0 0 0;
}

/* ================================
   MODAL STYLES
   ================================ */

.modal-backdrop {
    display: none !important;
}

.modal.show {
    background: rgba(0, 0, 0, 0.5) !important;
}

.modal-dialog {
    position: relative !important;
    z-index: 9999 !important;
}

.modal-dialog-slideout {
    position: fixed; 
    margin: 0; 
    width: 100%; 
    max-width: 500px; 
    height: 100%; 
    right: 0; 
    transform: translateX(100%); 
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog-slideout { 
    transform: translateX(0); 
}

.modal-content { 
    height: 100%; 
    border: none; 
    border-radius: 0; 
    background: var(--white);
    position: relative !important;
    z-index: 10000 !important;
    background-color: #ffffff !important;
}

.modal-header { 
    border-bottom: 2px solid var(--primary-color); 
    padding: 1.5rem;
    position: relative !important;
    z-index: 10001 !important;
    background-color: #ffffff !important;
}

.modal-body { 
    padding: 2rem;
    position: relative !important;
    z-index: 10001 !important;
    background-color: #ffffff !important;
}

.modal-body h3 { 
    color: #161928; 
    font-size: 2rem; 
    margin-bottom: 1.5rem; 
}

.modal-body p { 
    font-size: 1.1rem; 
    color: #161928; 
    line-height: 1.7; 
    margin-bottom: 2rem; 
}

.modal-body .btn { 
    background: var(--gradient-accent); 
    color: var(--white); 
    font-weight: 700; 
    padding: 1rem 2rem; 
    border: none; 
    border-radius: var(--radius-md); 
    font-size: 1.1rem; 
    width: 100%; 
    transition: all var(--transition-base); 
    box-shadow: var(--shadow-md); 
}

.modal-body .btn:hover { 
    transform: translateY(-3px); 
    box-shadow: var(--shadow-lg); 
}

.modal-footer { 
    border-top: 1px solid #e0e0e0; 
    padding: 1.5rem; 
    justify-content: center;
    position: relative !important;
    z-index: 10001 !important;
    background-color: #ffffff !important;
}

.modal-footer img { 
    max-width: 200px; 
    opacity: 0.7; 
}

.btn-close { 
    padding: 0.5rem; 
    background: transparent; 
    border: none; 
    font-size: 1.5rem; 
    opacity: 0.5; 
    transition: all var(--transition-base); 
}

.btn-close:hover { 
    opacity: 1; 
    transform: rotate(90deg); 
}

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

body.thank-you-page,
main.thank-you-page {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

/* NUCLEAR OPTION - Override everything with transparent backgrounds */
.thank-you-page section,
.thank-you-page section *,
.thank-you-page div,
.thank-you-page .container,
.thank-you-page .container-fluid,
.thank-you-page .row,
.thank-you-page .col,
.thank-you-page [class*="col-"],
.thank-you-page main,
main.thank-you-page section,
main.thank-you-page div,
main.thank-you-page .container {
    background-color: transparent !important;
    background-image: none !important;
}

/* EXCEPT these specific elements that need backgrounds */
.thank-you-page .dark-bg,
.thank-you-page .dark-bg *,
main.thank-you-page .dark-bg,
main.thank-you-page .dark-bg * {
    background: linear-gradient(135deg, #161928 0%, #1f2337 100%) !important;
}

.thank-you-page footer,
.thank-you-page footer *,
main.thank-you-page footer,
main.thank-you-page footer * {
    background: linear-gradient(135deg, #0d0f18 0%, #161928 100%) !important;
}

.thank-you-page .amount-box,
main.thank-you-page .amount-box {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.thank-you-page .step-ty,
main.thank-you-page .step-ty {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%) !important;
}

.thank-you-page .step-ty-description,
main.thank-you-page .step-ty-description {
    background: #f8f9fa !important;
}

.thank-you-page .ty-offer-container,
main.thank-you-page .ty-offer-container {
    background: #ffffff !important;
}

.thank-you-page .ty-additional-offers,
main.thank-you-page .ty-additional-offers {
    background: #ffffff !important;
}

.thank-you-page .btn,
.thank-you-page button,
.thank-you-page .ty-offer-button,
main.thank-you-page .btn,
main.thank-you-page .ty-offer-button {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%) !important;
}

.thank-you-page .chat-box,
main.thank-you-page .chat-box {
    background: #ffffff !important;
}

.thank-you-page .chat-box-heading,
main.thank-you-page .chat-box-heading {
    background: linear-gradient(135deg, #161928 0%, #1f2337 100%) !important;
}

#chart-ty {
    margin-top: -75px;
}

@media (min-width: 992px) {
    #chart-ty {
        margin-top: -92px;
    }
}

/* Amount Box */
.amount-box {
    padding: 18px 10px;
    border-radius: var(--radius-md);
    border: 4px solid #3b82f6;
    max-width: 200px;
    width: 100%;
    margin: 0 auto 3rem;
    background-color: #ffffff !important;
    position: relative;
    text-align: right;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

@media (min-width: 992px) {
    .amount-box {
        padding: 30px 15px;
        max-width: 280px;
        margin-bottom: 3rem;
    }
}

.amount-box:before {
    content: '$';
    font-size: 28px;
    font-weight: 800;
    color: #3b82f6;
    position: absolute;
    left: 10px;
    top: 11px;
}

@media (min-width: 992px) {
    .amount-box:before {
        font-size: 42px;
        left: 10px;
        top: 25px;
        z-index: 99;
    }
}

.amount-box-text {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    color: #161928;
}

@media (min-width: 992px) {
    .amount-box-text {
        font-size: 46px;
        z-index: 999;
        position: relative;
    }
}

/* Steps */
.step-ty {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: #fff;
    border-radius: 50%;
    height: 60px;
    width: 60px;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .step-ty {
        height: 80px;
        width: 80px;
    }
}

.step-ty-text {
    font-size: 11px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .step-ty-text {
        font-size: 14px;
    }
}

.step-ty-number {
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

@media (min-width: 768px) {
    .step-ty-number {
        font-size: 34px;
    }
}

.step-ty-description {
    background-color: #f8f9fa;
    padding: 1rem;
    font-weight: 500;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Additional Offers */
.ty-additional-offers {
    border: 2px solid #e0e0e0;
    padding: 2rem 1rem;
    border-radius: var(--radius-md);
    background: #ffffff;
}

@media (min-width: 768px) {
    .ty-additional-offers {
        padding: 2rem;
    }
}

/* Custom Max Widths */
.custom-mw-921 {
    max-width: 921px;
    margin-left: auto;
    margin-right: auto;
}

.custom-mw-720 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Chat Box */
.chat-box {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    background-color: #fff;
    padding-bottom: 3rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.chat-box-heading {
    padding: 20px 30px;
    background: linear-gradient(135deg, #161928 0%, #1f2337 100%);
    color: #ffffff;
}

.chat-box-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.chat-box-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
}

.chat-box-date {
    text-align: center;
    padding: 10px;
    color: #757575;
    font-weight: 500;
}

.chat-box-body {
    padding: 10px 30px;
}

/* Messages */
.agent-message {
    background-color: #f8f9fa;
    padding: 20px 25px;
    border-radius: var(--radius-xl);
    border-top-left-radius: 0;
    margin-bottom: 25px;
    color: #161928;
    max-width: 620px;
    width: auto;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.user-message {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.15) 100%);
    padding: 20px 25px;
    border-radius: var(--radius-xl);
    border-top-right-radius: 0;
    margin-bottom: 15px;
    color: #161928;
    max-width: 620px;
    width: auto;
    display: block;
    line-height: 1.6;
    border: 2px solid #3b82f6;
}

.chat-box-agent-reply {
    display: flex;
}

.agent-profile {
    margin-right: 15px;
}

.chat-box-user-reply {
    display: flex;
    justify-content: flex-end;
    display: none;
}

.user-reply {
    display: flex;
    flex-direction: column;
}

/* Textarea */
#user-textarea {
    width: 100%;
    padding: 1.5rem 1rem;
    height: 100%;
    border-radius: 0;
    min-height: 78px;
    padding-right: 50px;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.textarea-wrapper {
    margin-top: 1rem;
    padding: 0;
}

.textbox-form {
    position: relative;
    width: 100%;
    border: 2px solid #e0e0e0;
    padding-right: 50px;
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease;
}

.textbox-form:focus-within {
    border-color: #3b82f6;
}

#user-send {
    position: absolute;
    border: none;
    background-color: transparent;
    padding: 0 0 0 15px;
    top: 16px;
    right: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.send-btn-icon {
    color: #3b82f6;
    font-size: 24px;
}

#user-textarea:focus::placeholder {
    color: transparent;
}

#user-textarea:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

#user-send:hover .send-btn-icon {
    color: #161928;
    transform: scale(1.1);
}

/* Scrollbar Styles */
#user-textarea::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0,0,0,0.05);
    border-radius: 0;
    background-color: #ffffff;
}

#user-textarea::-webkit-scrollbar {
    width: 5px;
    background-color: #F5F5F5;
}

#user-textarea::-webkit-scrollbar-thumb {
    border-radius: 5px;
    box-shadow: inset 0 0 6px rgba(0,0,0,.15);
    background-color: #3b82f6;
}

/* ================================
   UTILITY CLASSES
   ================================ */

.clickable { 
    cursor: pointer; 
}

.d-none { 
    display: none !important; 
}

.text-center { 
    text-align: center; 
}

.fw-bold { 
    font-weight: 700; 
}

.fw-medium { 
    font-weight: 500; 
}

/* ================================
   MOBILE RESPONSIVENESS
   ================================ */

/* Tablet and Mobile Devices */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .form-steps legend.questions,
    .form-steps h3 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .form-wrapper {
        padding: 1.75rem 1.5rem 2rem 1.5rem;
    }
    
    .form-nav-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    #submit-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .form-control, .form-control-lg,
    .form-select, .form-select-lg {
        font-size: 16px;
        padding: 0.75rem 0.875rem;
    }
    
    .partner {
        padding: 0 2rem;
    }
    
    .progress {
        height: 12px;
    }
    
    .value-range-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 100%;
    }
    
    .range-btn {
        padding: 14px 10px;
        font-size: 0.875rem;
    }
    
    .display-value {
        font-size: 1.75rem;
    }
    
    .slider-container {
        padding: 18px;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .logo {
        max-height: 50px;
    }
    
    header .container {
        padding: 0.75rem 1rem;
    }
    
    .section-main {
        padding: 1rem 0 1.5rem 0;
    }
    
    .wrapper-narrow-maxwidth {
        padding: 0 1rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .form-steps legend.questions,
    .form-steps h3 {
        font-size: 1.35rem;
        line-height: 1.3;
        margin-bottom: 1.25rem;
    }
    
    .form-steps p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .form-wrapper {
        padding: 1.5rem 1.25rem 1.75rem 1.25rem;
        border-radius: var(--radius-lg);
    }
    
    .progress {
        height: 12px;
    }
    
    .progress-percentage {
        font-size: 0.7rem;
    }
    
    .input-field-wrapper {
        margin-bottom: 0.875rem;
    }
    
    .form-control, .form-control-lg,
    .form-select, .form-select-lg {
        font-size: 16px;
        padding: 0.75rem;
        border-radius: 10px;
    }
    
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .form-check-label {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
        min-height: 48px;
        word-break: break-word;
    }
    
    .row .col-md-6.mb-2,
    .row .col-md-4.mb-2 {
        margin-bottom: 0.75rem !important;
    }
    
    .form-nav-buttons {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.85rem 1.75rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .back-btn {
        flex: 0 0 auto;
        min-width: 90px;
    }
    
    .next-btn, .submit-btn {
        flex: 1;
        min-width: 120px;
    }
    
    #submit-btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
    }
    
    .icon-forward, .icon-back {
        width: 0.9em;
        height: 0.9em;
    }
    
    .select-box {
        padding: 0.875rem 0.75rem;
        min-height: 90px;
    }
    
    .select-img {
        max-width: 40px;
        max-height: 40px;
    }
    
    .box-option-title {
        font-size: 0.9rem;
    }
    
    .box-option-title small {
        font-size: 0.75rem;
    }
    
    .range-label {
        font-size: 1.25rem !important;
    }
    
    .features {
        padding: 3rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-modern {
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer-trust-section {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .trust-item {
        padding: 0.6rem 1rem;
        gap: 0.6rem;
    }
    
    .trust-item svg {
        width: 20px;
        height: 20px;
    }
    
    .trust-item span {
        font-size: 0.85rem;
    }
    
    .footer-links {
        padding: 1rem 0;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-links .list-inline-item {
        display: block;
        margin-bottom: 0.75rem;
    }
    
    .footer-copyright p,
    .copyright p {
        font-size: 0.8rem;
    }
    
    .footer-disclaimer p,
    .disclosure-text {
        font-size: 0.75rem;
    }
    
    .chat-box-body {
        padding: 10px 15px;
    }
    
    .agent-message,
    .user-message {
        padding: 15px 18px;
        font-size: 0.95rem;
        max-width: 90%;
    }
    
    #user-textarea {
        font-size: 16px;
        padding: 1rem 0.75rem;
        min-height: 70px;
    }
    
    .ty-offer-container {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-md);
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .form-steps legend.questions,
    .form-steps h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .form-wrapper {
        padding: 1.25rem 1rem 1.5rem 1rem;
    }
    
    .form-check-label {
        font-size: 0.85rem;
        padding: 0.625rem 0.75rem;
        min-height: 44px;
    }
    
    .row .col-md-4.mb-2,
    .row .col-lg-3.mb-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .back-btn span,
    .next-btn span {
        font-size: 0.85rem;
    }
    
    .select-box {
        min-height: 80px;
        padding: 0.75rem 0.625rem;
    }
    
    .box-option-title {
        font-size: 0.85rem;
    }
}

/* Landscape orientation fix for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .form-wrapper {
        margin: 0.5rem auto;
    }
    
    .form-steps legend.questions,
    .form-steps h3 {
        margin-bottom: 0.5rem;
    }
    
    .form-steps p {
        margin-bottom: 0.5rem;
    }
    
    .input-field-wrapper {
        margin-bottom: 0.625rem;
    }
}

/* Ensure touch targets are at least 44x44px */
@media (max-width: 768px) {
    button, 
    .btn,
    .form-check-label,
    .form-select,
    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        min-height: 44px;
    }
}

/* Fix viewport units on mobile browsers */
@supports (-webkit-touch-callout: none) {
    .section-main {
        min-height: -webkit-fill-available;
    }
}

/* Smooth Entrance Animations */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(20px);} 
    to { opacity: 1; transform: translateY(0);} 
}

[data-aos] { 
    animation: fadeIn 0.8s ease-out; 
}

