/* ================================
   Professional Mortgage Form - Red Edition v5
   COMPLETE PACKAGE - Above The Fold + Thank You Page
   Ultra-compact spacing for maximum visibility
   ================================ */

/* CSS Variables - Professional Red Theme */
:root {
    /* Primary Red Palette - Matching MortgageCO Brand */
    --primary-color: #b5121c;
    --primary-dark: #000000;
    --primary-light: #c93339;
    --accent-color: #b5121c;
    --accent-light: #c93339;
    --accent-dark: #b5121c;
    
    /* Success & Trust Colors */
    --success-color: #b5121c;
    --trust-color: #c93339;
    
    /* Neutral Colors */
    --text-dark: #000000;
    --text-medium: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --background-light: #fafafa;
    --background-cream: #f8f8f8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #b5121c 0%, #c93339 100%);
    --gradient-accent: linear-gradient(135deg, #b5121c 0%, #c93339 100%);
    --gradient-subtle: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(181, 18, 28, 0.08);
    --shadow-md: 0 4px 16px rgba(181, 18, 28, 0.12);
    --shadow-lg: 0 8px 32px rgba(181, 18, 28, 0.16);
    --shadow-xl: 0 16px 48px rgba(181, 18, 28, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

html { 
    scroll-behavior: smooth; 
    height: 100%; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    background: var(--gradient-subtle);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography - COMPACT */
h1, h2, h3, h4, h5, h6 { 
    font-weight: 700; 
    line-height: 1.2; 
    color: var(--text-dark);
}

h1 { 
    font-size: clamp(1.5rem, 4vw, 2.5rem); 
    letter-spacing: -0.02em; 
}

h2 { 
    font-size: clamp(1.4rem, 3.5vw, 2rem); 
    letter-spacing: -0.01em; 
}

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

h4 { 
    font-size: clamp(1.1rem, 2vw, 1.5rem); 
}

/* 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(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-medium);
    font-weight: 500;
    text-align: center;
    margin: 0.75rem auto 1rem;
}

/* ================================
   HEADER STYLES - COMPACT
   ================================ */

header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
    flex-shrink: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(181, 18, 28, 0.08);
}

header.scrolled { 
    box-shadow: var(--shadow-md);
    padding: 0.4rem 0;
}

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

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

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

header.scrolled .logo {
    max-height: 45px;
}

/* Header Trust Badge - COMPACT */
.header-trust-badge {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(181, 18, 28, 0.08), rgba(201, 51, 57, 0.08));
    border: 2px solid rgba(181, 18, 28, 0.2);
    transition: all var(--transition-base);
}

.header-trust-badge:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(181, 18, 28, 0.12), rgba(201, 51, 57, 0.12));
}

.trust-badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-medium);
    line-height: 1.3;
}

.trust-badge-highlight {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge-circle {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(181, 18, 28, 0.3);
    display: inline-block;
    position: relative;
}

.badge-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    padding: 2px;
    background: var(--gradient-accent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

.badge-label {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.85rem;
}

/* ================================
   MAIN SECTION - ULTRA COMPACT
   ================================ */

.section-main {
    background: var(--gradient-subtle);
    padding: 0.75rem 0 1rem 0;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.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='%23c8102e' fill-opacity='0.02'%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: 900px; 
    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 0.75rem; 
    font-size: 1rem; 
}

/* Select Boxes - Radio Button Cards */
.select-box { 
    cursor: pointer; 
    transition: all var(--transition-base); 
    height: 100%; 
    margin-bottom: 0.75rem; 
}

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

.select-label-option {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    padding: 1.25rem 1rem; 
    border: 2px solid #e8e8e8; 
    border-radius: var(--radius-lg); 
    background: var(--white);
    box-shadow: 0 4px 20px rgba(181, 18, 28, 0.06); 
    transition: all var(--transition-base);
    cursor: pointer; 
    height: 100%; 
    min-height: 110px; 
    position: relative; 
    overflow: hidden;
    margin: 0; /* Remove default label margin */
}

.select-label-option.form-label { 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important; 
    text-align: center !important; 
    margin: 0 !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: 3px; 
    background: var(--gradient-accent);
    transform: scaleX(0); 
    transition: transform var(--transition-base);
}

/* Hover States */
.select-box:hover .select-label-option, 
.select-label-option:hover {
    transform: translateY(-4px) scale(1.02); 
    box-shadow: 0 12px 40px rgba(181, 18, 28, 0.15); 
    border-color: var(--primary-color);
}

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

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

/* Selected State */
.select-box input[type="radio"]:checked + .select-label-option {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(181, 18, 28, 0.05), rgba(0, 0, 0, 0.05));
    box-shadow: 0 8px 32px rgba(181, 18, 28, 0.2);
    transform: scale(1.02);
}

.select-box input[type="radio"]:checked + .select-label-option::after {
    transform: scaleX(1);
}

.select-img {
    width: 56px; 
    height: 56px; 
    object-fit: contain; 
    margin-bottom: 0.6rem;
    margin-left: auto !important; 
    margin-right: auto !important; 
    filter: grayscale(20%) brightness(0) saturate(100%);
    opacity: 0.75; 
    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.1); 
}

