/* === Booking System Styles === */

/* --- Container Styles --- */
.booking-system {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 992px) {
    .booking-system {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Card Styles --- */
.booking-info, .booking-form {
    background: #AEACA0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-info:hover, .booking-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* --- Google Calendar Styles --- */
.booking-form .calendar-iframe {
    width: 100%;
    height: 750px; /* Megnövelt alapértelmezett magasság */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 1rem 0;
    transition: all 0.3s ease;
    overflow: visible;
}

/* --- Card Styles --- */
.booking-info, .booking-form {
    background: #AEACA0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-info:hover, .booking-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* --- Heading Styles --- */
.booking-form h3 {
    margin-bottom: 1.5rem;
    color: #1F1206;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.booking-form h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #442E18;
    transition: width 0.3s ease;
}

.booking-form:hover h3:after {
    width: 100%;
}

/* --- Google Calendar Styles --- */
.booking-form .calendar-iframe {
    width: 100%;
    height: 100vh;
    min-height: 1500px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 1rem 0;
    transition: all 0.3s ease;
    overflow: visible;
}

.booking-form .calendar-iframe::-webkit-scrollbar-thumb {
    background: #9A845F;
    border-radius: 8px;
}

.booking-form .calendar-iframe::-webkit-scrollbar-thumb:hover {
    background: #442E18;
}

/* --- Loading State --- */
.booking-form .loading-indicator {
    text-align: center;
    padding: 2rem;
    color: #442E18;
    display: none;
}

.booking-form.loading .loading-indicator {
    display: block;
}

.booking-form.loading iframe {
    display: none;
}

/* --- Booking Rules --- */
.booking-rules {
    margin-bottom: 2rem;
}

.booking-rules h4 {
    color: #442E18;
    margin: 1.5rem 0 0.5rem;
    font-weight: 600;
}

.booking-rules p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #1F1206;
}

/* --- Buttons --- */
.btn-secondary {
    background: #AEACA0;
    color: #1F1206;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: #9A845F;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 43, 16, 0.3);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .booking-system {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .booking-info, .booking-form {
        padding: 1.5rem;
    }

    .booking-form h3 {
        font-size: 1.25rem;
    }

    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* --- Accessibility --- */
.booking-form {
    font-size: 1rem;
    line-height: 1.6;
    color: #1F1206;
}

.booking-form a {
    color: #442E18;
    text-decoration: none;
    transition: color 0.3s ease;
}

.booking-form a:hover {
    color: #9A845F;
    text-decoration: underline;
}

/* --- Error State --- */
.booking-form .error-message {
    display: none;
    text-align: center;
    padding: 1rem;
    color: #B91C1C;
    background-color: #FEE2E2;
    border-radius: 6px;
    margin: 1rem 0;
}

.booking-form.error .error-message {
    display: block;
}

/* --- Focus States --- */
.booking-form *:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 43, 16, 0.3);
}

/* --- Print Styles --- */
@media print {
    .booking-system {
        grid-template-columns: 1fr;
    }

    .booking-form iframe {
        page-break-inside: avoid;
    }
}