/* ============================================
   Interstate Bridge Monitor - Industrial Style
   Mobile-First Responsive Design
   ============================================ */

:root {
    /* Core Colors - Industrial Dark */
    --bg-primary: #0a0c0f;
    --bg-secondary: #12151a;
    --bg-tertiary: #1a1e25;
    --bg-card: #14171d;

    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    --accent-orange: #f97316;

    /* Status Colors */
    --status-down: var(--accent-green);
    --status-up: var(--accent-orange);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);

    /* Effects */
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.3);
    --glow-orange: 0 0 20px rgba(249, 115, 22, 0.3);

    /* Spacing - Mobile First */
    --header-height: 60px;
    --content-max: 1400px;
    --gap: 12px;
    --radius: 10px;
    --radius-lg: 16px;
}

/* Tablet and up */
@media (min-width: 768px) {
    :root {
        --header-height: 80px;
        --gap: 20px;
        --radius: 12px;
        --radius-lg: 20px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --gap: 24px;
    }
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        var(--bg-primary);
    pointer-events: none;
    z-index: -2;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

@media (min-width: 768px) {
    .grid-overlay {
        background-size: 60px 60px;
    }
}

/* ============================================
   Header
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 12, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 12px var(--gap);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: var(--header-height);
        padding: 0 var(--gap);
    }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bridge-icon {
    width: 48px;
    height: 24px;
    color: var(--accent-cyan);
    flex-shrink: 0;
    animation: iconPulse 3s ease-in-out infinite;
}

@media (min-width: 768px) {
    .bridge-icon {
        width: 64px;
        height: 32px;
    }
}

@keyframes iconPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.logo-text h1 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .logo-text h1 {
        font-size: 1.5rem;
    }
}

.logo-text .subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    display: none;
}

@media (min-width: 480px) {
    .logo-text .subtitle {
        display: block;
    }
}

.header-meta {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .header-meta {
        gap: 32px;
        justify-content: flex-end;
    }
}

.data-source, .last-update {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media (min-width: 768px) {
    .data-source, .last-update {
        align-items: flex-end;
    }
}

.source-label, .update-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.source-value, .update-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Refresh Indicator */
.refresh-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.refresh-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.refresh-indicator.refreshing .refresh-spinner {
    opacity: 1;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   Main Content
   ============================================ */
.main-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--gap);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

/* Section Headers */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

@media (min-width: 600px) {
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }
}

.section-header h2 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Status Section
   ============================================ */
.status-section {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

@media (min-width: 900px) {
    .status-section {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
    }
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

@media (min-width: 600px) {
    .status-card {
        padding: 24px;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .status-card {
        padding: 32px;
        gap: 32px;
    }
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--status-down), transparent);
    transition: background 0.5s ease;
}

.status-card.status-up::before {
    background: linear-gradient(90deg, transparent, var(--status-up), transparent);
}

/* Status Indicator */
.status-indicator {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.status-ring {
    width: 80px;
    height: 80px;
    position: relative;
}

@media (min-width: 600px) {
    .status-ring {
        width: 90px;
        height: 90px;
    }
}

@media (min-width: 1024px) {
    .status-ring {
        width: 100px;
        height: 100px;
    }
}

.ring-outer {
    position: absolute;
    inset: 0;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

.ring-outer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--status-down);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: var(--glow-green);
    transition: all 0.5s ease;
}

@media (min-width: 600px) {
    .ring-outer::before {
        width: 8px;
        height: 8px;
    }
}

.status-card.status-up .ring-outer::before {
    background: var(--status-up);
    box-shadow: var(--glow-orange);
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ring-inner {
    position: absolute;
    inset: 8px;
    border: 1px dashed var(--border-subtle);
    border-radius: 50%;
    animation: ringRotate 15s linear infinite reverse;
}

@media (min-width: 600px) {
    .ring-inner {
        inset: 10px;
    }
}

.status-icon {
    position: absolute;
    inset: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
}

@media (min-width: 600px) {
    .status-icon {
        inset: 20px;
    }
}

.status-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.5s ease;
}

@media (min-width: 600px) {
    .status-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (min-width: 1024px) {
    .status-icon svg {
        width: 32px;
        height: 32px;
    }
}

.icon-down {
    color: var(--status-down);
    display: block;
}

.icon-up {
    color: var(--status-up);
    display: none;
}

.status-card.status-up .icon-down { display: none; }
.status-card.status-up .icon-up { display: block; }

/* Status Info */
.status-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    flex: 1;
    min-width: 0;
}

@media (min-width: 600px) {
    .status-info {
        text-align: left;
        gap: 8px;
    }
}

.status-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.status-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--status-down);
    transition: color 0.5s ease;
}

