/* ============================================
   BookMe.online — Main Stylesheet
   Design: Clean Teal + White, WhatsApp Green accents
   ============================================ */

:root {
    --teal: #009688;
    --teal-dark: #00796b;
    --teal-light: #e0f2f1;
    --teal-xlight: #f0faf9;
    --whatsapp: #25D366;
    --whatsapp-dark: #1da851;
    --text-dark: #1a2332;
    --text-medium: #4a5568;
    --text-light: #718096;
    --border: #e2e8f0;
    --bg: #f7fafc;
    --white: #ffffff;
    --red: #e53e3e;
    --red-light: #fff5f5;
    --yellow: #d69e2e;
    --yellow-light: #fffff0;
    --green: #38a169;
    --green-light: #f0fff4;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font: 'Plus Jakarta Sans', sans-serif;
}

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

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

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--teal); color: white; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,150,136,0.3); }
.btn-whatsapp { background: var(--whatsapp); color: white; border-color: var(--whatsapp); font-size: 15px; padding: 13px 26px; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); border-color: var(--whatsapp-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: white; }
.btn-danger { background: var(--red); color: white; border-color: var(--red); }
.btn-danger:hover { background: #c53030; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 13px; color: var(--text-medium); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,150,136,0.1); }
.form-control.error { border-color: var(--red); }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; font-weight: 500; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- CARDS ---- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card-title { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg); border-radius: 0 0 var(--radius) var(--radius); }

/* ---- FLASH MESSAGES ---- */
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin: 16px 24px 0;
    font-weight: 500;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}
.flash-success { background: var(--green-light); color: #276749; border: 1px solid #9ae6b4; }
.flash-error { background: var(--red-light); color: #822727; border: 1px solid #fed7d7; }
.flash-warning { background: var(--yellow-light); color: #744210; border: 1px solid #faf089; }
.flash-close { background: none; border: none; font-size: 18px; cursor: pointer; line-height: 1; color: inherit; opacity: 0.6; }
.flash-close:hover { opacity: 1; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ---- BADGES ---- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-pending { background: #fefcbf; color: #744210; }
.badge-confirmed { background: var(--green-light); color: #276749; }
.badge-completed { background: var(--teal-light); color: var(--teal-dark); }
.badge-cancelled { background: var(--red-light); color: #822727; }

/* ---- TABLES ---- */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); background: var(--bg); border-bottom: 2px solid var(--border); }
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-dark); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--teal-xlight); }

/* ---- AUTH PAGES ---- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal-xlight) 0%, #e8f5e9 100%);
    padding: 24px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 460px;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-icon { font-size: 48px; display: block; margin-bottom: 8px; }
.auth-logo-name { font-size: 28px; font-weight: 800; color: var(--teal); letter-spacing: -0.5px; }
.auth-logo-tagline { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-light); font-size: 14px; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-light); }
.auth-footer a { color: var(--teal); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ---- LANDING PAGE ---- */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-brand { font-size: 22px; font-weight: 800; color: var(--teal); text-decoration: none; letter-spacing: -0.5px; }
.nav-brand span { color: var(--text-dark); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--text-medium); font-weight: 500; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }

.hero {
    padding: 90px 40px 70px;
    text-align: center;
    background: linear-gradient(160deg, var(--teal-xlight) 0%, white 60%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,150,136,0.07) 0%, transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
}
.hero-badge { display: inline-block; background: var(--teal-light); color: var(--teal-dark); padding: 6px 16px; border-radius: 100px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.1; letter-spacing: -2px; margin-bottom: 20px; color: var(--text-dark); }
.hero h1 span { color: var(--teal); }
.hero p { font-size: 18px; color: var(--text-medium); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-demo { margin-top: 60px; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero-demo-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

.section { padding: 80px 40px; }
.section-center { text-align: center; }
.section-badge { display: inline-block; background: var(--teal-light); color: var(--teal-dark); padding: 5px 14px; border-radius: 100px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.section-subtitle { font-size: 16px; color: var(--text-medium); max-width: 540px; margin: 0 auto 48px; line-height: 1.7; }
.container { max-width: 1100px; margin: 0 auto; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { color: var(--text-medium); font-size: 14px; line-height: 1.7; }

/* How It Works */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: 48px; position: relative; }
.step { text-align: center; }
.step-num { width: 52px; height: 52px; background: var(--teal); color: white; border-radius: 50%; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step-title { font-weight: 700; margin-bottom: 8px; font-size: 16px; }
.step-desc { color: var(--text-medium); font-size: 14px; line-height: 1.6; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 48px; }
.pricing-card { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; transition: all 0.2s; }
.pricing-card.featured { border-color: var(--teal); position: relative; }
.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--teal); color: white; padding: 4px 16px; border-radius: 100px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.pricing-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.pricing-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 8px; }
.pricing-price { font-size: 42px; font-weight: 800; color: var(--text-dark); letter-spacing: -2px; margin-bottom: 4px; }
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-light); }
.pricing-period { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; text-align: left; }
.pricing-features li { padding: 7px 0; font-size: 14px; color: var(--text-medium); border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border: none; }
.pricing-features li::before { content: '✓ '; color: var(--teal); font-weight: 700; }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); padding: 80px 40px; text-align: center; color: white; }
.cta-section h2 { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.cta-section p { font-size: 17px; opacity: 0.9; margin-bottom: 32px; }
.btn-white { background: white; color: var(--teal); border-color: white; }
.btn-white:hover { background: var(--teal-light); border-color: var(--teal-light); }

/* Footer */
.site-footer { background: var(--text-dark); color: rgba(255,255,255,0.6); padding: 40px; text-align: center; font-size: 14px; }
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }

