/* Deal Direct Financial Solutions - Remortgage Landing Page */
/* Color Scheme - Based on Deal Direct branding */
:root {
    --primary-color: #1e5a8e;
    --secondary-color: #2c8fc9;
    --accent-color: #27ae60;
    --urgent-color: #e74c3c;
    --dark-text: #1a1a1a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --warning-bg: #fff3cd;
}

/* Reset & Base (additional) */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Urgency Bar */
.urgency-bar {
    background: var(--warning-bg);
    border-bottom: 2px solid #f0ad4e;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #856404;
}

/* Hero Section Enhancements */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-text h1 {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text .subtitle {
    font-size: 20px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.hero-benefits {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

.hero-benefits li {
    padding: 8px 0;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-benefits li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 22px;
    flex-shrink: 0;
}

.live-activity {
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 20px;
}

.live-activity-title {
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-activity ul {
    list-style: none;
    font-size: 13px;
    opacity: 0.95;
    padding: 0;
}

.live-activity li {
    padding: 4px 0;
}

.hero-form-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-card-preview {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 450px;
}

.form-card-preview h3 {
    color: var(--dark-text);
    margin-bottom: 8px;
    font-size: 26px;
}

.form-card-preview .form-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-assurance {
    background: #e8f5e9;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
    text-align: center;
}

.form-disclaimer {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Complex Cases Section */
.complex-cases {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: 80px 0;
}

.complex-cases-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.complex-cases h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

.complex-cases .intro {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
    text-align: left;
}

.case-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.case-item:before {
    content: "✓";
    color: var(--accent-color);
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.cta-secondary {
    background: var(--white);
    color: var(--dark-text);
    padding: 16px 40px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    transition: transform 0.2s;
}

.cta-secondary:hover {
    transform: translateY(-2px);
}

/* General Section Intro */
.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 4rem 1rem;
    background: #f8fafc;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.why-card p {
    color: #64748b;
    line-height: 1.7;
}

/* Team/Advisors Section */
.team-section {
    padding: 4rem 1rem;
    background: white;
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advisor-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.advisor-card:hover {
    transform: translateY(-4px);
}

.advisor-initial {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.advisor-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
}

.advisor-card h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.advisor-role {
    color: #64748b;
    margin-bottom: 1rem;
}

.advisor-rating {
    margin-top: 1rem;
}

.advisor-rating .stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.advisor-rating span {
    color: #64748b;
    font-size: 0.9rem;
}

/* Journey Timeline Section */
.journey-section {
    padding: 4rem 1rem;
    background: #f8fafc;
}

.journey-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.journey-timeline {
    max-width: 900px;
    margin: 3rem auto 0;
    position: relative;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: #cbd5e1;
}

.journey-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-content h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.step-content p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.step-time {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Real Stories Section */
.stories-section {
    padding: 4rem 1rem;
    background: white;
}

.stories-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.story-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    border: 1px solid #e2e8f0;
}

.verified-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #3b82f6;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.story-card .stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.story-text {
    color: #1e293b;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.story-author {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.story-author span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Header */
.site-header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-link {
    display: block;
    line-height: 0;
    flex-shrink: 1;
    min-width: 0;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-phone:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.header-phone svg {
    flex-shrink: 0;
}

.header-phone span {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logo {
        height: 40px;
    }

    .header-phone {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .header-phone span {
        display: none;
    }
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    font-family: inherit;
}

/* Benefits Section */
.benefits {
    background: #fff;
    padding: 4rem 1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.1);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

.benefit-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Social Proof Section */
.social-proof {
    background: #f8fafc;
    padding: 4rem 1rem;
}

.social-proof h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
}

/* Review Badges */
.review-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.review-badge {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.review-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
    border-color: var(--primary-color);
}

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

.badge-rating .stars {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.rating-score {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.badge-details {
    text-align: left;
}

.badge-details strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.badge-details span {
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .review-badges {
        flex-direction: column;
        align-items: center;
    }

    .review-badge {
        width: 100%;
        max-width: 350px;
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.1);
}

.testimonial-card .stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-card .author {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

.press-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.logo-placeholder {
    color: #94a3b8;
    font-weight: 600;
    font-size: 1rem;
}

/* Form Section */
.form-section {
    background: #fff;
    padding: 4rem 1rem;
    min-height: 70vh;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.progress-container {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 999px;
    transition: width 0.3s ease;
    width: 9%;
}

.progress-text {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

.form-step h2 {
    color: var(--primary-color);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.form-hint {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Form Inputs */
.form-select,
.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-select:hover,
.form-input:hover {
    border-color: #cbd5e1;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em;
    padding-right: 3rem;
}

/* Searchable Dropdown */
.searchable-select {
    position: relative;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    display: none;
    z-index: 10;
}

.dropdown-list.active {
    display: block;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s;
}

.dropdown-item:hover,
.dropdown-item.highlighted {
    background: var(--secondary-color);
    color: #fff;
}

/* Radio Cards */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-label {
    display: block;
    padding: 1.25rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    font-weight: 500;
    transition: all 0.2s;
}

.radio-card:hover .radio-label {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.radio-card input[type="radio"]:checked + .radio-label {
    border-color: var(--primary-color);
    background: #eff6ff;
    color: var(--primary-color);
}

.radio-card input[type="radio"]:focus + .radio-label {
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Field Hint */
.field-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
}

.field-hint svg {
    flex-shrink: 0;
    color: var(--accent-color);
}

/* Error Messages */
.error-message {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.active {
    display: block;
}

.form-input.error,
.form-select.error {
    border-color: #dc2626;
}

/* Calculator Section */
.calculator-section {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    border: 2px solid #e2e8f0;
}

.calculator-section h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.calculator-result {
    text-align: center;
    margin-bottom: 2rem;
}

.monthly-payment {
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.payment-label {
    color: #64748b;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.calculator-inputs {
    display: grid;
    gap: 1.25rem;
}

.calc-row {
    display: grid;
    gap: 0.5rem;
}

.calc-row label {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
}

.calc-input {
    padding: 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    background: #fff;
    font-family: inherit;
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

.calc-input:read-only {
    background: #e2e8f0;
    color: #64748b;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

#sliderValue {
    color: var(--primary-color);
    font-weight: 600;
}

.calculator-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

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

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.summary-label {
    font-size: 0.85rem;
    color: #64748b;
}

.calculator-disclaimer {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 0.5rem;
    border-left: 4px solid #f59e0b;
}

.calculator-disclaimer svg {
    flex-shrink: 0;
    color: #d97706;
    margin-top: 0.125rem;
}

.calculator-disclaimer p {
    font-size: 0.85rem;
    color: #78350f;
    line-height: 1.5;
}

/* GDPR Consent */
/* Review Section */
.review-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
}

.review-item strong {
    color: var(--primary-color);
    font-weight: 600;
    flex: 0 0 200px;
}

.review-item span {
    flex: 1;
    padding: 0 1rem;
    color: #334155;
}

.review-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: #1e293b;
    background: white;
    transition: border-color 0.2s;
}

.review-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.btn-edit {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-edit:hover {
    background: var(--accent-color);
    color: white;
}

.gdpr-consent {
    margin-top: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Mobile Review Section */
@media (max-width: 768px) {
    .review-section {
        padding: 1rem;
    }

    .review-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .review-item strong {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }

    .review-item span {
        padding: 0;
        width: 100%;
    }

    .review-input {
        width: 100%;
        font-size: 1rem;
    }
}

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

.btn-back,
.btn-next,
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-back {
    background: #e2e8f0;
    color: #475569;
}

.btn-back:hover {
    background: #cbd5e1;
}

.btn-next,
.btn-submit {
    background: var(--accent-color);
    color: #fff;
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

.btn-next:active,
.btn-submit:active {
    transform: translateY(0);
}

/* Compliance Copy */
.compliance-copy {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

.compliance-copy p {
    margin-bottom: 0.5rem;
}

.compliance-copy strong {
    color: #475569;
}

/* Rates Section */
.rates-section {
    background: #fff;
    padding: 4rem 1rem;
}

.rates-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rate-tab {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.rate-tab:hover {
    background: #eff6ff;
    border-color: var(--primary-color);
}

.rate-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.rates-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.rate-table {
    display: none;
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rate-table.active {
    display: block;
}

.rate-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.rate-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
    transition: background 0.2s;
}

.rate-row:last-child {
    border-bottom: none;
}

.rate-row:hover {
    background: #f8fafc;
}

.lender-info {
    color: var(--primary-color);
}

.lender-info strong {
    font-weight: 600;
}

.rate-highlight {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .rate-header,
    .rate-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .rate-header {
        display: none;
    }

    .rate-row {
        padding: 1rem;
    }

    .rate-row > div::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        display: inline-block;
        margin-right: 0.5rem;
    }

    .lender-info::before {
        content: '';
    }

    .rates-tabs {
        flex-direction: column;
    }

    .rate-tab {
        width: 100%;
    }
}

/* FAQ Section */
.faq-section {
    background: #f8fafc;
    padding: 4rem 1rem;
}

.faq-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    font-family: inherit;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-question.active svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    color: #475569;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 3rem 1rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-col p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-col a {
    color: #cbd5e1;
}

.footer-col a:hover {
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.disclaimer {
    color: #94a3b8;
    font-size: 0.8rem !important;
}

/* Exit Modal */
.exit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.exit-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}

.modal-close:hover {
    color: #1e293b;
}

.modal-content h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #64748b;
    margin-bottom: 2rem;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    width: 100%;
    font-family: inherit;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.modal-content .btn-primary {
    width: 100%;
}

/* Sticky CTAs */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
}

.sticky-cta.active {
    display: block;
}

.sticky-cta .btn-primary {
    width: 100%;
    display: block;
    text-align: center;
}

.sticky-phone {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.2s;
}

.sticky-phone:hover {
    background: #229954;
    transform: scale(1.1);
    text-decoration: none;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading State */
.btn-primary.loading,
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after,
.btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text .subtitle {
        font-size: 18px;
    }

    .hero-benefits li {
        font-size: 15px;
    }

    .form-card-preview {
        max-width: 100%;
    }

    .complex-cases {
        padding: 60px 0;
    }

    .complex-cases h2 {
        font-size: 28px;
    }

    .complex-cases .intro {
        font-size: 16px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .case-item {
        padding: 15px;
    }

    /* Why Choose Us - Responsive */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-choose-us h2,
    .team-section h2,
    .journey-section h2,
    .stories-section h2 {
        font-size: 2rem;
    }

    /* Team - Responsive */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Journey Timeline - Responsive */
    .journey-timeline::before {
        left: 30px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .journey-step {
        gap: 1.5rem;
    }

    /* Stories - Responsive */
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .urgency-bar {
        font-size: 12px;
        padding: 10px 0;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text .subtitle {
        font-size: 16px;
    }

    .hero-benefits li {
        font-size: 14px;
    }

    .live-activity {
        font-size: 12px;
    }

    .trust-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .trust-item span {
        font-size: 13px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem 1rem;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
    }
    
    .benefit-card h3 {
        font-size: 1.1rem;
    }

    .complex-cases h2 {
        font-size: 24px;
    }

    .complex-cases .intro {
        font-size: 15px;
    }

    .case-item {
        font-size: 14px;
    }

    .cta-secondary {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
    }

    .testimonial-card {
        flex: 0 0 280px;
    }

    .calculator-summary {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .btn-next,
    .btn-submit {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

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

    .radio-group {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .sticky-phone {
        width: 48px;
        height: 48px;
    }

    /* New Sections - Mobile */
    .why-choose-us h2,
    .team-section h2,
    .journey-section h2,
    .stories-section h2 {
        font-size: 1.75rem;
    }

    .section-intro {
        font-size: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .step-content h3 {
        font-size: 1.25rem;
    }

    .journey-timeline::before {
        left: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .journey-step {
        gap: 1rem;
    }

    .story-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .monthly-payment {
        font-size: 3rem;
    }

    .logos-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Cache Control - prevent stale content */
.no-cache {
    cache-control: no-cache, no-store, must-revalidate;
}

/* Booking Section */
.booking-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.booking-info {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.booking-info svg {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.booking-info strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.booking-info p {
    margin: 0.25rem 0;
    color: #475569;
    font-size: 0.95rem;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.booking-col label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.booking-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    color: #1e293b;
    background: white;
    transition: border-color 0.2s;
}

.booking-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.booking-input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

.booking-confirmation {
    display: flex;
    gap: 1rem;
    background: #ecfdf5;
    border: 1px solid #10b981;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.booking-confirmation svg {
    flex-shrink: 0;
    color: #10b981;
}

.booking-confirmation strong {
    color: #065f46;
    display: block;
    margin-bottom: 0.5rem;
}

.booking-confirmation p {
    margin: 0;
    color: #047857;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================
   Cookie Consent Banner & Modal (ICO 2025 Compliant)
   ======================================================================== */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    animation: slideUp 0.4s ease-out;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.cookie-banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.cookie-banner-text p {
    margin: 0 0 1rem 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* Equal prominence for Accept/Reject - ICO requirement */
.cookie-btn-accept {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.cookie-btn-accept:hover {
    background: #229954;
    border-color: #229954;
}

.cookie-btn-reject {
    background: #64748b;
    color: white;
    border-color: #64748b;
}

.cookie-btn-reject:hover {
    background: #475569;
    border-color: #475569;
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.cookie-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Mortgage Comparison Calculator */
.comparison-controls {
    background: #f0f7ff;
    border: 1px solid #d0e2f2;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

.control-group label {
    display: block;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.control-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d0e2f2;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

.control-input:focus {
    outline: none;
    border-color: #1e5a8e;
    box-shadow: 0 0 0 3px rgba(30, 90, 142, 0.1);
}

.comparison-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.filters-sidebar {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filters-sidebar h3 {
    color: #1e3a8a;
    font-size: 18px;
    margin: 0 0 1.5rem 0;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 0.75rem 0;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 14px;
    color: #1e293b;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1e5a8e;
}

.btn-clear-filters {
    width: 100%;
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-filters:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.products-section {
    min-height: 400px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.products-count {
    font-size: 16px;
    color: #475569;
}

.products-count span {
    font-weight: 600;
    color: #1e3a8a;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-sort label {
    font-size: 14px;
    color: #64748b;
}

.sort-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #d0e2f2;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.products-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #1e5a8e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

.products-grid {
    display: grid;
    gap: 1rem;
}

.product-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.product-card:hover {
    border-color: #1e5a8e;
    box-shadow: 0 4px 12px rgba(30, 90, 142, 0.1);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.product-lender {
    flex: 1;
}

.product-lender h4 {
    color: #1e3a8a;
    font-size: 18px;
    margin: 0 0 0.25rem 0;
}

.product-name {
    color: #64748b;
    font-size: 14px;
}

.product-rate {
    text-align: right;
}

.rate-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e5a8e;
    line-height: 1;
}

.rate-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 0.25rem;
}

.product-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1rem;
}

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

.detail-value {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.detail-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 0.25rem;
}

.product-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 14px;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: #f0f7ff;
    color: #1e5a8e;
    border-radius: 4px;
    font-weight: 500;
}

.product-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-product-enquire {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-product-enquire:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.2);
}

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

.btn-product-enquire svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.benefit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.benefit-badge svg {
    width: 14px;
    height: 14px;
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.rate-updates-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.rate-updates-section h3 {
    color: #1e3a8a;
    margin: 0 0 0.5rem 0;
}

.rate-updates-section .form-hint {
    margin-bottom: 1.5rem;
}

@media (max-width: 968px) {
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .product-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Processing spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.processing-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
    font-size: 1.2em;
    margin-left: 0.5rem;
}

.upload-warning {
    color: #b45309;
    padding: 0.75rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.cookie-modal-close:hover {
    color: #64748b;
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-modal-body > p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cookie-category {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-category h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cookie-category p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-always-on {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Toggle Switch */
.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-toggle-slider {
    position: relative;
    width: 48px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 20px;
    transition: background 0.3s;
}

.cookie-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider {
    background: var(--accent-color);
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider::after {
    transform: translateX(22px);
}

.cookie-toggle-label {
    font-weight: 600;
    color: var(--primary-color);
}

.cookie-info {
    background: #f1f5f9;
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.cookie-info h4 {
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.cookie-info ul {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.cookie-info li {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.cookie-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.cookie-info a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 1rem;
    }

    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }

    .cookie-banner-text p {
        font-size: 0.9rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-modal-content {
        max-height: 95vh;
    }

    .cookie-modal-header h3 {
        font-size: 1.25rem;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 2FA Verification Styling */
.verification-section {
    max-width: 500px;
    margin: 2rem auto;
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.5rem;
    background: #f0f9ff;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.verification-status.verified {
    background: #f0fdf4;
    border-color: var(--accent-color);
}

.verification-status.error {
    background: #fef2f2;
    border-color: #ef4444;
}

.status-icon {
    color: #3b82f6;
    flex-shrink: 0;
}

.verification-status.verified .status-icon {
    color: var(--accent-color);
}

.verification-status.error .status-icon {
    color: #ef4444;
}

.verification-status span {
    font-weight: 600;
    color: var(--dark-text);
}

.code-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.verification-code-input {
    flex: 1;
    padding: 1rem;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.5rem;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
}

.verification-code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 90, 142, 0.1);
}

.btn-verify {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-verify:hover {
    background: #229954;
    transform: translateY(-1px);
}

.btn-verify:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.verification-helper {
    text-align: center;
    color: #64748b;
}

.verification-helper p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0;
}

.btn-link:hover {
    color: var(--secondary-color);
}

.btn-link:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.timer-text {
    font-weight: 600;
    color: var(--dark-text);
}

.timer-text span {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .code-input-group {
        flex-direction: column;
    }
    
    .btn-verify {
        width: 100%;
    }
    
    .verification-code-input {
        font-size: 1.25rem;
        letter-spacing: 0.3rem;
    }
}

/* Document Upload Styles */
.document-upload-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.document-upload-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.document-upload-group {
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.document-upload-label {
    display: block;
    margin-bottom: 12px;
}

.document-upload-label strong {
    display: block;
    color: var(--dark-text);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.document-upload-label small {
    color: #64748b;
    font-size: 0.9rem;
}

.document-input {
    width: 100%;
    padding: 12px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.document-input:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.document-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.document-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    margin-bottom: 12px;
}

.upload-status {
    margin-top: 12px;
    min-height: 24px;
}

.upload-progress {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.upload-success {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.upload-error {
    color: var(--urgent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.extracted-data-display {
    background: #eff6ff;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 12px;
}

.extracted-data-display p {
    margin: 6px 0;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.extracted-data-display .warning {
    color: var(--urgent-color);
    font-weight: 600;
    margin-top: 12px;
}

/* Employment Details Styles */
.employment-details-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.employment-details-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.extracted-data-summary {
    background: #eff6ff;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 24px;
}

.extracted-data-summary h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1rem;
}

.extracted-data-summary p {
    margin: 8px 0;
    color: var(--dark-text);
}

.salary-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

/* Postcode Lookup Styles */
.postcode-lookup-wrapper {
    margin-bottom: 24px;
}

.postcode-lookup-controls {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.postcode-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.postcode-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.find-address-btn {
    padding: 14px 24px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.1s ease;
}

.find-address-btn:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

.find-address-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.address-select-wrapper {
    margin-top: 16px;
}

.address-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: #eff6ff;
    font-size: 1rem;
    cursor: pointer;
}

/* Currency Input Wrapper */
.currency-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    color: #64748b;
    font-weight: 600;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.currency-input {
    width: 100%;
    padding: 14px 16px 14px 36px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    background: white;
    transition: border-color 0.3s ease;
}

.currency-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Enhanced Date Picker Styling */
input[type="date"] {
    padding: 14px 16px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    background: #f8fafc;
    min-height: 50px;
    transition: border-color 0.3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    font-size: 1.2rem;
    cursor: pointer;
}

input[type="date"]:focus,
#currentAddress:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

/* Enhanced Address Input */
#currentAddress {
    padding: 14px 16px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    background: #f8fafc;
    transition: border-color 0.3s ease, background 0.3s ease;
}

/* Salary Input Cards */
.salary-breakdown .form-group {
    background: #f8fafc;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
}

.salary-breakdown .form-group:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.1);
}

.salary-breakdown .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Address Confirmation Styles */
.address-confirmation {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .salary-breakdown {
        grid-template-columns: 1fr;
    }
    
    .document-upload-section,
    .employment-details-section {
        padding: 16px;
    }
}

/* ========================================================================
   MOBILE-FIRST ENHANCEMENTS
   Touch-optimized UI for mobile devices
   ======================================================================== */

/* Mobile Touch Target Enhancements - Minimum 48px for thumbs */
.is-mobile .checkbox-label {
    padding: 0.75rem 0;
    min-height: 48px;
    align-items: center;
}

.is-mobile .checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin: 0;
}

/* All buttons get minimum 48px touch target */
.is-mobile button,
.is-mobile .btn-back,
.is-mobile .btn-next,
.is-mobile .btn-submit,
.is-mobile .btn-primary,
.is-mobile .btn-secondary,
.is-mobile .btn-edit,
.is-mobile .btn-verify,
.is-mobile .find-address-btn {
    min-height: 48px;
    padding: 0.875rem 1.5rem;
}

.is-mobile .radio-label {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.25rem;
}

/* All links get adequate touch target */
.is-mobile a:not(.btn-next):not(.btn-back):not(.btn-submit) {
    padding: 0.75rem 0;
    display: inline-block;
    min-height: 48px;
    line-height: 1.5;
}

.is-mobile .cookie-btn {
    min-height: 48px;
    padding: 0.875rem 1.5rem;
}

.is-mobile .header-phone {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    font-size: 1rem;
}

.is-mobile .sticky-phone {
    width: 56px;
    height: 56px;
}

/* Prevent iOS Auto-Zoom - All inputs and interactive elements need 16px+ font size */
.is-mobile input,
.is-mobile select,
.is-mobile textarea,
.is-mobile .form-input,
.is-mobile .form-select,
.is-mobile .calc-input,
.is-mobile .review-input,
.is-mobile .booking-input,
.is-mobile .control-input,
.is-mobile .verification-code-input,
.is-mobile .document-input,
.is-mobile .document-select {
    font-size: 16px !important;
}

/* Labels and hints near inputs should also be readable */
.is-mobile .form-hint,
.is-mobile .form-subtitle,
.is-mobile .field-hint,
.is-mobile label {
    font-size: 16px;
}

/* Ensure select options are readable */
.is-mobile option {
    font-size: 16px;
}

/* Bottom Sheet Style Modals for Mobile */
.is-mobile .modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 1.5rem 1.5rem 0 0;
    animation: modalSlideUp 0.3s ease;
    overflow-y: auto;
    margin: 0;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.is-mobile .exit-modal,
.is-mobile .modal-overlay {
    align-items: flex-end;
    padding: 0;
}

/* Add visual handle for bottom sheet */
.is-mobile .modal-content::before {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
    margin: 1rem auto 1.5rem;
}

/* Mobile Viewport and Keyboard Handling */
.is-mobile {
    /* Use custom property for dynamic viewport height */
    --vh: 1vh;
}

/* Replace vh units with custom property on mobile to handle keyboard */
.is-mobile .form-container {
    min-height: calc(var(--vh, 1vh) * 70);
}

.is-mobile .cookie-modal-content {
    max-height: calc(var(--vh, 1vh) * 95);
}

/* Prevent fixed elements from overlapping when keyboard is open */
.is-mobile.keyboard-open .sticky-phone,
.is-mobile.keyboard-open .sticky-cta {
    display: none;
}

.is-mobile.keyboard-open .header {
    position: absolute;
}

/* Enhanced Error Messages for Mobile */
.is-mobile .error-message {
    font-size: 16px;
    font-weight: 600;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    border-radius: 0.5rem;
}

.is-mobile .error-message.active {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.is-mobile .error-message.active::before {
    content: '⚠';
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.is-mobile .form-input.error,
.is-mobile .form-select.error {
    border-color: #dc2626;
    border-width: 3px;
    animation: shakeError 0.3s ease;
}

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