/*
Theme Name: Locksley Claims
Theme URI: https://locksly.co.uk
Author: Locksley Claims
Author URI: https://locksly.co.uk
Description: A premium, trust-focused WordPress theme for PCP car finance claims. Navy blue colour scheme with modern, clean design.
Version: 3.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: locksley-claims
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1a2b5e;
    --primary-dark: #111d42;
    --primary-deeper: #0a1230;
    --secondary: #2d5faa;
    --secondary-light: #3a7bd5;
    --accent: #e8a838;
    --accent-light: #f4c76b;
    --accent-glow: rgba(232, 168, 56, 0.25);
    --white: #ffffff;
    --off-white: #f8f9fd;
    --light-grey: #eef1f7;
    --mid-grey: #d0d5e0;
    --text-dark: #1c2340;
    --text-body: #4a5068;
    --text-light: #6b7280;
    --success: #10b981;
    --success-light: #d1fae5;
    --error: #ef4444;
    --shadow-sm: 0 1px 3px rgba(26, 43, 94, 0.06), 0 1px 2px rgba(26, 43, 94, 0.04);
    --shadow-md: 0 4px 16px rgba(26, 43, 94, 0.08), 0 2px 4px rgba(26, 43, 94, 0.04);
    --shadow-lg: 0 10px 40px rgba(26, 43, 94, 0.1), 0 4px 12px rgba(26, 43, 94, 0.05);
    --shadow-xl: 0 20px 60px rgba(26, 43, 94, 0.12), 0 8px 20px rgba(26, 43, 94, 0.06);
    --shadow-accent: 0 4px 20px rgba(232, 168, 56, 0.3);
    --shadow-accent-lg: 0 8px 32px rgba(232, 168, 56, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-stack);
    color: var(--text-body);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--secondary-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.75rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 95, 170, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 95, 170, 0.45);
    color: var(--white);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #f0b840);
    color: var(--primary-dark);
    box-shadow: var(--shadow-accent);
    font-weight: 700;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent-lg);
    color: var(--primary-dark);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-lg {
    padding: 20px 48px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.875rem;
}

/* Pulse animation for primary CTA */
@keyframes ctaPulse {
    0%, 100% { box-shadow: var(--shadow-accent); }
    50% { box-shadow: 0 4px 30px rgba(232, 168, 56, 0.5), 0 0 60px rgba(232, 168, 56, 0.15); }
}

.btn-accent.btn-lg {
    animation: ctaPulse 3s ease-in-out infinite;
}

.btn-accent.btn-lg:hover {
    animation: none;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 43, 94, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(26, 43, 94, 0.08);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(26, 43, 94, 0.2);
    transition: transform var(--transition);
}

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

.site-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.site-logo .logo-text span {
    color: var(--secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.05rem;
}

.header-phone svg {
    width: 18px;
    height: 18px;
    fill: var(--secondary);
}

.header-cta {
    display: none;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.mobile-toggle:hover {
    background: var(--off-white);
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--light-grey);
}

.main-nav.active {
    display: block;
}

.main-nav ul {
    list-style: none;
    padding: 8px 20px;
}

.main-nav ul li a {
    display: block;
    padding: 14px 0;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--light-grey);
    transition: color var(--transition);
    font-size: 1.05rem;
}

.main-nav ul li:last-child a {
    border-bottom: none;
}

.main-nav ul li a:hover {
    color: var(--secondary);
}

/* Trust bar */
.trust-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 9px 0;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
}

.trust-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    animation: trustBarShimmer 8s ease-in-out infinite;
}

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

.trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
    position: relative;
}

.trust-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.trust-bar-item svg {
    width: 13px;
    height: 13px;
    fill: var(--accent);
    flex-shrink: 0;
}

.trust-bar-divider {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(160deg, #1a2b5e 0%, #142252 30%, #0f1a3e 60%, #0a1230 100%);
    color: var(--white);
    padding: 60px 0 70px;
    position: relative;
    overflow: hidden;
}

/* Animated gradient orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 95, 170, 0.25) 0%, transparent 65%);
    border-radius: 50%;
    animation: heroOrb1 12s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 168, 56, 0.1) 0%, transparent 60%);
    border-radius: 50%;
    animation: heroOrb2 15s ease-in-out infinite;
}

@keyframes heroOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 20px) scale(1.05); }
    66% { transform: translate(20px, -15px) scale(0.95); }
}

@keyframes heroOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -20px) scale(1.08); }
}

/* Grid pattern overlay */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    letter-spacing: 0.02em;
    animation: fadeInDown 0.6s ease-out;
}

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