.box-option-title {
    font-size: 1rem; 
    font-weight: 700; 
    color: var(--text-dark); 
    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; 
    color: var(--text-light);
}

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

.section-main .row.justify-content-center { 
    row-gap: 0.75rem; 
}

/* Progress Bar Styles - COMPACT */
.progress-wrapper { 
    margin-bottom: 1rem; 
    background: transparent; 
    padding: 0.35rem 0; 
    box-shadow: none; 
}

.progress {
    height: 10px; 
    border-radius: 20px; 
    background: #ffffff; 
    overflow: hidden; 
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06); 
    margin-bottom: 0.4rem;
    border: 2px solid #e8e8e8;
}

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

.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.7rem; 
    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-medium); 
    font-size: 0.85rem; 
    margin: 0.4rem 0 0 0; 
    font-weight: 500;
}

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

/* Form Wrapper - ULTRA COMPACT FOR ABOVE FOLD */
.form-wrapper { 
    background: var(--white); 
    border-radius: var(--radius-xl); 
    padding: 1.5rem 1.5rem 1.75rem 1.5rem; 
    box-shadow: var(--shadow-lg); 
    margin: 0.75rem auto 0.75rem auto; 
    position: relative;
    max-width: 100%;
    border: 1px solid rgba(181, 18, 28, 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 - COMPACT */
.form-steps { 
    display: none; 
    animation: fadeIn 0.5s ease-out; 
}

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

.form-steps legend.questions { 
    color: var(--primary-dark); 
    margin-bottom: 1.25rem; 
    font-size: 1.5rem; 
    font-weight: 700; 
    text-align: center; 
    line-height: 1.2;
}

.form-steps p { 
    color: var(--text-medium); 
    margin-bottom: 1rem; 
    line-height: 1.6; 
    text-align: center;
    font-size: 0.95rem;
}

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

/* Input field wrapper - COMPACT */
.input-field-wrapper { 
    margin-bottom: 1.25rem; 
}

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

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

.form-control::placeholder {
    color: #a8b5ad;
}

/* Override browser autofill green background */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control-lg:-webkit-autofill,
.form-control-lg:-webkit-autofill:hover,
.form-control-lg:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: var(--text-dark) !important;
    border-color: var(--primary-color) !important;
}

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

.form-control.valid { 
    border-color: var(--success-color); 
    background: #f0f9f4;
}

.form-label { 
    font-weight: 600; 
    color: var(--text-dark); 
    margin-bottom: 0.5rem; 
    font-size: 0.9rem; 
    display: block; 
}

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

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

.form-text.text-muted {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
    line-height: 1.4;
}

/* Professional Range Slider - COMPACT */
.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: 7px !important;
    min-height: 7px !important;
    max-height: 7px !important;
    padding: 0 !important;
    border-radius: 4px !important;
    background: linear-gradient(to right, 
        var(--accent-color) 0%, 
        var(--accent-color) var(--val, 0%), 
        #e8e8e8 var(--val, 0%), 
        #e8e8e8 100%) !important;
    outline: none !important;
    margin: 1.5rem 0 1.25rem 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: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: var(--white) !important;
    cursor: pointer !important;
    border: 3px solid var(--accent-color) !important;
    box-shadow: 0 2px 8px rgba(181, 18, 28, 0.2) !important;
    transition: all var(--transition-fast) !important;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(181, 18, 28, 0.3) !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 {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: var(--white) !important;
    cursor: pointer !important;
    border: 3px solid var(--accent-color) !important;
    box-shadow: 0 2px 8px rgba(181, 18, 28, 0.2) !important;
    transition: all var(--transition-fast) !important;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(181, 18, 28, 0.3) !important;
}

/* Slider Value Display */
.slider-value-display {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* Buttons - COMPACT */
.btn {
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    line-height: 1.4;
}

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

.cta-button {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(181, 18, 28, 0.25);
    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.2), 
        transparent
    );
    transition: left 0.5s ease;
}

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

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(181, 18, 28, 0.35);
}

