* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
}

body {
    background: #f5f7fb;
    color: #1f2937;
    line-height: 1.6;
}

.booking-page {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.hero {
    background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6);
    color: white;
    padding: 48px 20px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.18);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 2px;
    opacity: 0.85;
    margin-bottom: 8px;
}

.hero h1 {
    font-size: 38px;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 16px;
    opacity: 0.92;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: .2s;
}

.secondary-btn {
    background: rgba(255,255,255,0.16);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.24);
}

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

.booking-layout {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 20px;
    align-items: start;
}

.card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #eef2f7;
}

.calendar-card {
    min-height: 640px;
}

.info-card {
    position: sticky;
    top: 20px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.topbar h1 {
    font-size: 28px;
}

.topbar a,
a button,
button,
.primary,
.secondary,
.danger {
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 14px;
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 600;
    transition: .2s ease;
}

.topbar a,
.primary {
    background: #2563eb;
    color: #fff;
}

.topbar a:hover,
.primary:hover {
    background: #1d4ed8;
}

.secondary {
    background: #e5e7eb;
    color: #111827;
}

.secondary:hover {
    background: #d1d5db;
}

.danger {
    background: #dc2626;
    color: #fff;
}

.danger:hover {
    background: #b91c1c;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.calendar-title {
    font-size: 24px;
    font-weight: 700;
}

.calendar-header button {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.calendar-header button:hover {
    background: #dbeafe;
}

.calendar-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-size: 14px;
    color: #4b5563;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-right: 8px;
}

.available-dot { background: #22c55e; }
.booked-dot { background: #f59e0b; }
.blocked-dot { background: #ef4444; }

.weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.weekdays div {
    text-align: center;
    font-weight: 700;
    padding: 10px 0;
    color: #6b7280;
}

.day-cell {
    min-height: 105px;
    border-radius: 18px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: .2s;
}

.clickable-day:hover,
.day-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.day-number {
    font-size: 18px;
    font-weight: 700;
}

.day-status {
    font-size: 13px;
    opacity: 0.9;
}

.day-cell.available {
    border-left: 5px solid #22c55e;
    background: #f0fdf4;
}

.day-cell.booked {
    border-left: 5px solid #f59e0b;
    background: #fffbeb;
}

.day-cell.blocked {
    border-left: 5px solid #ef4444;
    background: #fef2f2;
}

.day-cell.past {
    background: #f3f4f6;
    color: #9ca3af;
}

.day-cell.empty {
    background: transparent;
    border: none;
    box-shadow: none;
}

.info-panel {
    margin-top: 12px;
    padding: 22px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    min-height: 220px;
}

.selected-date {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
}

.status-pill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.available-pill {
    background: #dcfce7;
    color: #166534;
}

.booked-pill {
    background: #fef3c7;
    color: #92400e;
}

.blocked-pill {
    background: #fee2e2;
    color: #991b1b;
}

.past-pill {
    background: #e5e7eb;
    color: #4b5563;
}

.booking-action-btn {
    display: inline-block;
    margin-top: 16px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    padding: 13px 18px;
    border-radius: 14px;
    font-weight: 700;
}

.booking-action-btn:hover {
    background: #1d4ed8;
}

.info-empty-icon {
    font-size: 56px;
    margin-top: 24px;
    opacity: 0.35;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.inline-form input,
.inline-form select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font-size: 15px;
    background: #fff;
}

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

.inline-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-form input,
.inline-form select {
    flex: 1;
    min-width: 180px;
}

.message {
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 600;
}

.success {
    background: #dcfce7;
    color: #166534;
}

.error {
    background: #fee2e2;
    color: #991b1b;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

th, td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f9fafb;
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e5e7eb;
    font-size: 13px;
    font-weight: 700;
}

.badge.booking {
    background: #fef3c7;
    color: #92400e;
}

.badge.event {
    background: #fee2e2;
    color: #991b1b;
}

small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
}

@media (max-width: 960px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }

    .info-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 34px 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .calendar-title {
        font-size: 20px;
    }

    .day-cell {
        min-height: 85px;
        padding: 10px;
    }

    .day-number {
        font-size: 16px;
    }

    .day-status {
        font-size: 12px;
    }

    .card {
        padding: 18px;
        border-radius: 18px;
    }

    .topbar h1 {
        font-size: 22px;
    }
}