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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #5a7a5a;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
}

.calendar-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
}

h1 {
    color: white;
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 300;
}

.calendar-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(136px, 172px) minmax(280px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.calendar {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px;
}

.calendar-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    font-size: 20px;
    width: 44px;
    height: 44px;
    line-height: 1;
}

.calendar-header button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-header span {
    font-size: 16px;
    text-align: center;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.weekday {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    padding: 0 2px;
}

.day {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.5);
    justify-self: center;
}

.day.other-month {
    color: rgba(255, 255, 255, 0.2);
}

.day.today {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.day.has-slots {
    background: white;
    color: #333;
    font-weight: 600;
}

.day.has-slots:hover {
    background: #f0f0f0;
}

.day.selected {
    background: white;
    color: #333;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.day.past-day {
    opacity: 0.3;
    cursor: not-allowed !important;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.day.fully-booked {
    background: rgba(220, 53, 69, 0.3);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed !important;
    position: relative;
    pointer-events: none;
}

.day.fully-booked::after {
    content: '✕';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    color: #ff6b6b;
    font-weight: bold;
}

.time-slots-wrapper {
    color: white;
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 8px 0;
}

.utc-label {
    background: transparent;
    padding: 0 6px;
    border-radius: 0;
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    text-align: center;
    opacity: 0.7;
}

#timeSlots {
    max-height: 420px;
    overflow-y: auto;
}

.time-slot {
    background: rgba(255, 255, 255, 0.3);
    padding: 10px 11px;
    border-radius: 999px;
    margin-bottom: 9px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.time-slot.selected {
    background: white;
    color: #333;
}

.time-slot.booked {
    background: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
    opacity: 0.6;
    text-align: center;
}

.time-slot.booked:hover {
    background: rgba(255, 255, 255, 0.15);
}

.time-slot-time {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    text-align: center;
}

.time-slot-theme {
    font-size: 11px;
    opacity: 0.8;
    text-align: center;
}

.time-slot-duration {
    font-size: 11px;
    margin-top: 3px;
    opacity: 0.7;
    text-align: center;
}

.reservation-visual {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.reservation-visual-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    object-fit: cover;
}

.reservation-visual-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(19, 19, 19, 0.08) 0%, rgba(19, 19, 19, 0.72) 100%);
    color: white;
    backdrop-filter: blur(10px);
}

.reservation-visual-caption h2 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
}

.reservation-visual-caption p {
    font-size: 13px;
    line-height: 1.55;
    opacity: 0.9;
}

.bottom-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.profile-box, .form-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
}

.profile-box {
    text-align: center;
    color: white;
}

.profile-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 16px;
    margin: 0 auto 20px;
    display: block;
}

.profile-box h2 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 400;
}

.profile-box p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.form-box {
    color: white;
}

.form-box h2 {
    font-size: 24px;
    margin-bottom: 24px;
    font-weight: 400;
}

.booking-summary {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.booking-summary h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

.booking-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-summary-item:last-child {
    border-bottom: none;
}

.booking-summary-label {
    opacity: 0.8;
}

.booking-summary-value {
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    font-family: inherit;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

textarea {
    resize: none;
    margin-bottom: 16px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #111111;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover:not(:disabled) {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollbar */
#timeSlots::-webkit-scrollbar {
    width: 6px;
}

#timeSlots::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#timeSlots::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

#timeSlots::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Notification Toast */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 500px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification.hide {
    animation: slideOut 0.3s ease-in forwards;
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #333;
}

/* Responsive */
@media (max-width: 968px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-section {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* Responsive hardening: public layout */
:root {
    --pb-page-padding: 20px;
}

body {
    padding: var(--pb-page-padding);
    overflow-x: hidden;
}

.main-footer,
.footer-promo {
    margin-left: calc(-1 * var(--pb-page-padding));
    margin-right: calc(-1 * var(--pb-page-padding));
}

.container {
    margin: 28px auto;
}

@media (max-width: 1200px) {
    .container {
        margin: 22px auto;
    }

    .calendar-grid {
        gap: 24px;
    }

    .bottom-section {
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .calendar-box,
    .profile-box,
    .form-box {
        padding: 28px;
        border-radius: 18px;
    }

    h1 {
        font-size: 30px;
        margin-bottom: 24px;
    }

    .calendar-grid,
    .bottom-section,
    .form-row {
        grid-template-columns: 1fr;
    }

    .time-slot-time {
        font-size: 17px;
    }

    .reservation-visual {
        min-height: 300px;
    }

    .reservation-visual-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --pb-page-padding: 12px;
    }

    .container {
        margin: 14px auto;
    }

    .calendar-box,
    .profile-box,
    .form-box {
        padding: 18px;
        border-radius: 14px;
    }

    h1 {
        font-size: clamp(24px, 6vw, 30px);
        margin-bottom: 20px;
    }

    .calendar,
    .time-slots-wrapper {
        padding: 14px;
        border-radius: 12px;
    }

    .reservation-visual {
        border-radius: 12px;
    }

    .weekdays,
    .days {
        gap: 6px;
        padding: 0;
    }

    .weekday {
        font-size: 11px;
    }

    .day {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .calendar-header {
        margin-bottom: 14px;
    }

    .calendar-header button {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .calendar-header span {
        font-size: 15px;
    }

    .booking-summary-item {
        gap: 10px;
        flex-wrap: wrap;
    }

    input,
    textarea,
    select,
    .submit-btn {
        font-size: 16px;
    }

    #timeSlots {
        max-height: 320px;
    }

    .reservation-visual-image {
        min-height: 260px;
    }

    .reservation-visual-caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 14px;
    }

    .reservation-visual-caption h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --pb-page-padding: 10px;
    }

    .calendar-box,
    .profile-box,
    .form-box {
        padding: 14px;
        border-radius: 12px;
    }

    .day {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .time-slot {
        padding: 12px 14px;
    }

    .time-slot-time {
        font-size: 16px;
    }

    .booking-summary {
        padding: 14px;
    }

    .reservation-visual-image {
        min-height: 220px;
    }

    .reservation-visual-caption h2 {
        font-size: 18px;
    }

    .reservation-visual-caption p {
        font-size: 12px;
    }

    .notification {
        padding: 14px;
        border-radius: 10px;
        gap: 10px;
    }

    .notification-title {
        font-size: 15px;
    }

    .notification-message {
        font-size: 13px;
    }
}