.cta-button:active {
    transform: translateY(0);
}

.next-btn {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(181, 18, 28, 0.3);
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.back-btn:hover {
    background: var(--background-light);
    border-color: var(--primary-light);
    color: var(--primary-color);
}

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

.form-nav-buttons .btn {
    flex: 1;
    max-width: 280px;
}

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

/* Partners Section */
.section-partners {
    background: #ffffff;
    padding: 3rem 0;
    border-top: 1px solid rgba(181, 18, 28, 0.08);
    border-bottom: 1px solid rgba(181, 18, 28, 0.08);
    overflow: visible;
}

.partners-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.partners-scroll-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partners-scroll-wrapper::before,
.partners-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.partners-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.partners-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.partners-track {
    display: flex;
    gap: 4rem;
    animation: scroll-partners 40s linear infinite;
    width: fit-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03));
    border-radius: 12px;
    border: 1px solid rgba(181, 18, 28, 0.08);
    transition: all 0.3s ease;
    min-width: 180px;
}

.partner-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(181, 18, 28, 0.12);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(181, 18, 28, 0.08), rgba(201, 51, 57, 0.08));
}

.partner-logo img {
    max-height: 45px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease;
}

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

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

/* Features Section */
.features {
    padding: 3rem 0;
    background: var(--background-light);
}

.features-title {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-size: 1.85rem;
}

.features .item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(181, 18, 28, 0.08);
}

.features .item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.features .item h2 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.item-discription {
    color: var(--text-medium);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.item-why-container {
    background: var(--background-cream);
    border-radius: var(--radius-sm);
    padding: 1rem;
    border: 1px solid #e8e8e8;
}

.item-why-container .d-flex {
    margin-bottom: 0.65rem;
}

.item-why-container .d-flex:last-child {
    margin-bottom: 0;
}

.item-why-container .icon {
    width: 22px;
    height: 22px;
    margin-right: 0.65rem;
    flex-shrink: 0;
}

.item-why-container p {
    color: var(--text-medium);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Testimonials Section */
.splide {
    padding: 1rem 0;
}

.splide__slide {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(181, 18, 28, 0.08);
}

.splide__slide:hover {
    box-shadow: var(--shadow-lg);
}

.splide__slide img {
    border: 3px solid var(--accent-color);
}

.splide__slide p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

.splide__slide .fw-bold {
    color: var(--primary-color);
    font-style: normal;
}

.splide__arrow {
    background: var(--accent-color);
    opacity: 1;
}

.splide__arrow:hover {
    background: var(--primary-color);
}

.splide__pagination__page.is-active {
    background: var(--accent-color);
}

/* Trust Badges */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--background-cream);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid #e8e8e8;
    margin: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.trust-badge img {
    width: 22px;
    height: 22px;
}

/* Security Badge */
.security-badge {
    text-align: center;
    margin-top: 1.25rem;
    padding: 1rem;
    background: var(--background-cream);
    border-radius: var(--radius-md);
    border: 1px solid #e8e8e8;
}

.security-badge p {
    margin: 0;
    color: var(--text-medium);
    font-size: 0.875rem;
}

.security-badge img {
    width: 30px;
    height: 30px;
    margin-bottom: 0.5rem;
}

/* ================================
   FOOTER STYLES - COMPACT
   ================================ */

.footer-modern {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem 0 1.5rem 0;
    margin-top: auto;
    border-top: 3px solid var(--accent-color);
}

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

/* Footer Trust Section - COMPACT */
.footer-trust-section {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.trust-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.trust-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
}

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

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-light);
    transition: width var(--transition-base);
}

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

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

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