.hero-badge svg {
    width: 15px;
    height: 15px;
    fill: var(--accent);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-subtitle strong {
    color: var(--white);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-stat {
    text-align: center;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 130px;
    transition: all var(--transition);
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-stat .stat-number {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

/* ============================================
   SOCIAL PROOF BAR
   ============================================ */
.social-proof-bar {
    padding: 28px 0;
    background: var(--white);
    border-bottom: 1px solid var(--light-grey);
}

.social-proof-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}

.social-proof-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-body);
    font-weight: 500;
}

.social-proof-item .proof-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.social-proof-item .proof-icon svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
}

.proof-icon.green {
    background: var(--success-light);
}
.proof-icon.green svg {
    fill: var(--success);
}

.proof-icon.blue {
    background: rgba(45, 95, 170, 0.1);
}
.proof-icon.blue svg {
    fill: var(--secondary);
}

.proof-icon.gold {
    background: rgba(232, 168, 56, 0.12);
}
.proof-icon.gold svg {
    fill: var(--accent);
}

.social-proof-item strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: 90px 0;
    background: var(--off-white);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--secondary);
    margin-bottom: 14px;
    padding: 6px 16px;
    background: rgba(45, 95, 170, 0.06);
    border-radius: 50px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 28px 36px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26, 43, 94, 0.05);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    opacity: 0;
    transition: opacity var(--transition);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.step-card:hover::before {
    opacity: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 800;
    border-radius: 14px;
    margin-bottom: 22px;
    box-shadow: 0 4px 12px rgba(26, 43, 94, 0.2);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(45, 95, 170, 0.08), rgba(26, 43, 94, 0.04));
    border-radius: var(--radius-md);
    margin: 0 auto 18px;
    transition: transform var(--transition);
}

.step-card:hover .step-icon {
    transform: scale(1.08);
}

.step-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--secondary);
}

.step-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 0;
    line-height: 1.65;
}

/* Step connectors on desktop */
@media (min-width: 640px) {
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 62px;
        right: -14px;
        width: 28px;
        height: 2px;
        background: linear-gradient(90deg, var(--mid-grey), transparent);
        z-index: 2;
    }
}

/* ============================================
   TRUST SIGNALS
   ============================================ */
.trust-signals {
    padding: 90px 0;
    background: var(--white);
    position: relative;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.trust-card {
    text-align: center;
    padding: 36px 24px 32px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--light-grey);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(45, 95, 170, 0.15), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
}

.trust-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.trust-card:hover::before {
    opacity: 1;
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(45, 95, 170, 0.1), rgba(26, 43, 94, 0.04));
    border-radius: 18px;
    margin: 0 auto 18px;
    transition: all var(--transition);
}

.trust-card:hover .trust-icon {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    box-shadow: 0 4px 16px rgba(45, 95, 170, 0.3);
    transform: scale(1.05);
}

.trust-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--secondary);
    transition: fill var(--transition);
}

.trust-card:hover .trust-icon svg {
    fill: var(--white);
}

.trust-card h4 {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 1.1rem;
}

.trust-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.65;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 90px 0;
    background: var(--off-white);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    border: 1px solid rgba(26, 43, 94, 0.06);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: rgba(45, 95, 170, 0.12);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: rgba(45, 95, 170, 0.15);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    font-family: var(--font-stack);
    transition: color var(--transition);
    gap: 16px;
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-question .faq-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.faq-question .faq-toggle svg {
    width: 14px;
    height: 14px;
    fill: var(--secondary);
    transition: transform var(--transition);
}

.faq-item.active .faq-question {
    color: var(--secondary);
}

.faq-item.active .faq-question .faq-toggle {
    background: var(--secondary);
    border-radius: 10px;
}

