:root {
    --primary-color: #434190;
    --accent-color: #5a67d8;
    --accent-deep: #434190;
    --accent-hover: #4c51bf;
    --success-color: #48bb78;
    --error-color: #e53e3e;
    --text-primary: #2d3748;
    --text-secondary: #5a6578;
    --border-color: #cdd5e8;
    --bg-light: #eef2f9;
    --bg-white: #f6f8fc;
    --blue-tint: #e4eaf8;
    --shadow: 0 4px 6px -1px rgba(67, 65, 144, 0.1), 0 2px 4px -1px rgba(67, 65, 144, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        linear-gradient(160deg, #dde4f2 0%, #e8edf8 35%, #e2e9f6 70%, #d8e0f0 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
}

.booking-container {
    max-width: 960px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 20px 50px -12px rgba(67, 65, 144, 0.2);
    border: 1px solid rgba(90, 103, 216, 0.18);
    overflow: hidden;
}

.booking-header {
    background: linear-gradient(135deg, #434190 0%, #5a67d8 50%, #667eea 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.booking-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.booking-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.booking-form {
    padding: 30px;
    background: var(--bg-light);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.form-section h2 {
    font-size: 1.1rem;
    color: var(--accent-deep);
    margin-bottom: 16px;
    font-weight: 600;
}

/* Reading Options */
.reading-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 720px) {
    .reading-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

.form-section:last-of-type {
    border-bottom: none;
}

.reading-option.featured .option-card {
    border-color: rgba(90, 103, 216, 0.45);
    background: #fafbff;
}

.reading-option.gold .option-card {
    border-color: rgba(214, 158, 46, 0.5);
    background: linear-gradient(180deg, rgba(214,158,46,0.06), transparent);
}

.option-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.reading-option.gold .option-badge {
    color: #b7791f;
}

.option-card .price .per {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.reading-option input {
    display: none;
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: var(--bg-white);
}

.reading-option input:checked + .option-card {
    border-color: var(--accent-color);
    background: var(--blue-tint);
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.22);
}

.option-card:hover {
    border-color: var(--accent-color);
}

.option-card .duration {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.option-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-deep);
    margin: 8px 0;
}

.option-card .desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Calendar Styles */
.calendar-container {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-header span {
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-btn {
    background: var(--accent-deep);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: var(--accent-hover);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: rgba(102, 126, 234, 0.1);
}

.calendar-day.selected {
    background: var(--accent-deep);
    color: white;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.today {
    border: 2px solid var(--accent-deep);
}

/* Time Slots */
.time-slots-container {
    margin-top: 20px;
}

.time-slots-container h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.time-slot {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.time-slot:hover {
    border-color: var(--accent-color);
    background: rgba(102, 126, 234, 0.05);
}

.time-slot.selected {
    background: var(--accent-deep);
    color: white;
    border-color: var(--accent-deep);
}

/* Order Summary */
.order-summary {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px !important;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-deep);
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--border-color);
}

.reading-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 12px;
    text-align: center;
    font-style: italic;
}

/* Payment Options */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.payment-option input {
    display: none;
}

.payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.payment-option input:checked + .payment-card {
    border-color: var(--accent-color);
    background: var(--blue-tint);
}

.payment-card:hover {
    border-color: var(--accent-color);
}

.payment-card img {
    height: 40px;
    object-fit: contain;
}

.payment-card span {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #434190 0%, #5a67d8 55%, #667eea 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(67, 65, 144, 0.35);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    display: none;
    text-align: center;
}

.alert.show {
    display: block;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #fc8181;
}

.alert-success {
    background: #c6f6d5;
    color: #276749;
    border: 1px solid #68d391;
}

/* Contact Info */
.contact-info {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.contact-info a {
    color: var(--accent-deep);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-header {
        padding: 22px 16px;
    }

    .booking-form {
        padding: 22px 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .reading-options,
    .payment-options {
        grid-template-columns: 1fr;
    }

    .option-card {
        padding: 16px 14px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .booking-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .reading-options,
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .booking-header h1 {
        font-size: 1.5rem;
    }
}

.site-footer {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.site-footer .copy {
    margin-top: 0.35rem;
    opacity: 0.85;
}

.site-footer a {
    color: var(--accent-deep);
}
