/* ==========================================================================
   OBSERVATOIRE PATRIMONIAL — PREMIUM DESIGN SYSTEM (APPLE/FINTECH STYLE)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-darker:     #F8FAFC; /* Light slate background */
    --bg-dark:       #F1F5F9; /* Soft light gray */
    --bg-card:       rgba(255, 255, 255, 0.75); /* Clean white glassmorphism */
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color:  rgba(15, 23, 42, 0.08); /* Very soft border */
    --border-hover:  rgba(197, 155, 39, 0.35);

    /* Text Colors */
    --text-pure:     #0F172A; /* Slate 900 */
    --text-primary:  #334155; /* Slate 700 */
    --text-muted:    #475569; /* Slate 600 */
    --text-dim:      #64748B; /* Slate 500 */

    /* Accents */
    --gold:          #C59B27; /* Refined mat gold */
    --gold-hover:    #A37F1F;
    --gold-glow:     rgba(197, 155, 39, 0.12);
    
    --red:           #EF4444; /* Alert red */
    --red-dim:       rgba(239, 68, 68, 0.06);
    --red-glow:      rgba(239, 68, 68, 0.12);
    
    --green:         #10B981; /* Emerald green */
    --green-dim:     rgba(16, 185, 129, 0.06);
    --green-glow:    rgba(16, 185, 129, 0.12);

    /* Typography */
    --font-heading:  'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body:     'Plus Jakarta Sans', -apple-system, sans-serif;
    
    /* Layout Constants */
    --radius-lg:     24px;
    --radius-md:     16px;
    --radius-sm:     8px;
    --transition:    all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glow:   0 20px 40px -15px rgba(15, 23, 42, 0.06), 0 1px 3px 0 rgba(15, 23, 42, 0.02);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-darker);
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at 50% 0%, #FAF8F5 0%, var(--bg-darker) 70%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-pure);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.gold-text {
    color: var(--gold);
    background: linear-gradient(135deg, var(--gold) 0%, #9C7D25 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    background: rgba(10, 15, 30, 0.88); /* Sleek dark translucent glassmorphism */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 10px 0;
}

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

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.header-badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--gold); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* ==========================================================================
   HERO / INTRO SECTION (APPLE STYLE GRID WITH BLURRED BG)
   ========================================================================== */

/* Badge pulse dot (hero badge indicator) */
.badge-pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold);
    animation: pulse 1.8s infinite;
    flex-shrink: 0;
}

.hero-simulator-section {
    position: relative;
    padding-top: 130px;
    padding-bottom: 75px;
    min-height: calc(100vh - 57px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Blurred Full-Bleed Background Image */
.hero-simulator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/investor_lifestyle.png');
    background-size: cover;
    background-position: center;
    filter: blur(25px);
    transform: scale(1.15);
    z-index: 0;
    pointer-events: none; /* CRITICAL: must not block clicks */
}

/* Premium Light / Glassmorphism Overlay */
.hero-simulator-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.45) 0%, rgba(248, 250, 252, 0.9) 70%);
    z-index: 1;
    pointer-events: none; /* CRITICAL: must not block clicks */
}

.hero-simulator-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-simulator-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    font-weight: 800;
    background: linear-gradient(135deg, #0F172A 30%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
    text-align: left;
    max-width: 600px;
}

/* Key Metrics List - Apple style */
.hero-key-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 10px;
}

.key-metric-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gold);
    background: linear-gradient(135deg, var(--gold) 0%, #9C7D25 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    min-width: 90px;
    flex-shrink: 0;
    text-align: left;
}

.metric-desc {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
    padding-top: 4px;
}

/* Simulator Wrapper Column */
.simulator-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* Stepper Card UI */
.stepper-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stepper-header {
    margin-bottom: 40px;
}

.stepper-steps-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 12px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-hover) 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Step Content Transitions */
.step-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.step-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 36px;
}

/* Options Layouts */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Vertical list card option (Step 1) */
.option-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.option-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.option-card.selected {
    background: rgba(197, 155, 39, 0.05);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(197, 155, 39, 0.08);
}

.option-marker {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-dim);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}

.option-card:hover .option-marker {
    border-color: var(--gold);
}

.option-card.selected .option-marker {
    border-color: var(--gold);
    background: var(--gold);
}

.option-card.selected .option-marker::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.option-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-pure);
}

.option-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Grid card option layout (Steps 2,3,4,5,6) */
.options-grid.card-style {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.options-grid.card-style .option-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    text-align: left;
}

.options-grid.card-style .option-card:hover {
    transform: translateY(-4px);
}

.option-icon {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 20px;
    height: 40px;
    display: flex;
    align-items: center;
}