.faq-item.active .faq-question .faq-toggle svg {
    fill: var(--white);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 24px 22px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-deeper) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(45, 95, 170, 0.15) 0%, transparent 60%);
    border-radius: 50%;
}

.final-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
}

.final-cta .container {
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.final-cta .cta-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.final-cta .cta-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.final-cta .cta-trust-item svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
    opacity: 0.8;
}

/* ============================================
   APPLY PAGE / FORM
   ============================================ */
.apply-page {
    padding: 48px 0 80px;
    background: var(--off-white);
    min-height: 60vh;
}

.apply-page .container {
    max-width: 720px;
}

.apply-header {
    text-align: center;
    margin-bottom: 32px;
}

.apply-header h1 {
    margin-bottom: 10px;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.apply-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

.apply-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 12px;
    font-weight: 500;
}

.apply-security-note svg {
    width: 14px;
    height: 14px;
    fill: var(--success);
}

.form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 36px 28px;
    border: 1px solid rgba(26, 43, 94, 0.04);
    position: relative;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
    border-radius: 0 0 4px 4px;
}

.form-trust-signals {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--light-grey);
}

.form-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-trust-item svg {
    width: 16px;
    height: 16px;
    fill: var(--success);
    flex-shrink: 0;
}

/* ============================================
   GRAVITY FORMS OVERRIDES
   ============================================ */

/* Inline field layout - override GF foundation grid */
.gform-theme--foundation .gfield.gf-full {
    grid-column: 1 / -1 !important;
}

.gform-theme--foundation .gfield.gf-left-half {
    grid-column: 1 / 7 !important;
}

.gform-theme--foundation .gfield.gf-right-half {
    grid-column: 7 / -1 !important;
}

/* Make all inputs full-width within their field */
.gform_wrapper.gravity-theme input[type="text"],
.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="tel"],
.gform_wrapper.gravity-theme input[type="number"],
.gform_wrapper.gravity-theme input[type="url"],
.gform_wrapper.gravity-theme select,
.gform_wrapper.gravity-theme textarea {
    width: 100% !important;
    max-width: 100% !important;
}

/* Mobile: stack all fields */
@media (max-width: 640px) {
    .gform_wrapper.gravity-theme .gfield.gf-left-half,
    .gform_wrapper.gravity-theme .gfield.gf-right-half {
        grid-column: 1 / -1 !important;
    }
}

.gform_wrapper.gravity-theme {
    font-family: var(--font-stack) !important;
}

.gform_wrapper.gravity-theme .gform_title {
    font-family: var(--font-heading) !important;
    color: var(--primary) !important;
}

.gform_wrapper.gravity-theme .gfield_label {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    font-size: 0.92rem !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.01em !important;
}

.gform_wrapper.gravity-theme input[type="text"],
.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="tel"],
.gform_wrapper.gravity-theme input[type="number"],
.gform_wrapper.gravity-theme input[type="url"],
.gform_wrapper.gravity-theme select,
.gform_wrapper.gravity-theme textarea {
    border: 2px solid var(--light-grey) !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 16px !important;
    font-size: 1rem !important;
    font-family: var(--font-stack) !important;
    transition: all var(--transition) !important;
    background: var(--white) !important;
    color: var(--text-dark) !important;
}

.gform_wrapper.gravity-theme input:focus,
.gform_wrapper.gravity-theme select:focus,
.gform_wrapper.gravity-theme textarea:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 4px rgba(45, 95, 170, 0.1) !important;
    outline: none !important;
}

.gform_wrapper.gravity-theme .gform_button,
.gform_wrapper.gravity-theme .gform_next_button,
.gform_wrapper.gravity-theme input[type="submit"] {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light)) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 16px 40px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
    box-shadow: 0 4px 15px rgba(45, 95, 170, 0.3) !important;
    font-family: var(--font-stack) !important;
    letter-spacing: -0.01em !important;
}

.gform_wrapper.gravity-theme .gform_button:hover,
.gform_wrapper.gravity-theme .gform_next_button:hover,
.gform_wrapper.gravity-theme input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(45, 95, 170, 0.4) !important;
}