.footer-copyright p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer Disclaimer - COMPACT */
.footer-disclaimer {
    text-align: center;
    padding: 0.75rem 0 0 0;
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

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

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

.modal.show {
    background: rgba(26, 77, 46, 0.4) !important;
    backdrop-filter: blur(4px);
}

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

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

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

.modal-content {
    position: relative !important;
    z-index: 10000 !important;
    background-color: var(--white) !important;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(181, 18, 28, 0.08);
    height: 100%;
}

.modal-body,
.modal-header,
.modal-footer {
    position: relative !important;
    z-index: 10001 !important;
    background-color: var(--white) !important;
}

.modal-header {
    border-bottom: none;
    padding: 1.25rem 1.25rem 0 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e8e8e8;
    padding: 1.25rem;
}

.modal-icon {
    display: flex;
    justify-content: center;
}

/* Chat Box Styles */
.chat-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.chat-box-header {
    background: var(--gradient-primary);
    padding: 1.75rem;
    text-align: center;
    color: var(--white);
}

.chat-box-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.chat-box-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.chat-box-date {
    text-align: center;
    padding: 1rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.85rem;
}

.chat-box-body {
    padding: 1.5rem 2rem;
}

/* Messages */
.agent-message {
    background: var(--background-light);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    border-top-left-radius: 0;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    max-width: 620px;
    width: auto;
    line-height: 1.6;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e8e8e8;
}

.user-message {
    background: linear-gradient(135deg, rgba(181, 18, 28, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    border-top-right-radius: 0;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    max-width: 620px;
    width: auto;
    display: block;
    line-height: 1.6;
    border: 2px solid var(--accent-color);
}

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

.agent-profile {
    margin-right: 1rem;
    flex-shrink: 0;
}

.agent-profile img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

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

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

/* Textarea */
#user-textarea {
    width: 100%;
    padding: 1.25rem 1rem;
    height: 100%;
    border-radius: 0;
    min-height: 80px;
    padding-right: 60px;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

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

.textbox-form {
    position: relative;
    width: 100%;
    border: 2px solid #e8e8e8;
    padding-right: 60px;
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base);
    background: var(--white);
}

.textbox-form:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(181, 18, 28, 0.12);
}

#user-send {
    position: absolute;
    border: none;
    background-color: transparent;
    padding: 0 0 0 15px;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.send-btn-icon {
    color: var(--accent-color);
    font-size: 24px;
    transition: all var(--transition-base);
}

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

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

#user-send:hover .send-btn-icon {
    color: var(--primary-color);
    transform: scale(1.15);
}

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

#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: var(--accent-color);
}

/* OTP Verification Step Styling */
#step-verify .container,
#step-verify .card,
#step-verify .card-body {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
}

#step-verify .card-body > .mb-3:first-child {
    margin-top: 0 !important;
}

#step-verify .mt-4 {
    display: none !important;
}

#step-verify {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#step-verify h2 {
    color: var(--primary-dark) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.25rem !important;
    text-align: center !important;
}

#step-verify p.text-center.mb-3 {
    color: var(--text-medium) !important;
    margin-bottom: 1rem !important;
    font-size: 0.95rem !important;
}