@media (min-width: 600px) {
    .status-value {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .status-value {
        font-size: 2.5rem;
    }
}

.status-card.status-up .status-value {
    color: var(--status-up);
}

.status-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .status-description {
        font-size: 0.9rem;
        max-width: 300px;
    }
}

/* Status Meta */
.status-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

@media (min-width: 600px) {
    .status-meta {
        flex-direction: column;
        gap: 16px;
        padding-top: 0;
        padding-left: 24px;
        border-top: none;
        border-left: 1px solid var(--border-subtle);
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .status-meta {
        padding-left: 32px;
    }
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

@media (min-width: 600px) {
    .meta-item {
        text-align: left;
        gap: 4px;
    }
}

.meta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.meta-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

@media (min-width: 600px) {
    .meta-value {
        font-size: 1.25rem;
    }
}

/* Alert Panel */
.alert-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

@media (min-width: 600px) {
    .alert-panel {
        padding: 20px;
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .alert-panel {
        padding: 24px;
    }
}

.alert-panel.has-alert {
    opacity: 1;
    border-color: rgba(249, 115, 22, 0.3);
    background: linear-gradient(135deg, var(--bg-card), rgba(249, 115, 22, 0.05));
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-icon {
    font-size: 1.25rem;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

@media (min-width: 600px) {
    .alert-icon {
        font-size: 1.5rem;
    }
}

.alert-panel.has-alert .alert-icon {
    filter: none;
    animation: alertPulse 2s ease-in-out infinite;
}

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

.alert-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.alert-panel.has-alert .alert-title {
    color: var(--accent-orange);
}

.alert-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.7;
    color: var(--text-secondary);
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border-left: 3px solid var(--border-light);
    transition: border-color 0.3s ease;
    word-break: break-word;
}

@media (min-width: 600px) {
    .alert-content {
        font-size: 0.8rem;
        padding: 16px;
    }
}

.alert-panel.has-alert .alert-content {
    border-left-color: var(--accent-orange);
}

/* ============================================
   Map Section
   ============================================ */
.map-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
}

@media (min-width: 600px) {
    .map-section {
        padding: 20px;
    }
}

@media (min-width: 1024px) {
    .map-section {
        padding: 24px;
    }
}

.map-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (min-width: 600px) {
    .map-legend {
        gap: 16px;
    }
}

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

@media (min-width: 600px) {
    .legend-item {
        font-size: 0.8rem;
        gap: 6px;
    }
}

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

@media (min-width: 600px) {
    .legend-dot {
        width: 10px;
        height: 10px;
    }
}

.legend-dot.green { background: var(--accent-green); }
.legend-dot.yellow { background: var(--accent-yellow); }
.legend-dot.red { background: var(--accent-red); }

/* Delay Indicators */
.delay-indicators {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

@media (min-width: 600px) {
    .delay-indicators {
        gap: 24px;
        margin-bottom: 16px;
    }
}

.delay-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
}

@media (min-width: 600px) {
    .delay-item {
        padding: 10px 16px;
        gap: 12px;
    }
}

.delay-direction {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

@media (min-width: 600px) {
    .delay-direction {
        font-size: 0.75rem;
    }
}

.delay-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-green);
    transition: color 0.3s ease;
}

@media (min-width: 600px) {
    .delay-value {
        font-size: 1rem;
    }
}

.delay-value.has-delay {
    color: var(--accent-orange);
}

.map-container {
    position: relative;
    height: 250px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

@media (min-width: 480px) {
    .map-container {
        height: 300px;
    }
}

@media (min-width: 768px) {
    .map-container {
        height: 350px;
    }
}

@media (min-width: 1024px) {
    .map-container {
        height: 400px;
    }
}

#map {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
}

.map-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 1000;
}

@media (min-width: 600px) {
    .map-overlay {
        bottom: 16px;
        left: 16px;
    }
}

.coordinates {
    display: flex;
    gap: 10px;
    background: rgba(10, 12, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

@media (min-width: 600px) {
    .coordinates {
        gap: 16px;
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 0.75rem;
    }
}

/* Leaflet Dark Theme Override */
.leaflet-container {
    background: var(--bg-tertiary);
    font-family: 'Space Grotesk', sans-serif;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-control-zoom a {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle) !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
}

@media (min-width: 600px) {
    .leaflet-control-zoom a {
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
    }
}

.leaflet-control-zoom a:hover {
    background: var(--bg-tertiary) !important;
}

.leaflet-control-attribution {
    background: rgba(10, 12, 15, 0.8) !important;
    color: var(--text-muted) !important;
    font-size: 0.55rem !important;
    padding: 2px 6px !important;
}

@media (min-width: 600px) {
    .leaflet-control-attribution {
        font-size: 0.65rem !important;
    }
}

.leaflet-control-attribution a {
    color: var(--accent-cyan) !important;
}

/* ============================================
   History Section
   ============================================ */
.history-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
}

@media (min-width: 600px) {
    .history-section {
        padding: 20px;
    }
}

@media (min-width: 1024px) {
    .history-section {
        padding: 24px;
    }
}

.history-stats {
    display: flex;
    gap: 20px;
}

@media (min-width: 600px) {
    .history-stats {
        gap: 32px;
    }
}

.stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

@media (min-width: 600px) {
    .stat {
        gap: 8px;
    }
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

@media (min-width: 600px) {
    .stat-value {
        font-size: 1.5rem;
    }
}

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

@media (min-width: 600px) {
    .stat-label {
        font-size: 0.8rem;
    }
}

.chart-container {
    height: 150px;
    margin: 16px 0;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
}

@media (min-width: 600px) {
    .chart-container {
        height: 180px;
        margin: 20px 0;
        padding: 16px;
    }
}

@media (min-width: 1024px) {
    .chart-container {
        height: 200px;
        margin: 24px 0;
    }
}

/* Timeline */
.timeline-container {
    margin-top: 16px;
}

@media (min-width: 600px) {
    .timeline-container {
        margin-top: 24px;
    }
}

.timeline-header h3 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

@media (min-width: 600px) {
    .timeline-header h3 {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 600px) {
    .timeline {
        gap: 12px;
        max-height: 300px;
        padding-right: 8px;
    }
}

.timeline::-webkit-scrollbar {
    width: 4px;
}

.timeline::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 2px;
}

.timeline::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

.timeline-event {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

@media (min-width: 600px) {
    .timeline-event {
        grid-template-columns: auto 1fr auto;
        gap: 16px;
        padding: 16px;
    }
}

.timeline-event:hover {
    border-color: var(--accent-cyan);
}

@media (min-width: 600px) {
    .timeline-event:hover {
        transform: translateX(4px);
    }
}

.event-marker {
    width: 10px;
    height: 10px;
    background: var(--accent-orange);
    border-radius: 50%;
    margin-top: 4px;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
    flex-shrink: 0;
}

@media (min-width: 600px) {
    .event-marker {
        width: 12px;
        height: 12px;
        box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
    }
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.event-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

@media (min-width: 600px) {
    .event-time {
        font-size: 0.85rem;
    }
}

.event-description {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
}

@media (min-width: 600px) {
    .event-description {
        font-size: 0.8rem;
    }
}

.event-duration {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    grid-column: 2;
    margin-top: 4px;
}

@media (min-width: 600px) {
    .event-duration {
        font-size: 0.75rem;
        grid-column: auto;
        margin-top: 0;
        align-self: center;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    border-top: 1px solid var(--border-subtle);
    margin-top: 32px;
    padding: 20px 0;
}

@media (min-width: 600px) {
    .footer {
        margin-top: 48px;
        padding: 24px 0;
    }
}

.footer-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

@media (min-width: 600px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

@media (min-width: 600px) {
    .footer-info {
        font-size: 0.8rem;
        gap: 8px;
        justify-content: flex-start;
    }
}

.separator {
    color: var(--border-light);
}

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

@media (min-width: 600px) {
    .footer-links {
        gap: 24px;
    }
}

.footer-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

@media (min-width: 600px) {
    .footer-links a {
        font-size: 0.8rem;
    }
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

/* ============================================
   Loading & Refresh States
   ============================================ */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Countdown Timer */
.refresh-countdown {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: 8px;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .timeline-event:hover {
        transform: none;
        border-color: var(--border-subtle);
    }

    .timeline-event:active {
        border-color: var(--accent-cyan);
        background: var(--bg-tertiary);
    }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
    .header-content {
        padding-left: max(var(--gap), env(safe-area-inset-left));
        padding-right: max(var(--gap), env(safe-area-inset-right));
    }

    .main-content {
        padding-left: max(var(--gap), env(safe-area-inset-left));
        padding-right: max(var(--gap), env(safe-area-inset-right));
    }

    .footer-content {
        padding-left: max(var(--gap), env(safe-area-inset-left));
        padding-right: max(var(--gap), env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}
/* ============================================
   Additional Styles for SMS Signup, Contact, Terms
   Add this to the end of style.css
   ============================================ */

/* ============================================
   SMS Signup Section
   ============================================ */
.sms-signup-section {
    margin: var(--gap) 0;
}

.sms-signup-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .sms-signup-card {
        flex-direction: row;
        align-items: center;
        padding: 24px 32px;
        gap: 32px;
    }
}

.sms-signup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-cyan), transparent);
}

.sms-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .sms-icon {
        width: 64px;
        height: 64px;
    }
}

.sms-icon svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .sms-icon svg {
        width: 32px;
        height: 32px;
    }
}

.sms-content {
    flex: 1;
}

.sms-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .sms-content h3 {
        font-size: 1.25rem;
    }
}

.sms-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.sms-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
}

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

.sms-features li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 600;
}

.sms-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .sms-cta {
        align-items: flex-end;
    }
}

