/* ============================================
   CORNERPIN HOME VALUATION - PROFESSIONAL DESIGN
   ============================================ */

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

:root {
    /* Color Palette - Professional Real Estate */
    --primary: #1e3a5f;           /* Deep navy - trust, authority */
    --primary-light: #2d5077;     /* Lighter navy for hover states */
    --primary-dark: #0f1d30;      /* Darker navy for depth */

    --accent: #d97706;            /* Warm amber - premium, action */
    --accent-light: #f59e0b;      /* Lighter amber for highlights */
    --accent-dark: #b45309;       /* Darker amber for depth */

    --success: #059669;           /* Green for success states */
    --text-primary: #1f2937;      /* Almost black for body text */
    --text-secondary: #6b7280;    /* Gray for secondary text */
    --text-light: #9ca3af;        /* Light gray for muted text */

    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border: #e5e7eb;
    --border-light: #f3f4f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

header {
    background: #222;
    border-bottom: none;
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5077 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="%23ffffff" fill-opacity="0.03" width="50" height="50"/><rect fill="%23ffffff" fill-opacity="0.03" width="50" height="50" x="50" y="50"/></svg>');
    opacity: 0.5;
}

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

.hero-image {
    margin: 0 auto var(--space-xl);
    max-width: 320px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    color: var(--bg-white);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.subheadline {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    font-weight: 400;
}

/* ============================================
   STEP SECTIONS
   ============================================ */

.step {
    background: var(--bg-white);
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid var(--border-light);
}

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

.step-hidden {
    display: none;
}

.step-content {
    max-width: 600px;
    margin: 0 auto;
}

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

/* ============================================
   STEP PROGRESS BAR
   ============================================ */

.step-progress {
    background: var(--bg-white);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border-light);
}

.step-progress-track {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 360px;
    margin: 0 auto;
}

.step-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-gray);
    border: 2px solid var(--border);
    color: var(--text-light);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.step-dot.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-color: var(--accent);
    color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

.step-dot.completed {
    background: var(--success);
    border-color: var(--success);
    color: var(--bg-white);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 var(--space-xs);
    transition: background 0.4s ease;
}

.step-line.filled {
    background: var(--success);
}

h2 {
    font-size: 36px;
    margin-bottom: var(--space-md);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.step-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

input[type="email"],
input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text-primary);
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
    transform: translateY(-1px);
}

input::placeholder {
    color: var(--text-light);
}

button {
    width: 100%;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

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

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button:active {
    transform: translateY(0);
}

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

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.trust-badges span {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.trust-badges strong {
    color: var(--success);
    font-weight: 600;
}

/* ============================================
   PATH SELECTION
   ============================================ */

.path-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.path-option {
    border: 3px solid var(--border);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    position: relative;
}

.path-option::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.path-option:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.path-option:hover::after {
    opacity: 0.1;
}

.path-icon {
    font-size: 56px;
    margin-bottom: var(--space-lg);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.path-option h3 {
    font-size: 22px;
    margin-bottom: var(--space-md);
    color: var(--primary);
    font-weight: 600;
}

.path-option p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 8px 20px;
    font-size: 11px;
    margin: var(--space-md) 0;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
}

.path-best-for {
    margin-top: var(--space-md);
    font-size: 14px;
    color: var(--text-secondary);
}

.path-best-for strong {
    color: var(--primary);
}

/* ============================================
   INFO BOX
   ============================================ */

.info-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--accent-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.info-box strong {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   SCHEDULE OPTION
   ============================================ */

.schedule-option {
    background: var(--bg-light);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
}

.schedule-option label {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    cursor: pointer;
    color: var(--primary);
}

.schedule-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: var(--space-sm);
    cursor: pointer;
    accent-color: var(--accent);
}

.schedule-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 32px;
    margin-bottom: 0;
}

.calendar-container {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-white);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.calendar-fallback {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: var(--space-md);
    margin-bottom: 0;
}

/* ============================================
   REDIRECT SECTION
   ============================================ */

.redirect-icon {
    font-size: 80px;
    margin-bottom: var(--space-xl);
    animation: pulse 2s infinite;
}

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

/* ============================================
   SOCIAL PROOF
   ============================================ */

.social-proof {
    background: var(--bg-light);
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border);
}

.social-proof h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.testimonial {
    background: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    font-size: 64px;
    color: var(--accent-light);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

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

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 16px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

/* ============================================
   GUIDE SECTION (broker intro, subordinate)
   ============================================ */

.guide-section {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.guide-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}

.guide-info h3 {
    font-size: 17px;
    color: var(--primary);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.guide-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .guide-section {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   TRUST SIGNALS
   ============================================ */

.trust-signals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.trust-signal {
    padding: var(--space-lg);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.trust-signal-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.trust-signal-label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: #222;
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-3xl) 0 var(--space-xl);
    text-align: center;
    font-size: 14px;
}

.guarantee {
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    line-height: 1.7;
    backdrop-filter: blur(10px);
}

.guarantee strong {
    color: var(--accent-light);
    font-weight: 600;
}

.footer-contact {
    margin: var(--space-md) 0;
    font-weight: 600;
    color: var(--bg-white);
}

.footer-email {
    margin-top: var(--space-sm);
    color: rgba(255, 255, 255, 0.7);
}

.footer-email a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-email a:hover {
    color: var(--bg-white);
    text-decoration: underline;
}

.footer-trademark {
    margin-top: var(--space-lg);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   HUBSPOT FORM OVERRIDES
   ============================================ */

.hs-form fieldset {
    max-width: none !important;
}

.hs-form input[type="email"],
.hs-form input[type="text"],
.hs-form input[type="tel"] {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    border: 2px solid var(--border) !important;
    border-radius: var(--radius) !important;
    margin-bottom: var(--space-md) !important;
    transition: all 0.3s ease !important;
}

.hs-form input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1) !important;
}

.hs-form input[type="submit"] {
    width: 100% !important;
    padding: 18px 32px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%) !important;
    color: var(--bg-white) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    cursor: pointer !important;
    box-shadow: var(--shadow) !important;
    transition: all 0.3s ease !important;
}

.hs-form input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* ============================================
   LOADING STATE
   ============================================ */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   SMOOTH SCROLL
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    .subheadline {
        font-size: 18px;
    }

    h2 {
        font-size: 28px;
    }

    .hero {
        padding: var(--space-2xl) 0;
    }

    .step {
        padding: var(--space-2xl) 0;
    }

    .path-selection {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

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

    .trust-signals {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .container {
        padding: 0 var(--space-md);
    }

    .step-dot {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    button {
        font-size: 16px;
        padding: 16px 24px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.step {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

button:focus-visible,
input:focus-visible,
.path-option:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}