/* Base Styles */
:root {
    --primary-color: #2563eb;
    /* Blue */
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    /* Slate */
    --accent-color: #10b981;
    /* Emerald */
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 1;
}

/* Header */
.header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
}

.logo .dot {
    color: var(--primary-color);
}

.logo img {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    /* background: linear-gradient(135deg, #1b8550 0%, #f0f9ff 100%); */
    color: #fff;
    background-color: #344F1F;
}

.hero-title {
    font-family: serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    /* color: var(--text-muted); */
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: #F4991A;
    color: white;
}

.btn-primary:hover {
    background-color: #fff;
    color: #F4991A;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #f1f5f9;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #059669;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.btn-icon:hover {
    background-color: #f1f5f9;
}

/* Booking Section */
.booking-section {
    padding: 4rem 0;
}

.hidden {
    display: none;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border-color);
    z-index: 0;
    transform: translateY(-50%);
}

.step {
    background-color: var(--background-color);
    padding: 0.5rem 1rem;
    z-index: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.step.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Booking Container */
.booking-container {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    min-height: 400px;
}

.booking-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.booking-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Calendar */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-header {
    font-weight: 600;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.calendar-day {
    padding: 1rem 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.calendar-day:hover:not(.disabled) {
    background-color: #eff6ff;
    color: var(--primary-color);
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
}

.calendar-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 1px solid var(--primary-color);
}

/* Time Slots */
.selected-date-display {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.time-slot {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.time-slot.disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.time-slot.limited {
    border-color: #f59e0b;
    /* Amber */
    color: #d97706;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group.half {
    flex: 1;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    background-color: white;
    /* Ensure basic select styling */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.custom-radio {
    cursor: pointer;
    flex: 1;
}

.custom-radio input[type="radio"] {
    display: none;
}

.custom-radio .radio-label {
    display: block;
    text-align: center;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: white;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.custom-radio:hover .radio-label {
    border-color: var(--primary-color);
    background-color: #eff6ff;
    color: var(--primary-color);
}

.custom-radio input[type="radio"]:checked + .radio-label {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.form-hint {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.required {
    color: #ef4444;
}

/* Confirmation */
.confirmation-details {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-row .value {
    font-weight: 600;
    text-align: right;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Success */
.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Footer & Cards */
.footer {
    padding: 3rem 0 1.5rem;
}

.footer-cards {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-card {
    flex: 1;
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: left;
    border: 1px solid var(--border-color);
}

.footer-card h4 {
    font-family: serif;
    margin-bottom: 1rem;
    color: #344F1F;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.footer-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .progress-bar {
        display: none;
        /* Simplify on mobile if needed, or adjust */
    }

    .booking-container {
        padding: 1.5rem;
    }

    .logo img {
        height: 40px;
    }

    .footer-cards {
        flex-direction: column;
        gap: 1.5rem;
    }
}