.sms-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.sms-signup-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sms-signup-btn:hover:not(:disabled) {
    background: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sms-signup-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.sms-note {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ============================================
   Page Sections (Contact, Terms)
   ============================================ */
.page-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
}

@media (min-width: 768px) {
    .page-section {
        padding: 40px;
    }
}

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

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .page-header h2 {
        font-size: 2rem;
    }
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Logo Link */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-container {
    display: grid;
    gap: 40px;
}

@media (min-width: 900px) {
    .contact-container {
        grid-template-columns: 1.5fr 1fr;
        gap: 60px;
    }
}

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

.form-row {
    display: grid;
    gap: 20px;
}

@media (min-width: 500px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
}

.submit-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: var(--radius);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.submit-btn:hover:not(:disabled) {
    background: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn .btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: flex;
}

.submit-btn .spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

.form-message {
    padding: 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-cyan);
}

.info-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   Legal / Terms Page
   ============================================ */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.legal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
    .legal-section h3 {
        font-size: 1.1rem;
    }
}

.legal-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.legal-section ul li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.legal-section ul li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--accent-cyan);
}

.legal-section strong {
    color: var(--text-primary);
}

.legal-section a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-section.acknowledgment {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.legal-section.acknowledgment p {
    margin: 0;
    color: var(--text-primary);
}

/* ============================================
   Additional Styles for SMS Signup, Contact, Terms
   Add this to the end of style.css
   ============================================ */

/* ============================================
   SMS Signup Section (Homepage Tile)
   ============================================ */
.sms-signup-section {
    margin: var(--gap) 0;
}

.sms-signup-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .sms-signup-card {
        flex-direction: row;
        align-items: center;
        padding: 24px 32px;
        gap: 32px;
    }
}