/* 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; 
}

/* Responsive Design */
@media (max-width: 991px) {
    .form-wrapper {
        padding: 1.35rem 1.35rem 1.5rem 1.35rem;
    }
    
    .form-steps legend.questions {
        font-size: 1.4rem;
    }
    
    .features .item {
        margin-bottom: 1.5rem;
    }
    
    .wrapper-narrow-maxwidth {
        padding: 0 0.875rem;
    }
    
    .header-trust-badge {
        padding: 0.4rem 0.65rem;
    }
    
    .badge-circle {
        font-size: 0.875rem;
        padding: 0.2rem 0.55rem;
    }
    
    .badge-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    .section-main {
        padding: 0.6rem 0 0.75rem 0;
    }
    
    .form-wrapper {
        padding: 1.25rem 1.25rem 1.35rem 1.25rem;
    }
    
    .form-steps legend.questions {
        font-size: 1.3rem;
    }
    
    .form-nav-buttons {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .form-nav-buttons .btn {
        width: 100%;
        max-width: 100%;
    }
    
    .select-label-option {
        padding: 1rem 0.875rem;
        min-height: 100px;
    }
    
    .select-img {
        width: 52px;
        height: 52px;
    }
    
    .box-option-title {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.8rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .form-control,
    .form-control-lg {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .footer-modern {
        padding: 1.5rem 0 1.25rem 0;
    }
    
    .footer-links {
        padding: 1.25rem 0;
    }
    
    .footer-link {
        font-size: 0.825rem;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-links .list-inline-item {
        display: block;
        margin-bottom: 0.6rem;
    }
    
    .trust-item {
        padding: 0.5rem 0.85rem;
    }
    
    .trust-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .wrapper-narrow-maxwidth {
        padding: 0 0.75rem;
    }
    
    .form-wrapper {
        padding: 1.15rem 1rem 1.25rem 1rem;
    }
    
    .form-steps legend.questions {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(181, 18, 28, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 0.8s linear infinite;
}

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

/* Success Checkmark Animation */
.success-checkmark {
    width: 70px;
    height: 70px;
    margin: 0 auto;
}

.success-checkmark .check-icon {
    width: 70px;
    height: 70px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--success-color);
}

.success-checkmark .check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.success-checkmark .check-icon::before,
.success-checkmark .check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: var(--white);
    transform: rotate(-45deg);
}

.success-checkmark .icon-line {
    height: 5px;
    background-color: var(--success-color);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.success-checkmark .icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

@keyframes rotate-circle {
    0% { transform: rotate(-45deg); }
    5% { transform: rotate(-45deg); }
    12% { transform: rotate(-405deg); }
    100% { transform: rotate(-405deg); }
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 46px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

/* Print Styles */
@media print {
    body {
        background: var(--white);
    }
    
    .section-main::before {
        display: none;
    }
    
    .form-wrapper {
        box-shadow: none;
        border: 1px solid #e8e8e8;
    }
    
    header,
    footer,
    .modal {
        display: none;
    }
}

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

   Thank You Page - Professional Red Theme
   Matching the main site design
   ================================ */

/* Hero Section */
.ty-hero-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 4rem 0 3rem 0;
    position: relative;
    overflow: hidden;
}

.ty-hero-section::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='%23c8102e' 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: 1;
}

.ty-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Success Icon */
.ty-success-icon {
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
}

.ty-success-icon svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* Title & Subtitle */
.ty-title {
    color: #b5121c;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.ty-subtitle {
    color: #c93339;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Address Badge */
.ty-address-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.ty-address-badge svg {
    flex-shrink: 0;
}

/* Results Section */
.ty-results-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
}

.ty-results-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Celebration Animation */
.ty-celebration-animation {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

/* Results Grid */
.ty-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

/* Result Card */
.ty-result-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(181, 18, 28, 0.12);
    text-align: center;
    border: 2px solid rgba(181, 18, 28, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ty-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #b5121c 0%, #c93339 100%);
}

.ty-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(181, 18, 28, 0.18);
    border-color: #b5121c;
}

.ty-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(181, 18, 28, 0.1), rgba(0, 0, 0, 0.1));
    border-radius: 50%;
    border: 3px solid rgba(181, 18, 28, 0.2);
}

.ty-card-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.ty-card-amount {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 800;
    color: #b5121c;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.ty-card-description {
    font-size: 0.95rem;
    color: #333333;
    margin: 0;
}

/* Disclaimer */
.ty-disclaimer {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    border: 2px solid #e8e8e8;
    box-shadow: 0 4px 16px rgba(181, 18, 28, 0.06);
}

.ty-disclaimer p {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

.ty-disclaimer strong {
    color: #333333;
}

/* Steps Section */
.ty-steps-section {
    padding: 5rem 0;
    background: #ffffff;
}

.ty-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.ty-section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #b5121c;
    margin-bottom: 1rem;
}

.ty-section-header p {
    font-size: 1.15rem;
    color: #333333;
    margin: 0;
}

/* Steps Grid */
.ty-steps-grid {
    max-width: 900px;
    margin: 0 auto 3rem;
    display: grid;
    gap: 2rem;
}

/* Step Card */
.ty-step-card {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid #e8e8e8;
    box-shadow: 0 4px 20px rgba(181, 18, 28, 0.08);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    gap: 2rem;
}

.ty-step-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(181, 18, 28, 0.12);
    border-color: #b5121c;
}

.ty-step-number {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #b5121c 0%, #c93339 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(181, 18, 28, 0.3);
}

.ty-step-content {
    flex: 1;
}

.ty-step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b5121c;
    margin-bottom: 0.875rem;
}