.gform_wrapper.gravity-theme .gform_previous_button {
    background: transparent !important;
    color: var(--text-light) !important;
    border: 2px solid var(--mid-grey) !important;
    border-radius: 50px !important;
    padding: 14px 30px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
    font-family: var(--font-stack) !important;
}

.gform_wrapper.gravity-theme .gform_previous_button:hover {
    border-color: var(--secondary) !important;
    color: var(--secondary) !important;
}

/* Multi-step progress bar */
.gf_progressbar_wrapper {
    margin-bottom: 28px !important;
}

.gf_progressbar_title {
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    font-size: 0.92rem !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.01em !important;
    text-align: center !important;
}

.gf_progressbar {
    background: var(--light-grey) !important;
    border-radius: 50px !important;
    height: 8px !important;
    overflow: visible !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    position: relative !important;
}

.gf_progressbar_percentage {
    background: linear-gradient(90deg, var(--secondary), var(--accent)) !important;
    border-radius: 50px !important;
    height: 8px !important;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0 !important;
    line-height: 8px !important;
    position: relative !important;
    box-shadow: 0 0 12px rgba(232, 168, 56, 0.3) !important;
}

.gf_progressbar_percentage::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 14px;
    height: 14px;
    background: var(--white);
    border: 3px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(232, 168, 56, 0.3);
}

.gf_progressbar_percentage span {
    display: none !important;
}

/* Custom step indicators */
.gf_page_steps {
    display: flex !important;
    justify-content: center !important;
    gap: 4px !important;
    margin-bottom: 28px !important;
    list-style: none !important;
    padding: 0 !important;
}

.gf_step {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    color: var(--text-light) !important;
    font-weight: 500 !important;
    border-radius: 50px !important;
    transition: all var(--transition) !important;
}

.gf_step_active {
    color: var(--secondary) !important;
    font-weight: 700 !important;
    background: rgba(45, 95, 170, 0.06) !important;
}

.gf_step_completed {
    color: var(--success) !important;
}

.gf_step span.gf_step_number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: var(--light-grey) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    transition: all var(--transition) !important;
}

.gf_step_active span.gf_step_number {
    background: var(--secondary) !important;
    color: var(--white) !important;
    box-shadow: 0 2px 8px rgba(45, 95, 170, 0.3) !important;
}

.gf_step_completed span.gf_step_number {
    background: var(--success) !important;
    color: var(--white) !important;
}