.sms-signup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-cyan), transparent);
}

.sms-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .sms-icon {
        width: 64px;
        height: 64px;
    }
}

.sms-icon svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .sms-icon svg {
        width: 32px;
        height: 32px;
    }
}

.sms-content {
    flex: 1;
}

.sms-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .sms-content h3 {
        font-size: 1.25rem;
    }
}

.sms-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.sms-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
}

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

.sms-features li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 600;
}

.sms-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .sms-cta {
        align-items: flex-end;
    }
}

.sms-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.sms-signup-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sms-signup-btn:hover:not(:disabled) {
    background: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sms-signup-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.sms-note {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ============================================
   Signup Page Styles
   ============================================ */
.signup-page {
    max-width: 900px;
    margin: 0 auto;
}

.signup-container {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .signup-container {
        grid-template-columns: 300px 1fr;
        gap: 48px;
    }
}

/* Plan Info Card */
.plan-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.plan-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-cyan);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 24px;
}

.plan-price .price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-price .price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.plan-price .price-period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.plan-features li svg {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step.active .step-number {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.step.active .step-label {
    color: var(--accent-cyan);
}

.step.completed .step-number {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border-light);
    margin-bottom: 20px;
}

@media (min-width: 500px) {
    .step-line {
        width: 60px;
    }
}

/* Signup Steps */
.signup-steps {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
}

@media (min-width: 768px) {
    .signup-steps {
        padding: 32px;
    }
}

.signup-step {
    animation: fadeIn 0.3s ease;
}

.signup-step.hidden {
    display: none;
}

.signup-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.signup-step > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.phone-input-wrapper:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.country-code {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    border-right: 1px solid var(--border-light);
}

.phone-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.phone-input-wrapper input:focus {
    outline: none;
}

.phone-input-wrapper input::placeholder {
    color: var(--text-muted);
}

/* Stripe Element */
.stripe-element {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: all 0.2s ease;
}

.stripe-element:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Consent Checkboxes */
.consent-checkbox {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--accent-cyan);
}