.flag-icon {
    width: 32px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.options-grid.card-style .option-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.options-grid.card-style .option-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Stepper Actions footer */
.stepper-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #C59B27 100%);
    color: #050811;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #F3E5AB 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-pure);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn:disabled, .btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   PREMIUM LOADER SCREEN
   ========================================================================= */
.loader-card {
    max-width: 600px;
    padding: 60px 40px;
    text-align: center;
}

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

.premium-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-core {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 1.8s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0% { transform: scale(0.85); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.8; }
    100% { transform: scale(0.85); opacity: 0.4; }
}

.loader-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.loader-message {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.loader-progress-bar {
    width: 100%;
    max-width: 320px;
    height: 4px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress-fill {
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width 0.1s linear;
}

/* ==========================================================================
   INTERACTIVE RESULTS SECTION
   ========================================================================== */
.results-card {
    background: var(--bg-darker);
    padding: 110px 0 80px;
    overflow: hidden;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.results-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border-radius: var(--radius-lg);
}

/* Left Panel */
.results-left-panel {
    padding: 48px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.panel-header h2 {
    font-size: 2rem;
    margin-top: 10px;
    line-height: 1.25;
}

.premium-tag {
    background: rgba(74, 222, 128, 0.1);
    color: var(--green);
    border: 1px solid rgba(74, 222, 128, 0.25);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.score-display-box {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(15, 23, 42, 0.015);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
}

.score-ring-container {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg-circle {
    fill: none;
    stroke: rgba(15, 23, 42, 0.04);
    stroke-width: 6;
}

.score-fill-circle {
    fill: none;
    stroke: var(--gold);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 6px var(--gold-glow));
}

.score-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#arbitrage-score-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-pure);
}

.score-max {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: -2px;
}

.score-interpretation h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.score-interpretation p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

/* Metrics comparison block */
.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.france-metric {
    border-left: 4px solid var(--red);
}

.dubai-metric {
    border-left: 4px solid var(--gold);
    position: relative;
}

.metric-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.metric-flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.metric-data {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-gray { color: var(--text-dim); }
.font-bold { font-weight: 700; }

.metric-tax-drag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.03);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

.metric-status-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 4px;
    display: flex;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    transition: width 0.6s ease;
}

.fill-red { background: var(--red); }
.fill-green { background: var(--green); }
.fill-gold { background: linear-gradient(90deg, var(--gold) 0%, #F5E5C9 100%); }

.status-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
}

.visa-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(74, 222, 128, 0.1);
    color: var(--green);
    border: 1px solid rgba(74, 222, 128, 0.25);
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
}

/* Cost of inaction warning banner */
.inaction-alert-box {
    display: flex;
    gap: 16px;
    background: rgba(248, 113, 113, 0.05);
    border: 1px solid rgba(248, 113, 113, 0.15);
    padding: 20px;
    border-radius: var(--radius-md);
}

.alert-icon {
    font-size: 1.25rem;
    color: var(--red);
    margin-top: 2px;
}

.alert-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-pure);
}

#cost-of-inaction-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.alert-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Right Panel */
.results-right-panel {
    padding: 48px;
    background: rgba(241, 245, 249, 0.45);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Chart block styling */
.chart-container-box {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.chart-container-box h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.canvas-wrapper {
    position: relative;
    height: 220px;
    width: 100%;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.bg-gold { background: var(--gold); }
.bg-red { background: var(--red); }

/* Form capture UI */
.lead-form-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-header h3 {
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.lead-form-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: start;
    margin-top: 8px;
}

.advisor-card-widget {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.advisor-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 18px;
}

.advisor-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.advisor-status-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #0F172A;
    color: #4ADE80;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 12px;
    border: 2px solid #FFFFFF;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    background: #4ADE80;
    border-radius: 50%;
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.advisor-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.advisor-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 1px;
}

.advisor-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-pure);
}

.advisor-quote {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.45;
    background: rgba(15, 23, 42, 0.02);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    margin: 8px 0;
    text-align: left;
}

.advisor-trust-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin-top: 8px;
}

.trust-point {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-point i {
    color: var(--green);
    font-size: 0.85rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.required {
    color: var(--red);
}

.form-field input, .form-field select {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text-pure);
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
    transition: var(--transition);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.form-field input:focus, .form-field select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(197, 155, 39, 0.15);
    background: #FFFFFF;
}

.field-info {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.form-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.form-consent input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: var(--gold);
}

.form-consent label {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    user-select: none;
}

/* Success panel styling */
.success-panel {
    text-align: center;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeIn 0.5s ease forwards;
}

.success-icon {
    font-size: 3.5rem;
    color: var(--green);
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.2));
}

.success-panel h2 {
    font-size: 1.8rem;
    line-height: 1.25;
}

.success-intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.next-steps-box {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    width: 100%;
    text-align: left;
}