.ty-step-content p {
    font-size: 1.05rem;
    color: #333333;
    line-height: 1.7;
    margin: 0;
}

.ty-highlight {
    background: linear-gradient(135deg, rgba(181, 18, 28, 0.15), rgba(0, 0, 0, 0.15));
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    color: #b5121c;
}

.ty-step-icon {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

/* Trust Badges */
.ty-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
    border-radius: 16px;
    border: 2px solid #e8e8e8;
}

.ty-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #b5121c;
}

.ty-trust-item svg {
    flex-shrink: 0;
}

/* Offers Section */
.ty-offers-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

/* Offer Card */
.ty-offer-card {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(181, 18, 28, 0.12);
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
}

.ty-offer-card:hover {
    box-shadow: 0 12px 48px rgba(181, 18, 28, 0.18);
    border-color: #b5121c;
}

/* Offer Header */
.ty-offer-header {
    background: linear-gradient(135deg, #b5121c 0%, #c93339 100%);
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.ty-offer-logo {
    max-width: 200px;
}

.ty-offer-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.ty-offer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Offer Body */
.ty-offer-body {
    padding: 2.5rem;
}

.ty-offer-body h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #b5121c;
    margin-bottom: 2rem;
}

.ty-offer-features {
    display: grid;
    gap: 1rem;
}

.ty-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ty-feature-item:hover {
    background: linear-gradient(135deg, rgba(181, 18, 28, 0.1), rgba(0, 0, 0, 0.1));
    transform: translateX(4px);
}

.ty-feature-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.ty-feature-item span {
    font-size: 1.05rem;
    color: #333333;
    font-weight: 500;
}

/* Offer Footer */
.ty-offer-footer {
    padding: 2rem 2.5rem 2.5rem;
    border-top: 2px solid #e8e8e8;
    text-align: center;
}

.ty-offer-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #b5121c 0%, #c93339 100%);
    color: #ffffff;
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 16px rgba(181, 18, 28, 0.3);
    transition: all 0.3s ease;
}

.ty-offer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.ty-offer-button svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ty-offer-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666666;
}

/* Final CTA Section */
.ty-final-cta {
    padding: 4rem 0;
    background: #ffffff;
}

.ty-cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #b5121c 0%, #c93339 100%);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.ty-cta-box::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='%23ffffff' fill-opacity='0.05'%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: 1;
}

.ty-cta-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.ty-cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.ty-cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0;
}

.ty-cta-icon {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ty-cta-icon svg {
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.1));
}

/* Responsive Design */
@media (max-width: 991px) {
    .ty-hero-section {
        padding: 3rem 0 2.5rem 0;
    }
    
    .ty-results-section {
        padding: 3rem 0;
    }
    
    .ty-celebration-animation {
        top: -120px;
    }
    
    .ty-steps-section,
    .ty-offers-section,
    .ty-final-cta {
        padding: 3.5rem 0;
    }
    
    .ty-step-card {
        padding: 2rem;
    }
    
    .ty-step-icon {
        display: none;
    }
    
    .ty-offer-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .ty-hero-section {
        padding: 2.5rem 0 2rem 0;
    }
    
    .ty-title {
        font-size: 1.75rem;
    }
    
    .ty-subtitle {
        font-size: 1rem;
    }
    
    .ty-address-badge {
        font-size: 0.9rem;
        padding: 0.7rem 1.25rem;
    }
    
    .ty-results-section {
        padding: 2.5rem 0;
    }
    
    .ty-celebration-animation {
        display: none;
    }
    
    .ty-results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ty-result-card {
        padding: 2rem 1.5rem;
    }
    
    .ty-card-amount {
        font-size: 2rem;
    }
    
    .ty-steps-section,
    .ty-offers-section {
        padding: 2.5rem 0;
    }
    
    .ty-section-header {
        margin-bottom: 2rem;
    }
    
    .ty-step-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.75rem;
    }
    
    .ty-step-card:hover {
        transform: translateY(-4px);
    }
    
    .ty-step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .ty-step-content h3 {
        font-size: 1.3rem;
    }
    
    .ty-step-content p {
        font-size: 0.95rem;
    }
    
    .ty-trust-badges {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .ty-trust-item {
        justify-content: center;
    }
    
    .ty-offer-header {
        padding: 1.75rem 1.5rem;
    }
    
    .ty-offer-body {
        padding: 2rem 1.5rem;
    }
    
    .ty-offer-body h3 {
        font-size: 1.4rem;
    }
    
    .ty-offer-footer {
        padding: 1.5rem;
    }
    
    .ty-offer-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }
    
    .ty-final-cta {
        padding: 2.5rem 0;
    }
    
    .ty-cta-box {
        flex-direction: column;
        padding: 2rem 1.75rem;
        gap: 1.5rem;
        text-align: center;
    }
    
    .ty-cta-content h2 {
        font-size: 1.5rem;
    }
    
    .ty-cta-content p {
        font-size: 1rem;
    }
    
    .ty-cta-icon svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .ty-hero-section {
        padding: 2rem 0 1.75rem 0;
    }
    
    .ty-success-icon svg {
        width: 80px;
        height: 80px;
    }
    
    .ty-disclaimer {
        padding: 1.5rem;
    }
    
    .ty-disclaimer p {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .ty-hero-section,
    .ty-final-cta,
    .ty-offer-footer {
        display: none;
    }
    
    .ty-results-section {
        background: #ffffff;
    }
    
    .ty-celebration-animation {
        display: none;
    }
}