.consent-checkbox label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.consent-checkbox label a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.consent-checkbox label a:hover {
    text-decoration: underline;
}

/* Buttons */
.primary-btn {
    width: 100%;
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.primary-btn:hover:not(:disabled) {
    background: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.primary-btn .btn-loading {
    display: none;
}

.primary-btn.loading .btn-text {
    display: none;
}

.primary-btn.loading .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-btn .spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.text-btn {
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px;
    margin-top: 8px;
}

.text-btn:hover {
    text-decoration: underline;
}

/* reCAPTCHA container */
#recaptcha-container {
    margin: 16px 0;
}

/* Secure Notice */
.secure-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.secure-notice svg {
    width: 16px;
    height: 16px;
}

/* Form Errors */
.form-error {
    color: var(--accent-red);
    font-size: 0.85rem;
    margin-top: 12px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius);
    display: none;
}

.form-error:not(:empty) {
    display: block;
}

.form-success {
    color: var(--accent-green);
    font-size: 0.85rem;
    margin-top: 12px;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius);
}

/* Success State */
#stepSuccess {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent-green);
}

#stepSuccess h3 {
    margin-bottom: 12px;
}

#stepSuccess p {
    margin-bottom: 8px;
}

.trial-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px !important;
}

/* ============================================
   Page Sections (Contact, Terms)
   ============================================ */
.page-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
}

@media (min-width: 768px) {
    .page-section {
        padding: 40px;
    }
}

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

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .page-header h2 {
        font-size: 2rem;
    }
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Logo Link */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-container {
    display: grid;
    gap: 40px;
}

@media (min-width: 900px) {
    .contact-container {
        grid-template-columns: 1.5fr 1fr;
        gap: 60px;
    }
}

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

.form-row {
    display: grid;
    gap: 20px;
}

@media (min-width: 500px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
}

.submit-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: var(--radius);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.submit-btn:hover:not(:disabled) {
    background: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn .btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: flex;
}

.submit-btn .spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

.form-message {
    padding: 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-cyan);
}

.info-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   Legal / Terms Page
   ============================================ */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.legal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
    .legal-section h3 {
        font-size: 1.1rem;
    }
}

.legal-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.legal-section ul li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.legal-section ul li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--accent-cyan);
}

.legal-section strong {
    color: var(--text-primary);
}

.legal-section a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-section.acknowledgment {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.legal-section.acknowledgment p {
    margin: 0;
    color: var(--text-primary);
}