/* Gravity Forms validation */
.gform_wrapper.gravity-theme .gfield_error input,
.gform_wrapper.gravity-theme .gfield_error select,
.gform_wrapper.gravity-theme .gfield_error textarea {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.gform_wrapper.gravity-theme .validation_message {
    color: var(--error) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
}

/* Signature pad */
.gform_wrapper .gfield_signature_container {
    border: 2px dashed var(--mid-grey) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    background: var(--off-white) !important;
    width: 100% !important;
    max-width: 100% !important;
    transition: border-color var(--transition) !important;
}

.gform_wrapper .gfield_signature_container:hover {
    border-color: var(--secondary) !important;
}

.gform_wrapper .gfield_signature_container canvas {
    cursor: crosshair;
    display: block;
}

/* Radio & Checkbox styling */
.gform_wrapper.gravity-theme .gfield_radio label,
.gform_wrapper.gravity-theme .gfield_checkbox label {
    font-size: 0.95rem !important;
    color: var(--text-body) !important;
    cursor: pointer !important;
}

.gform_wrapper.gravity-theme .gchoice {
    padding: 10px 0 !important;
}

/* ============================================
   ACCENT FORM BUTTONS - CONVERSION OVERRIDE
   ============================================ */

/* Make form Next/Submit buttons accent colored for stronger conversion */
.gform_wrapper .gform_next_button,
.gform_wrapper input[type="submit"],
.gform_wrapper .gform_button,
.gform_wrapper .gform-theme-button,
.gform_wrapper.gform-theme .gform_next_button,
.gform_wrapper.gform-theme--orbital .gform_next_button,
.gform_wrapper.gform-theme input[type="submit"],
.gform_wrapper.gform-theme .gform_button {
    background: linear-gradient(135deg, var(--accent), #f0b840) !important;
    color: var(--primary-dark) !important;
    box-shadow: var(--shadow-accent) !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    padding: 16px 44px !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
    letter-spacing: -0.01em !important;
    min-height: 52px !important;
}

.gform_wrapper .gform_next_button:hover,
.gform_wrapper input[type="submit"]:hover,
.gform_wrapper .gform_button:hover,
.gform_wrapper .gform-theme-button:hover {
    box-shadow: var(--shadow-accent-lg) !important;
    transform: translateY(-2px) !important;
}

/* Keep Previous button styled differently */
.gform_wrapper .gform_previous_button,
.gform_wrapper.gform-theme .gform_previous_button {
    background: transparent !important;
    color: var(--text-light) !important;
    border: 2px solid var(--mid-grey) !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 14px 28px !important;
    min-height: 52px !important;
}

.gform_wrapper .gform_previous_button:hover,
.gform_wrapper.gform-theme .gform_previous_button:hover {
    border-color: var(--secondary) !important;
    color: var(--secondary) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Find Address button should stay blue to differentiate from primary action */
.gform_wrapper .address-lookup-btn,
.gform_wrapper button[type="button"]:not(.gform_next_button):not(.gform_previous_button):not(.gform_button) {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light)) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(45, 95, 170, 0.3) !important;
    border-radius: var(--radius-md) !important;
    min-height: 48px !important;
}

/* Page footer - better button layout */
.gform_wrapper .gform_page_footer {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    padding-top: 24px !important;
    flex-wrap: wrap !important;
}

/* ============================================
   THANK YOU PAGE
   ============================================ */
.thank-you-page,
.sorry-page {
    padding: 80px 0;
    text-align: center;
    min-height: 55vh;
    display: flex;
    align-items: center;
}

.thank-you-icon,
.sorry-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.thank-you-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.thank-you-icon svg {
    width: 44px;
    height: 44px;
    fill: var(--success);
}

.sorry-icon {
    background: linear-gradient(135deg, rgba(45, 95, 170, 0.1), rgba(26, 43, 94, 0.05));
}

.sorry-icon svg {
    width: 44px;
    height: 44px;
    fill: var(--secondary);
}

.next-steps {
    max-width: 560px;
    margin: 32px auto 0;
    text-align: left;
}

.next-steps-list {
    list-style: none;
    padding: 0;
}

.next-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--light-grey);
}

.next-steps-list li:last-child {
    border-bottom: none;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: var(--off-white);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--secondary);
    border: 2px solid var(--light-grey);
}

/* ============================================
   PRIVACY / LEGAL PAGES
   ============================================ */
.legal-page {
    padding: 60px 0 80px;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    margin-bottom: 8px;
}

.legal-page .last-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.35rem;
    margin-top: 40px;
    margin-bottom: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--light-grey);
}

.legal-page h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-page p,
.legal-page li {
    color: var(--text-body);
    line-height: 1.8;
}

.legal-page ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-page li {
    margin-bottom: 6px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-deeper) 100%);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 0;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 95, 170, 0.3), transparent);
}

.footer-main {
    padding: 56px 0 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

.footer-brand {
    max-width: 400px;
    margin: 0 auto;
}

.footer-brand .footer-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.footer-brand .footer-logo span {
    color: var(--secondary-light);
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.footer-trust-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition);
}