/* ================================
   HOMEPAGE SPECIFIC STYLES
   ================================ */

/* CTA Badge */
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-badge:hover {
    /* Hover effect removed since there's no bubble */
}

.cta-badge-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.cta-badge-highlight {
    background: var(--gradient-accent);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(181, 18, 28, 0.3);
}

/* Feature Items - Homepage Enhancements */
.item-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(181, 18, 28, 0.1), rgba(0, 0, 0, 0.1));
    border-radius: 50%;
    border: 3px solid rgba(181, 18, 28, 0.2);
}

.item-benefits {
    margin: 1.5rem 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-item .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.benefit-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: #ffffff;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin: 0;
}

/* Testimonial Cards */
.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(181, 18, 28, 0.12);
    border: 2px solid rgba(181, 18, 28, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(181, 18, 28, 0.18);
    border-color: var(--accent-color);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    object-fit: cover;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin-bottom: 1.25rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    margin: 0;
    font-style: normal;
}

/* Splide Overrides for Homepage */
.testimonials-section .splide__arrow {
    background: var(--accent-color);
    opacity: 1;
    width: 3rem;
    height: 3rem;
}

.testimonials-section .splide__arrow:hover {
    background: var(--primary-color);
}

.testimonials-section .splide__arrow svg {
    fill: #ffffff;
}

.testimonials-section .splide__pagination__page {
    background: #e8e8e8;
    opacity: 1;
}