.next-steps-box h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.next-steps-box ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.next-steps-box li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    background: var(--gold);
    color: var(--bg-darker);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.next-steps-box li strong {
    color: var(--text-pure);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

.next-steps-box li p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.success-note {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.success-note strong {
    color: var(--gold);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 30px;
}

.footer-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

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

.footer-disclaimer-text {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.6;
    text-align: justify;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.copyright-text {
    text-align: center;
    margin-top: 20px;
    color: var(--text-dim);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .hero-simulator-section {
        padding-top: 110px;
        padding-bottom: 50px;
        min-height: auto;
    }
    
    .hero-simulator-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    
    .hero-text-content {
        align-items: center;
        text-align: center;
    }
    
    .hero-title, .hero-subtitle {
        text-align: center;
    }
    
    .hero-key-metrics {
        align-items: flex-start;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .results-layout {
        grid-template-columns: 1fr;
    }
    
    .results-left-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .lead-form-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .hero-simulator-section {
        padding-top: 90px;
        padding-bottom: 24px;
    }
    
    .hero-badge {
        margin-bottom: 12px;
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    
    .hero-title {
        font-size: 1.65rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .hero-key-metrics {
        gap: 12px;
        margin-top: 0;
        margin-bottom: 24px;
    }
    
    .key-metric-item {
        gap: 12px;
    }
    
    .metric-num {
        font-size: 1.7rem;
        min-width: 75px;
    }
    
    .metric-desc {
        font-size: 0.8rem;
    }
    
    .stepper-card {
        padding: 24px 16px;
    }
    
    .step-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    
    .step-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    /* Step 1 Compact Cards */
    .option-card {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .option-marker {
        width: 18px;
        height: 18px;
        border-width: 1.5px;
    }
    
    .option-card.selected .option-marker::after {
        width: 6px;
        height: 6px;
    }
    
    .option-value {
        font-size: 1.05rem;
    }
    
    .option-label {
        font-size: 0.75rem;
    }
    
    /* Steps 2 & 3 Compact Cards */
    .options-grid.card-style {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .options-grid.card-style .option-card {
        display: grid;
        grid-template-columns: 36px 1fr;
        grid-template-areas: 
            "icon title"
            "icon desc";
        column-gap: 14px;
        row-gap: 2px;
        padding: 14px 18px;
        align-items: center;
        flex-direction: row; /* override desktop flex-direction */
        text-align: left;
    }
    
    .options-grid.card-style .option-card .option-icon {
        grid-area: icon;
        margin-bottom: 0;
        align-self: center;
        justify-self: center;
        font-size: 1.35rem;
        height: auto;
    }
    
    .options-grid.card-style .option-card h3 {
        grid-area: title;
        margin-bottom: 0;
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .options-grid.card-style .option-card p {
        grid-area: desc;
        margin-bottom: 0;
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .results-left-panel, .results-right-panel {
        padding: 24px 16px;
    }
    
    .score-display-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .visa-badge {
        position: static;
        margin-top: 4px;
        align-self: flex-start;
        display: inline-block;
        width: fit-content;
    }

    .results-card {
        padding: 90px 16px 40px;
    }

    #main-header .brand-logo img {
        height: 36px !important;
    }

    .metric-tax-drag {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .metric-desc {
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
    }

    .container {
        padding: 0 16px;
    }
}

/* ==========================================================================
   MOBILE & VIEWPORT OVERFLOW FIXES (IPHONE SE / 320PX SUPPORT)
   ========================================================================== */

/* Global Flexbox details shrink safety */
.option-details {
    flex: 1;
    min-width: 0;
}

/* Ensure wrapper elements don't force overflow in CSS Grid */
.hero-text-content,
.simulator-wrapper {
    min-width: 0;
    width: 100%;
}

@media (max-width: 992px) {
    /* Prevent columns from expanding wider than viewport */
    .hero-simulator-grid {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .hero-key-metrics {
        align-items: stretch !important;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .results-left-panel,
    .results-right-panel {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    /* Allow key metrics list to wrap metrics text */
    .key-metric-item {
        width: 100%;
        min-width: 0;
    }
    
    .metric-desc {
        word-break: break-word;
    }

    /* Force long button texts and call notices to wrap on mobile (e.g. 320px) */
    .btn,
    .btn-lg,
    #download-pdf-btn,
    #lead-submit-btn {
        white-space: normal !important;
        word-break: break-word !important;
        flex-wrap: wrap !important;
        text-align: center;
        justify-content: center;
    }
    
    /* Call notice text wrap */
    .booking-actions-call-notice p {
        flex-wrap: wrap !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    /* Stack chart legends on mobile to prevent overflow */
    .chart-legend {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    /* Decrease padding on chart container to save horizontal space */
    .chart-container-box {
        padding: 16px !important;
    }
    
    /* Ensure the main results cards fit screen */
    .results-card {
        padding: 90px 12px 40px !important;
    }
    
    .results-left-panel, 
    .results-right-panel {
        padding: 24px 12px !important;
    }
    
    /* Adjust margins and padding inside results panels */
    .score-display-box {
        padding: 16px !important;
    }
    
    .metric-card {
        padding: 16px !important;
    }
    
    .inaction-alert-box {
        padding: 16px !important;
    }
}

/* Premium CTA Pulse & Hover Animation for PDF Download */
#download-pdf-btn {
    animation: premium-pulse 2s infinite ease-in-out;
    box-shadow: 0 0 0 0 rgba(197, 155, 39, 0.4);
    transition: all 0.3s ease;
}

#download-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 155, 39, 0.4) !important;
    animation: none !important;
}

@keyframes premium-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 155, 39, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(197, 155, 39, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(197, 155, 39, 0);
    }
}