.footer-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.footer-badge svg {
    fill: var(--accent);
    opacity: 0.85;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-links h4.mt-footer-heading {
    margin-top: 24px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    transition: all var(--transition);
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.footer-compliance {
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.compliance-text {
    font-size: 0.76rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.4);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.compliance-text p {
    margin-bottom: 10px;
}

.compliance-text p:last-child {
    margin-bottom: 0;
}

.compliance-text a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    text-underline-offset: 2px;
    transition: all var(--transition);
}

.compliance-text a:hover {
    color: var(--white);
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 6px;
}

.footer-bottom-links a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    transition: color var(--transition);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (min-width: 640px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-bar-inner {
        gap: 16px;
    }

    .hero {
        padding: 80px 0 90px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat {
        flex: 1;
        min-width: auto;
    }

    .footer-main {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 48px;
        text-align: left;
    }

    .footer-brand {
        margin: 0;
    }

    .footer-trust-badges {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        gap: 24px;
    }

    .form-wrapper {
        padding: 40px 36px;
    }

    .social-proof-inner {
        gap: 48px;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */
@media (min-width: 960px) {
    .container {
        padding: 0 40px;
    }

    .header-phone {
        display: flex;
    }

    .header-cta {
        display: inline-flex;
    }

    .mobile-toggle {
        display: none;
    }

    .main-nav {
        display: flex !important;
        position: static;
        background: transparent;
        box-shadow: none;
        border-top: none;
    }

    .main-nav ul {
        display: flex;
        gap: 2px;
        padding: 0;
    }

    .main-nav ul li a {
        padding: 8px 16px;
        border-bottom: none;
        border-radius: var(--radius-sm);
        font-size: 0.92rem;
    }

    .main-nav ul li a:hover {
        background: var(--off-white);
    }

    .hero {
        padding: 100px 0 110px;
    }

    .how-it-works,
    .trust-signals,
    .faq-section {
        padding: 110px 0;
    }

    .final-cta {
        padding: 110px 0;
    }

    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .form-wrapper {
        padding: 48px;
    }

    .footer-main {
        padding: 64px 0 48px;
        gap: 64px;
    }

    .social-proof-inner {
        gap: 56px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }

/* ============================================
   MOBILE-SPECIFIC (< 480px)
   ============================================ */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-stat {
        flex: 1;
        padding: 14px 12px;
        min-width: 0;
    }

    .hero-stat .stat-number {
        font-size: 1.45rem;
    }

    .hero-stat .stat-label {
        font-size: 0.72rem;
    }

    .form-wrapper {
        padding: 24px 18px;
        border-radius: var(--radius-lg);
    }

    .form-wrapper::before {
        left: 18px;
        right: 18px;
    }

    .apply-header h1 {
        font-size: 1.55rem;
    }

    .apply-page {
        padding: 36px 0 60px;
    }

    .social-proof-inner {
        gap: 16px;
    }

    .social-proof-item {
        font-size: 0.82rem;
    }

    .social-proof-item .proof-icon {
        width: 34px;
        height: 34px;
    }

    .social-proof-item .proof-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Improve form trust signals layout on smaller screens */
@media (max-width: 600px) {
    .form-trust-signals {
        gap: 10px 16px;
    }

    .form-trust-item {
        font-size: 0.78rem;
    }
}

/* ============================================
   FOCUS & ACCESSIBILITY
   ============================================ */
.btn:focus-visible,
.faq-question:focus-visible,
.gform_wrapper.gravity-theme .gform_next_button:focus-visible,
.gform_wrapper.gravity-theme .gform_previous_button:focus-visible,
.gform_wrapper.gravity-theme input[type="submit"]:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

.gform_wrapper.gravity-theme input:focus-visible,
.gform_wrapper.gravity-theme select:focus-visible,
.gform_wrapper.gravity-theme textarea:focus-visible {
    outline: none !important;
}

/* Smooth scroll offset for sticky header */
[id] {
    scroll-margin-top: 100px;
}

/* Selection color */
::selection {
    background: rgba(45, 95, 170, 0.15);
    color: var(--text-dark);
}

/* ============================================
   MOBILE STICKY CTA (Apply page)
   ============================================ */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 640px) {
    .mobile-sticky-cta {
        display: none; /* JS will show/hide this */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 12px 20px;
        box-shadow: 0 -4px 20px rgba(26, 43, 94, 0.1);
        z-index: 999;
        text-align: center;
        border-top: 1px solid var(--light-grey);
    }

    .mobile-sticky-cta.visible {
        display: block;
    }

    .mobile-sticky-cta .btn {
        width: 100%;
    }
}

/* ============================================
   EXIT-INTENT POPUP
   ============================================ */
.exit-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 48, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 20px;
}

.exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.exit-popup {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 440px;
    width: 100%;
    padding: 44px 36px 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 80px rgba(10, 18, 48, 0.35);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exit-popup-overlay.active .exit-popup {
    transform: scale(1) translateY(0);
}

.exit-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--off-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1;
}

.exit-popup-close:hover {
    background: var(--light-grey);
    color: var(--text-dark);
}

.exit-popup-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 168, 56, 0.12), rgba(232, 168, 56, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.exit-popup-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--accent);
}

.exit-popup h3 {
    font-size: 1.55rem;
    margin-bottom: 10px;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.exit-popup p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

.exit-popup .btn {
    width: 100%;
    max-width: 280px;
}

.exit-popup-trust {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.exit-popup-trust span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    color: var(--text-light);
    font-weight: 500;
}

.exit-popup-trust svg {
    width: 12px;
    height: 12px;
    fill: var(--success);
}

/* ============================================
   STICKY MOBILE CTA (Homepage)
   ============================================ */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 10px 16px;
    box-shadow: 0 -4px 24px rgba(26, 43, 94, 0.12);
    z-index: 990;
    text-align: center;
    border-top: 1px solid var(--light-grey);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-mobile-cta.visible {
    transform: translateY(0);
}

.sticky-mobile-cta .btn {
    width: 100%;
    padding: 14px 32px;
    font-size: 1rem;
}

/* Hide on apply page and on desktop */
.page-apply .sticky-mobile-cta {
    display: none !important;
}

@media (min-width: 769px) {
    .sticky-mobile-cta {
        display: none !important;
    }
}

/* ============================================
   FORM STEP REASSURANCE TEXT
   ============================================ */
.step-reassurance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 14px;
    padding-top: 12px;
    text-align: center;
    opacity: 0;
    animation: fadeInReassurance 0.4s ease 0.3s forwards;
}

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

.step-reassurance svg {
    width: 14px;
    height: 14px;
    fill: var(--success);
    flex-shrink: 0;
}

/* ============================================
   INLINE POSITIVE VALIDATION (Green Ticks)
   ============================================ */
.gfield.field-valid .ginput_container {
    position: relative;
}

.gfield .field-valid-tick {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    width: 22px;
    height: 22px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
    pointer-events: none;
}

.gfield .field-valid-tick.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.gfield .field-valid-tick svg {
    width: 12px;
    height: 12px;
    fill: var(--white);
}

/* Adjust input padding when tick is shown */
.gfield.field-valid input {
    padding-right: 44px !important;
}

/* ============================================
   LIVE ACTIVITY NOTIFICATIONS (Toast)
   ============================================ */
.activity-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(26, 43, 94, 0.15), 0 2px 8px rgba(26, 43, 94, 0.08);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 980;
    transform: translateX(-120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 340px;
    border: 1px solid rgba(26, 43, 94, 0.06);
}

.activity-toast.show {
    transform: translateX(0);
}

.activity-toast-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
}

.activity-toast-text {
    font-size: 0.82rem;
    color: var(--text-body);
    line-height: 1.45;
}

.activity-toast-text strong {
    color: var(--text-dark);
}

.activity-toast-time {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 2px;
}

.activity-toast-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
    opacity: 0;
}