.testimonials-section .splide__pagination__page.is-active {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* Homepage Selection Cards Enhancement */
.select-label-option small {
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    margin-top: 0.4rem;
    color: var(--text-light);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .cta-badge {
        padding: 0.875rem 1.5rem;
    }
    
    .cta-badge-text {
        font-size: 1rem;
    }
    
    .cta-badge-highlight {
        font-size: 1.05rem;
        padding: 0.45rem 1rem;
    }
    
    .testimonials-section {
        padding: 3.5rem 0;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .item-icon-wrapper {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 767px) {
    .cta-badge {
        padding: 0;
        gap: 0.5rem;
    }
    
    .cta-badge-text {
        font-size: 0.95rem;
    }
    
    .cta-badge-highlight {
        font-size: 1rem;
        padding: 0.4rem 0.875rem;
    }
    
    .testimonials-section {
        padding: 2.5rem 0;
    }
    
    .testimonial-card {
        padding: 1.75rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .testimonial-avatar {
        width: 70px;
        height: 70px;
    }
    
    .testimonial-rating {
        justify-content: center;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .item-icon-wrapper {
        width: 64px;
        height: 64px;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .cta-badge {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0;
    }
    
    .cta-badge-text,
    .cta-badge-highlight {
        font-size: 0.9rem;
    }
}

/* ================================
   PROFESSIONAL FORM ENHANCEMENTS
   ================================ */

/* Question Subtitle */
.question-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 500;
    text-align: center;
    margin: 0.75rem auto 2rem;
    max-width: 600px;
}

/* Property Type Section within Step 1 */
.property-type-section {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 2px solid rgba(181, 18, 28, 0.1);
}

/* Address Input Group */
.address-input-group {
    position: relative;
}

/* Input Icons */
.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    pointer-events: none;
    margin-top: 0.75rem;
}

.input-field-wrapper {
    position: relative;
}

/* Select Icon Styling */
.select-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.select-icon svg {
    color: var(--accent-color);
    transition: all var(--transition-base);
}

.select-box:hover .select-icon svg {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Final Step Card */
.final-step-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(181, 18, 28, 0.15);
}

.final-step-header {
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(181, 18, 28, 0.1);
}

.success-icon-lg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon-lg svg {
    color: var(--success-color);
    filter: drop-shadow(0 4px 12px rgba(181, 18, 28, 0.3));
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.contact-form-section {
    padding-top: 1.5rem;
}

/* Trust Badges Inline */
.trust-badges-inline {
    background: linear-gradient(135deg, rgba(181, 18, 28, 0.03), rgba(0, 0, 0, 0.03));
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(181, 18, 28, 0.1);
}

.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-badge-item svg {
    filter: drop-shadow(0 2px 6px rgba(181, 18, 28, 0.15));
}

.trust-badge-item small {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Enhanced Form Controls */
.form-control-lg {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e8e8e8;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    background: var(--white);
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(181, 18, 28, 0.1);
    outline: none;
}

.form-control-lg::placeholder {
    color: #a0a0a0;
}

/* Google Places Autocomplete Dropdown Styling */
.pac-container {
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(181, 18, 28, 0.15);
    margin-top: 4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 9999 !important;
}

.pac-container:after {
    display: none;
}

.pac-item {
    padding: 12px 16px;
    cursor: pointer;
    border-top: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background-color: rgba(181, 18, 28, 0.08);
}

.pac-item-selected {
    background-color: rgba(181, 18, 28, 0.12);
}

.pac-icon {
    display: none;
}

.pac-item-query {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.pac-matched {
    font-weight: 700;
    color: var(--primary-color);
}

/* Select Styling */
select.form-control-lg {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23c8102e' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 3rem;
}

/* Submit Button Enhancement */
.submit-btn {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 20px rgba(181, 18, 28, 0.25);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(181, 18, 28, 0.35);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Progress Bar Enhancements */
.progress-wrapper {
    padding: 1rem 0;
}

.progress {
    height: 12px;
    border-radius: 50px;
    background: rgba(181, 18, 28, 0.1);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    background: var(--gradient-accent);
    transition: width 0.5s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 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-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    padding: 0 0.5rem;
    line-height: 12px;
}

.progress-status-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-top: 0.5rem;
}

/* Responsive Enhancements */
@media (max-width: 767px) {
    .final-step-card {
        padding: 1.5rem;
    }
    
    .question-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .trust-badges-inline {
        padding: 1rem;
    }
    
    .trust-badge-item small {
        font-size: 0.75rem;
    }
    
    .submit-btn {
        font-size: 1.1rem !important;
        padding: 0.875rem !important;
    }
}

@media (max-width: 480px) {
    .select-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .success-icon-lg svg {
        width: 56px;
        height: 56px;
    }
    
    .trust-badge-item svg {
        width: 28px;
        height: 28px;
    }
}

/* Partners Section - Responsive */
@media (max-width: 991px) {
    .section-partners {
        padding: 2.5rem 0;
    }
    
    .partners-text {
        margin-bottom: 2rem;
    }
    
    .partners-track {
        gap: 3rem;
    }
    
    .partner-logo {
        min-width: 160px;
        padding: 0.875rem 1.5rem;
    }
    
    .partner-logo img {
        max-height: 40px;
        max-width: 140px;
    }
}

@media (max-width: 767px) {
    .section-partners {
        padding: 2rem 0;
    }
    
    .partners-text {
        font-size: 0.7rem;
        margin-bottom: 1.5rem;
    }
    
    .partners-track {
        gap: 2rem;
        animation: scroll-partners 30s linear infinite;
    }
    
    .partner-logo {
        min-width: 140px;
        padding: 0.75rem 1.25rem;
    }
    
    .partner-logo img {
        max-height: 35px;
        max-width: 120px;
    }
    
    .partners-scroll-wrapper::before,
    .partners-scroll-wrapper::after {
        width: 50px;
    }
}