/* ---- BOOKING PAGE (Public) ---- */
.booking-page { min-height: 100vh; background: var(--bg); }
.booking-header { background: var(--teal); color: white; padding: 32px 24px; text-align: center; }
.booking-business-logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.3); margin-bottom: 12px; }
.booking-business-avatar { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: white; margin: 0 auto 12px; }
.booking-business-name { font-size: 26px; font-weight: 800; }
.booking-business-bio { opacity: 0.9; font-size: 14px; margin-top: 6px; }
.booking-container { max-width: 560px; margin: -24px auto 40px; padding: 0 16px; }
.booking-steps { display: flex; gap: 0; margin-bottom: 24px; }
.booking-step-tab { flex: 1; padding: 12px; text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); border-bottom: 3px solid var(--border); transition: all 0.2s; }
.booking-step-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.booking-step-tab.done { color: var(--green); border-bottom-color: var(--green); }

.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-option { border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 16px; cursor: pointer; transition: all 0.2s; background: var(--white); text-align: left; }
.service-option:hover { border-color: var(--teal); background: var(--teal-xlight); }
.service-option.selected { border-color: var(--teal); background: var(--teal-light); }
.service-option-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.service-option-meta { font-size: 12px; color: var(--text-light); }
.service-option-price { font-size: 13px; font-weight: 700; color: var(--teal); margin-top: 6px; }

.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-btn { padding: 10px 8px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--white); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; color: var(--text-dark); }
.slot-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.slot-btn.selected { border-color: var(--teal); background: var(--teal); color: white; }
.slot-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.no-slots { text-align: center; padding: 32px; color: var(--text-light); font-size: 14px; }

/* Calendar */
.mini-calendar { user-select: none; }
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-month { font-weight: 700; font-size: 15px; }
.cal-nav { background: none; border: 1px solid var(--border); border-radius: 6px; width: 30px; height: 30px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.cal-nav:hover { background: var(--teal); color: white; border-color: var(--teal); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day-name { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-light); padding: 6px 0; text-transform: uppercase; }
.cal-day { text-align: center; padding: 8px 4px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; border: 2px solid transparent; }
.cal-day:hover:not(.disabled):not(.other-month) { background: var(--teal-light); color: var(--teal-dark); }
.cal-day.selected { background: var(--teal); color: white; font-weight: 700; }
.cal-day.today { border-color: var(--teal); color: var(--teal); font-weight: 700; }
.cal-day.disabled { color: var(--border); cursor: not-allowed; }
.cal-day.other-month { color: var(--border); cursor: default; }

/* Summary box */
.booking-summary { background: var(--teal-xlight); border: 1px solid var(--teal-light); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 20px; font-size: 14px; }
.booking-summary-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--teal-light); }
.booking-summary-row:last-child { border: none; font-weight: 700; }
.booking-summary-label { color: var(--text-medium); }
.booking-summary-value { font-weight: 600; color: var(--text-dark); }

/* Confirmation screen */
.confirm-screen { text-align: center; padding: 32px 24px; }
.confirm-icon { font-size: 64px; margin-bottom: 16px; display: block; }
.confirm-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.confirm-subtitle { color: var(--text-medium); font-size: 15px; margin-bottom: 28px; line-height: 1.7; }

/* Booking page service cards with images */
.service-option-has-img { padding: 0; overflow: hidden; }
.service-option-img { width: 100%; height: 120px; object-fit: cover; display: block; border-radius: 6px 6px 0 0; transition: transform 0.3s ease; }
.service-option:hover .service-option-img { transform: scale(1.04); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .landing-nav { padding: 0 20px; }
    .nav-links .btn:not(.btn-outline) { display: none; }
    .hero, .section { padding-left: 20px; padding-right: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .slots-grid { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { letter-spacing: -1px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .cta-section { padding: 60px 20px; }
    .cta-section h2 { font-size: 28px; }
}
@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
    .pricing-grid { grid-template-columns: 1fr; }
}