.activity-toast:hover .activity-toast-close {
    opacity: 1;
}

.activity-toast-close:hover {
    background: var(--off-white);
}

@media (max-width: 480px) {
    .activity-toast {
        left: 12px;
        right: 12px;
        max-width: none;
        bottom: 80px;
    }
}

/* ============================================
   URGENCY BANNER
   ============================================ */
.urgency-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-deeper));
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(232, 168, 56, 0.2);
    overflow: hidden;
}

.urgency-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(232, 168, 56, 0.06) 50%,
        transparent 100%);
    animation: urgencyShimmer 4s ease-in-out infinite;
}

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

.urgency-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.urgency-banner-text {
    line-height: 1.4;
}

.urgency-banner-text .urgency-highlight {
    color: var(--accent);
    font-weight: 700;
}

.urgency-banner-dismiss {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 2;
}

.urgency-banner-dismiss:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 90px 0;
    background: var(--off-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26, 43, 94, 0.05);
    transition: all var(--transition);
    position: relative;
}

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

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
}

.testimonial-quote-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    opacity: 0.06;
    fill: var(--primary);
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--light-grey);
}

.testimonial-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.testimonial-author-info {
    font-size: 0.85rem;
}

.testimonial-author-name {
    font-weight: 700;
    color: var(--text-dark);
}

.testimonial-author-location {
    color: var(--text-light);
    font-size: 0.8rem;
}

