:root {
    --bg-body: #f9fafb;
    --bg-card: #ffffff;
    --bg-card-hover: #f3f4f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;
    --border: #e5e7eb;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}
.nav-links a:hover { color: var(--text-main); }

.nav-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); color: white; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}
.btn-outline:hover { border-color: var(--text-muted); background: var(--bg-card); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text-main); background: rgba(0,0,0,0.05); }

.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* Hero */
.hero {
    padding: 50px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, #f0f5ff 0%, #f9fafb 50%, #ffffff 100%);
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: #111827;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Main Form Card */
.search-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
}

.form-input {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.75rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    width: 100%;
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

/* Custom Calendar Styling Override */
.cal-trigger {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cal-trigger:hover { border-color: var(--primary); }
.cal-placeholder { color: var(--text-muted); }

.cal-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    margin-top: 0.5rem;
    color: var(--text-main);
    min-width: 300px;
}
.cal-panel.open { display: flex; gap: 8px; }

.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cal-title { font-weight: 700; }
.cal-prev, .cal-next {
    background: transparent; border: 1px solid var(--border); color: var(--text-muted);
    width: 30px; height: 30px; border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.cal-prev:hover, .cal-next:hover { background: var(--bg-card-hover); color: var(--text-main); border-color: var(--text-muted); }

.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 0.5rem; }
.cal-weekdays span { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; cursor: pointer; border-radius: 4px; color: var(--text-main);
}
.cal-day:hover:not(.empty):not(.past):not(.locked) { background: var(--bg-card-hover); color: var(--primary); }
.cal-day.past { color: var(--text-muted); opacity: 0.3; cursor: not-allowed; }
.cal-day.locked { color: #b45309; opacity: 0.5; cursor: pointer; }
.cal-day.locked:hover { opacity: 0.7; color: #92400e; }
.cal-day.today { color: var(--primary); font-weight: 700; }
.cal-day.selected { background: var(--primary); color: white; }
.cal-day.in-range { background: #eff6ff; color: var(--primary); border-radius: 0; }
.cal-day.range-start { border-radius: 6px 0 0 6px; }
.cal-day.range-end { border-radius: 0 6px 6px 0; }
.cal-day.range-locked { color: #b45309; opacity: 0.5; cursor: pointer; }
.cal-day.range-locked:hover { opacity: 0.7; color: #92400e; }
.cal-day.empty { cursor: default; }
.cal-month { flex: 1; min-width: 240px; }
.cal-pro-marker { display:flex; align-items:center; justify-content:center; gap:6px; margin:6px 4px; padding:8px 12px; background:#fefce8; border:1px solid #fde68a; border-radius:8px; font-size:0.75rem; color:#92400e; font-weight:600; }
.cal-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); font-size: 0.75rem; }
.cal-range-info { font-weight: 600; color: var(--text-muted); }
.cal-range-limit { color: var(--text-muted); }
.cal-icon { font-size: 0.9rem; color: var(--text-muted); }
.cal-tooltip {
    position: absolute;
    transform: translate(-50%, -100%);
    background: #1e1b4b;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 60;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Autocomplete */
.ac-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: var(--shadow);
}
.ac-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-card-hover);
}
.ac-item:hover, .ac-item.ac-highlight { background: var(--bg-card-hover); }
.ac-label { display: block; font-weight: 600; font-size: 0.9rem; }
.ac-sub { display: block; font-size: 0.8rem; color: var(--text-muted); }
.ac-item.ac-locked {
    opacity: 0.5;
}
.ac-item.ac-locked:hover { opacity: 0.7; }

/* Cabin Selection */
.cabin-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cabin-opt {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.cabin-opt:hover { border-color: var(--primary); color: var(--primary); }
.cabin-opt.selected { background: var(--primary); border-color: var(--primary); color: white; }
.cabin-opt.locked {
    opacity: 0.5; cursor: pointer;
    background: var(--bg-body);
}
.cabin-opt.locked:hover { opacity: 0.7; border-color: var(--primary); }

/* Notify Toggles */
.notify-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.notify-check {
    flex: 1; display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.75rem;
    border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; cursor: pointer;
    border: 1px solid var(--border); transition: all 0.15s; color: var(--text-muted);
    background: var(--bg-card); user-select: none;
}
.notify-check.active { border-color: var(--primary); color: var(--primary); background: #eff6ff; }
.notify-check.locked {
    opacity: 0.5; cursor: pointer;
    background: var(--bg-body);
}
.notify-check.locked:hover { opacity: 0.7; border-color: var(--primary); }
.notify-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.notify-check.active .notify-dot { background: var(--primary); }
.notify-check:not(.active) .notify-dot { background: var(--text-muted); }

/* Features Section */
.features { padding: 80px 0; border-top: 1px solid var(--border); background: #ffffff; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; text-align: center; }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; display: inline-block; }
.feature-title { font-weight: 700; font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-desc { color: var(--text-muted); font-size: 0.95rem; }

/* Success State */
.success-msg {
    text-align: center;
    padding: 2rem;
    background: #ecfdf5;
    border: 1px solid var(--success);
    border-radius: var(--radius);
    display: none;
}
.success-title { color: var(--success); font-weight: 700; font-size: 1.5rem; margin-bottom: 0.5rem; }

/* Modals */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center; z-index: 200;
}
.modal-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
}
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer;
}
.modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.hidden { display: none; }
.pro-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 800;
    vertical-align: middle;
    margin-left: 4px;
    text-transform: uppercase;
}

/* Toast */
.toast {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: var(--text-main); color: #fff;
    padding: 10px 20px; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.toast.visible { opacity: 1; }

/* How it Works */
.how-section { padding: 80px 0; border-top: 1px solid var(--border); background: #ffffff; }
.section-title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.section-desc { text-align: center; color: var(--text-muted); margin-bottom: 3rem; font-size: 1.05rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-body); transition: transform 0.2s, box-shadow 0.2s; }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-icon { font-size: 2rem; margin-bottom: 0.75rem; display: inline-block; }
.step-num { font-size: 0.7rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Pricing */
.pricing-section { padding: 80px 0; border-top: 1px solid var(--border); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 700px; margin: 0 auto; }
.price-card {
    background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 16px;
    padding: 2rem; position: relative; transition: transform 0.2s;
}
.price-card:hover { transform: translateY(-2px); }
.price-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(59,130,246,0.15); }
.price-badge {
    position: absolute; top: -10px; left: 1.5rem;
    background: var(--primary); color: #fff; font-size: 0.65rem;
    font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 6px;
}
.price-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.price-amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.25rem; }
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.price-features { list-style: none; margin-bottom: 1.5rem; }
.price-features li {
    font-size: 0.9rem; padding: 0.35rem 0; color: var(--text-muted);
    display: flex; align-items: center; gap: 0.5rem;
}
.price-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.price-card.featured .price-features li::before { color: var(--primary); }

/* Additional button styles */
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

/* Pro Strip (above-the-fold compact CTA) */
.pro-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.5rem 0.4rem 1.25rem;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(30,27,75,0.2);
}
.pro-strip-text { display: flex; align-items: center; gap: 0.5rem; }
.pro-strip-btn {
    background: #f59e0b;
    color: #fff;
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}
.pro-strip-btn:hover { background: #d97706; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,0.5); }

/* Free tier limit hint */
.free-limit-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}
.free-limit-hint a { color: var(--primary); font-weight: 600; }

/* Region Search Hint */
.region-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Pro CTA Banner */
.pro-banner { padding: 60px 0; }
.pro-banner-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    color: #fff;
    box-shadow: 0 20px 40px rgba(30, 27, 75, 0.25);
}
.pro-banner-content { flex: 1; }
.pro-banner-content h3 { font-size: 1.75rem; font-weight: 800; margin: 0.75rem 0 0.25rem; letter-spacing: -0.02em; }
.pro-banner-content > p { font-size: 1rem; color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.pro-feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem; }
.pro-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
}
.pro-feature-item strong { color: #fff; }
.pro-feature-check { color: #34d399; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pro-banner-action { flex-shrink: 0; }
.pro-banner-action .btn {
    background: #fff;
    color: #312e81;
    font-weight: 800;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
}
.pro-banner-action .btn:hover { background: #f0f0ff; transform: translateY(-2px); }

/* Footer */
footer { text-align: center; padding: 2rem; font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border); }

/* Modal form inputs */
.modal-card input {
    width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius);
    font-family: inherit; font-size: 0.95rem; margin-bottom: 0.75rem; background: #fff; color: var(--text-main);
}
.modal-card input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .form-grid, .form-row-3 { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .notify-row { flex-direction: column; }
    .cal-panel.open { flex-direction: column; min-width: unset; }
    .pro-banner-card { flex-direction: column; padding: 2rem 1.5rem; gap: 1.5rem; text-align: center; }
    .pro-feature-list { grid-template-columns: 1fr; }
    .pro-feature-item { justify-content: center; }
    .pro-banner-action .btn { width: 100%; }
}