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

:root {
    --primary:   #2d6a4f;
    --primary-dk:#1b4332;
    --accent:    #f4a261;
    --bg:        #f8f9fa;
    --card:      #ffffff;
    --text:      #212529;
    --muted:     #6c757d;
    --border:    #dee2e6;
    --radius:    10px;
    --shadow:    0 2px 12px rgba(0,0,0,.08);
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── Top Nav ── */
.navbar {
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.navbar .brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
    text-decoration: none;
}

/* Burger button */
.burger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Slide-in drawer */
.nav-drawer {
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.45);
    z-index: 99;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s, visibility .25s;
}
.nav-drawer.open { visibility: visible; opacity: 1; }

.nav-menu {
    background: var(--card);
    width: 240px;
    height: 100%;
    padding: 1rem 0;
    box-shadow: 3px 0 16px rgba(0,0,0,.15);
    transform: translateX(-100%);
    transition: transform .25s ease;
}
.nav-drawer.open .nav-menu { transform: translateX(0); }

.nav-menu a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background .15s;
}
.nav-menu a:hover, .nav-menu a.active {
    background: #e8f5e9;
    color: var(--primary);
}
.nav-menu .icon { font-size: 1.2rem; }

/* ── Page content ── */
.page-content {
    padding: 1.25rem 1rem 2rem;
    max-width: 720px;
    margin: 0 auto;
}
.page-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dk);
    margin-bottom: 1.25rem;
}

/* ── Card ── */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

/* ── Form ── */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .35rem;
    color: var(--text);
}
.form-group input,
.form-group select {
    width: 100%;
    padding: .65rem .85rem;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: 1rem;
    color: var(--text);
    background: #fff;
    transition: border-color .2s;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}

/* Radio pills */
.radio-group {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: .35rem;
}
.radio-pill {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .95rem;
    cursor: pointer;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: .45rem 1rem;
    transition: border-color .2s, background .2s;
    user-select: none;
}
.radio-pill input[type=radio] { accent-color: var(--primary); }
.radio-pill:has(input:checked) {
    border-color: var(--primary);
    background: #e8f5e9;
    color: var(--primary-dk);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: .7rem 1.5rem;
    border: none;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); }
.btn-full { width: 100%; text-align: center; }

/* ── Alerts ── */
.alert {
    padding: .75rem 1rem;
    border-radius: 7px;
    margin-bottom: 1rem;
    font-size: .93rem;
}
.alert-success { background: #d1e7dd; color: #0a3622; border: 1px solid #a3cfbb; }
.alert-error   { background: #f8d7da; color: #58151c; border: 1px solid #f1aeb5; }

/* ── Enquiry list cards ── */
.enquiry-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.1rem;
    margin-bottom: .9rem;
    border-left: 4px solid var(--primary);
}
.enquiry-card .eq-phone {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dk);
}
.eq-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .6rem;
    margin-top: .45rem;
}
.badge {
    font-size: .78rem;
    padding: .25rem .65rem;
    border-radius: 20px;
    font-weight: 600;
}
.badge-hall  { background: #e3f2fd; color: #1565c0; }
.badge-meal  { background: #fce4ec; color: #880e4f; }
.badge-date  { background: #f3e5f5; color: #6a1b9a; }
.badge-guest { background: #e8f5e9; color: #1b5e20; }
.badge-room  { background: #fff3e0; color: #e65100; }
.eq-ts { font-size: .78rem; color: var(--muted); margin-top: .4rem; }

.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state .es-icon { font-size: 2.5rem; margin-bottom: .5rem; }

/* ── Home ── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
}
.hero h1 { font-size: 1.5rem; margin-bottom: .4rem; }
.hero p  { opacity: .85; font-size: .95rem; }

.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.quick-link {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow .2s, transform .15s;
}
.quick-link:hover { box-shadow: 0 4px 18px rgba(0,0,0,.13); transform: translateY(-2px); }
.ql-icon  { font-size: 2.2rem; margin-bottom: .5rem; }
.ql-label { font-weight: 600; font-size: .95rem; color: var(--primary-dk); }

/* ── Responsive ── */
@media (min-width: 600px) {
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}