@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 960px) {
    .testimonials-section {
        padding: 110px 0;
    }
}

/* ============================================
   CLICK-TO-CALL HEADER
   ============================================ */
.header-phone-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(45, 95, 170, 0.06);
    color: var(--secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.header-phone-mobile:hover {
    background: rgba(45, 95, 170, 0.12);
}

.header-phone-mobile svg {
    width: 18px;
    height: 18px;
    fill: var(--secondary);
}

@media (min-width: 960px) {
    .header-phone-mobile {
        display: none;
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    z-index: 985;
    text-decoration: none;
    transition: all var(--transition);
    animation: whatsappPulse 2s ease-in-out 1;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
    color: var(--white);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.whatsapp-btn .whatsapp-tooltip {
    position: absolute;
    right: 66px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    pointer-events: none;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
    25% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.55), 0 0 50px rgba(37, 211, 102, 0.15); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
    75% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.55), 0 0 50px rgba(37, 211, 102, 0.15); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
}

/* Adjust WhatsApp position when sticky CTA is visible on mobile */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 80px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-btn .whatsapp-tooltip {
        display: none;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .exit-popup-overlay,
    .exit-popup,
    .sticky-mobile-cta,
    .activity-toast,
    .whatsapp-btn,
    .step-reassurance,
    .field-valid-tick,
    .urgency-banner::before,
    .hero::before,
    .hero::after,
    .trust-bar::before {
        animation: none !important;
        transition: none !important;
    }

    .exit-popup-overlay.active .exit-popup {
        transform: none;
    }

    .activity-toast.show {
        transform: none;
    }

    .sticky-mobile-cta.visible {
        transform: none;
    }
}

/* ============================================
   TITLE FIELD - PILL RADIO BUTTONS
   ============================================ */
.gform-theme--foundation .gfield.locksly-title-field {
    grid-column: 1 / -1 !important;
}
#field_1_18 .ginput_container_radio {
    display: block !important;
    width: 100% !important;
    columns: unset !important;
}
#field_1_18 #input_1_18 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    columns: unset !important;
    column-count: unset !important;
}
#field_1_18 #input_1_18 .gchoice {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    width: auto !important;
    inline-size: auto !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
}
.locksly-title-field .gfield_radio .gchoice .gfield-choice-input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}
.locksly-title-field .gfield_radio .gchoice .gform-field-label--type-inline {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 14px 8px !important;
    border: 2px solid #1a2b5e !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1a2b5e !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    background: #fff !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
.locksly-title-field .gfield_radio .gchoice .gform-field-label--type-inline:hover {
    background: rgba(26, 43, 94, 0.05) !important;
}
.locksly-title-field .gfield_radio .gchoice .gfield-choice-input:checked + .gform-field-label--type-inline {
    background: #1a2b5e !important;
    color: #fff !important;
    border-color: #1a2b5e !important;
}
@media (max-width: 600px) {
    .locksly-title-field .ginput_container_radio .gfield_radio {
        gap: 8px !important;
    }
    .locksly-title-field .gfield_radio .gchoice {
        min-width: 60px !important;
    }
    .locksly-title-field .gfield_radio .gchoice .gform-field-label--type-inline {
        padding: 12px 6px !important;
        font-size: 0.9rem !important;
    }
}

/* ============================================
   OTP VERIFICATION FORM
   ============================================ */
.locksly-otp-verification {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2.5rem;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.locksly-otp-icon {
    margin-bottom: 1.25rem;
}

.locksly-otp-icon svg {
    color: var(--primary);
}

.locksly-otp-verification h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.locksly-otp-verification p {
    color: var(--text-body);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.locksly-otp-input-wrap {
    margin-bottom: 1.25rem;
}

#locksly-otp-code {
    width: 200px;
    padding: 0.875rem 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5em;
    border: 2px solid var(--mid-grey);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s;
}

#locksly-otp-code:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 43, 94, 0.1);
}

.locksly-otp-submit {
    width: 200px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.locksly-otp-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.locksly-otp-error {
    color: var(--error);
    font-weight: 500;
    margin-top: 1rem;
}

.locksly-otp-help {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1.25rem;
}
