/* ===================================
   Variables - Villa Azumino Dark Theme
   =================================== */

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #141414;
    --accent-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --gold-primary: #d4af37;
    --gold-secondary: #c9a961;
    --copper: #b87333;
    --border-gold: rgba(212, 175, 55, 0.3);
    --border-dark: rgba(255, 255, 255, 0.1);
}

/* ===================================
   Reset & Base Styles
   =================================== */

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

body {
    font-family: 'Noto Serif JP', serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.8;
    font-weight: 300;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* ===================================
   Header
   =================================== */

.header {
    background: var(--secondary-bg);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 400;
    color: var(--gold-primary);
    text-decoration: none;
    letter-spacing: 0.1em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.back-link:hover {
    color: var(--gold-primary);
}

.back-link i {
    font-size: 1rem;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-btn {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Noto Serif JP', serif;
}

.language-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.language-btn .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.language-btn.active .fa-chevron-down {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--secondary-bg);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
}

.language-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

.language-option:not(:last-child) {
    border-bottom: 1px solid var(--border-dark);
}

.language-option.active {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

/* ===================================
   Main Content
   =================================== */

.booking-main {
    padding: 6rem 0;
    min-height: calc(100vh - 200px);
}

.booking-header {
    text-align: center;
    margin-bottom: 6rem;
}

.booking-header h1 {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.12em;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 2;
    font-weight: 300;
}

/* ===================================
   Booking Content Layout
   =================================== */

.booking-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

/* ===================================
   Form Section
   =================================== */

.booking-form-section {
    background: var(--secondary-bg);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 4rem;
}

.form-section {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-dark);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h2 {
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-section h2 i {
    font-size: 1.5rem;
}

/* Form Groups */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: var(--primary-bg);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Noto Serif JP', serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.form-group small {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Number Input */

.number-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.number-input button {
    width: 40px;
    height: 40px;
    background: var(--primary-bg);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    font-size: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.number-input button:hover {
    background: var(--gold-primary);
    color: var(--primary-bg);
}

.number-input input {
    flex: 1;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
}

/* Display Elements */

.nights-display,
.total-guests {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--accent-bg);
    border-left: 3px solid var(--gold-primary);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.nights-display span,
.total-guests span {
    color: var(--gold-primary);
    font-weight: 400;
    font-size: 1.3rem;
}

.pet-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(184, 115, 51, 0.1);
    border: 1px solid var(--copper);
    border-radius: 4px;
    color: var(--copper);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Children Ages Section */

.children-ages-section {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--accent-bg);
    border-radius: 4px;
}

.children-ages-section label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

#childrenAgesInputs {
    display: grid;
    gap: 1rem;
}

.child-age-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.child-age-group label {
    margin: 0;
    min-width: 100px;
}

.child-age-group select {
    flex: 1;
    padding: 0.8rem 1.2rem;
    background: var(--primary-bg);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Noto Serif JP', serif;
}

/* Terms Checkbox */

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.terms-checkbox label {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.terms-checkbox a {
    color: var(--gold-primary);
    text-decoration: underline;
}

.terms-checkbox a:hover {
    color: var(--gold-secondary);
}

/* Submit Button */

.submit-button {
    width: 100%;
    padding: 1.8rem 3rem;
    margin-top: 2rem;
    background: var(--gold-primary);
    color: var(--primary-bg);
    border: none;
    border-radius: 4px;
    font-size: 1.3rem;
    font-weight: 500;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.submit-button:hover {
    background: var(--gold-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.submit-button i {
    font-size: 1.2rem;
}

.form-notice {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Policy Links */
.policy-links {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--accent-bg);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    text-align: center;
}

.policy-links p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.policy-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.policy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--secondary-bg);
    border: 1px solid var(--gold-primary);
    border-radius: 4px;
    color: var(--gold-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.policy-link:hover {
    background: var(--gold-primary);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.policy-link i {
    font-size: 1.1rem;
}

/* ===================================
   Price Summary
   =================================== */

.price-summary {
    position: sticky;
    top: 120px;
}

.price-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.price-card h3 {
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-align: center;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-dark);
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.price-item:last-of-type {
    border-bottom: none;
}

.price-item .price {
    color: var(--text-primary);
    font-weight: 400;
    font-size: 1.1rem;
}

.price-divider {
    height: 1px;
    background: var(--gold-primary);
    margin: 2rem 0;
}

.price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.total-price {
    color: var(--gold-primary);
    font-size: 2rem;
    font-weight: 500;
}

.price-breakdown {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--accent-bg);
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.price-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--gold-primary);
    display: flex;
    gap: 1rem;
}

.price-note i {
    color: var(--gold-primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.price-note p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Contact Card */

.contact-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
}

.contact-card h4 {
    font-size: 1.3rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--text-primary);
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 400;
}

.contact-info a:hover {
    color: var(--gold-primary);
}

.contact-hours {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-gold);
    padding: 3rem 0;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===================================
   Success Modal
   =================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--secondary-bg);
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    padding: 4rem;
    max-width: 600px;
    text-align: center;
}

.modal-icon {
    color: var(--gold-primary);
    font-size: 5rem;
    margin-bottom: 2rem;
}

.modal-content h2 {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.modal-email {
    color: var(--text-primary);
}

.modal-email strong {
    color: var(--gold-primary);
}

.modal-button {
    margin-top: 2rem;
    padding: 1.2rem 3rem;
    background: var(--gold-primary);
    color: var(--primary-bg);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Noto Serif JP', serif;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-button:hover {
    background: var(--gold-secondary);
}

/* ===================================
   Flatpickr Custom Styles
   =================================== */

.flatpickr-calendar {
    background: var(--secondary-bg) !important;
    border: 1px solid var(--border-gold) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.flatpickr-day {
    color: var(--text-primary) !important;
}

.flatpickr-day.selected {
    background: var(--gold-primary) !important;
    border-color: var(--gold-primary) !important;
    color: var(--primary-bg) !important;
}

.flatpickr-day:hover {
    background: var(--accent-bg) !important;
    border-color: var(--gold-secondary) !important;
}

.flatpickr-day.blocked-date {
    background: #f44336 !important;
    color: white !important;
    position: relative;
}

.flatpickr-day.blocked-date:hover {
    background: #d32f2f !important;
    border-color: #f44336 !important;
}

.flatpickr-day.blocked-date::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: bold;
}

.flatpickr-day.booked-date {
    background: rgba(212, 175, 55, 0.3) !important;
    color: var(--gold-primary) !important;
}

.flatpickr-day.booked-date:hover {
    background: rgba(212, 175, 55, 0.5) !important;
}

/* ===================================
   Responsive Design
   =================================== */

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

    .price-summary {
        position: static;
    }
}

@media (max-width: 968px) {
    .container {
        padding: 0 2rem;
    }

    .booking-header h1 {
        font-size: 2.5rem;
    }

    .booking-form-section {
        padding: 3rem 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .price-card {
        padding: 2rem;
    }
}

/* ===================================
   Price Confirmation Section
   =================================== */

.price-confirmation {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(201, 169, 97, 0.15) 100%);
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    padding: 2.5rem;
    margin: 4rem 0 2rem 0;
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.2);
}

.price-confirmation h2 {
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.confirmation-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    padding: 3rem 2rem;
    text-align: center;
}

.confirmation-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.conf-total-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

.conf-total-value {
    color: var(--gold-primary);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.confirmation-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--accent-bg);
    border-left: 3px solid var(--gold-primary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.confirmation-note i {
    color: var(--gold-primary);
    margin-right: 0.5rem;
}

@media (max-width: 640px) {
    .header .container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .logo {
        font-size: 1.5rem;
        width: 100%;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }

    .language-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .back-link {
        font-size: 1rem;
    }

    .booking-main {
        padding: 4rem 0;
    }

    .booking-header {
        margin-bottom: 4rem;
    }

    .booking-header h1 {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    .booking-form-section {
        padding: 2rem 1.5rem;
    }

    .form-section {
        margin-bottom: 3rem;
        padding-bottom: 3rem;
    }

    .form-section h2 {
        font-size: 1.4rem;
    }

    .price-card {
        padding: 1.5rem;
    }

    .price-card h3 {
        font-size: 1.5rem;
    }

    .submit-button {
        font-size: 1.1rem;
        padding: 1.5rem 2rem;
    }

    .price-confirmation {
        padding: 1.5rem;
        margin: 3rem 0 1.5rem 0;
    }

    .price-confirmation h2 {
        font-size: 1.3rem;
    }

    .confirmation-card {
        padding: 2rem 1.5rem;
    }

    .conf-total-label {
        font-size: 1rem;
    }

    .conf-total-value {
        font-size: 2.2rem;
    }

    .policy-links {
        padding: 1.5rem;
    }

    .policy-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .policy-link {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}
