body {
    margin: 0;
    padding: 0;
    background: url("../image/Camperbus06.png") no-repeat center center fixed;
    background-size: cover;
    font-family: 'Advent Pro', sans-serif;
}

.agenda {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.agenda h2 {
    color: white;
}

.calendar {
    background: rgba(30, 30, 30, 0.85);
    padding: 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    width: clamp(280px, 30vw, 360px);
}

#calendarContainer {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin: 0 auto;
}

.cal-header {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.cal-header button {
    background: #333;
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.4rem;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day-name {
    font-weight: 600;
    opacity: 0.8;
}

.day {
    background: #333;
    height: 30px;
    line-height: 30px;
    padding: 0;
    border-radius: 8px;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.day.disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
}

.day.available {
    background: orange;
    color: #111;
    font-weight: 600;
    cursor: pointer;
}

.day.available:hover {
    background: #27ae60;
}

.day.selected {
    outline: 3px solid #ffcc00;
    background-color: inherit !important;
    color: inherit !important;
}

.day.selected::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 204, 0, 0.35);
    border-radius: 8px;
    z-index: 0;
}

.day.booked {
    background: orange;
    color: white;
    opacity: 0.6;
    cursor: not-allowed;
}

.day.free {
    background-color: #4CAF50; /* groen */
    color: white;
}

.day.partial {
    background-color: orange; /* oranje */
    color: white;
}

.day.full {
    background-color: red; /* rood */
    color: white;
}

/* ----------------------------- */
/* RESERVERINGSFORMULIER        */
/* ----------------------------- */

.reservation-box {
    background: rgba(30, 30, 30, 0.85);
    padding: 25px 30px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    max-width: 600px;
    margin: 40px auto 0 auto;
    text-align: left;
    box-sizing: border-box;
}

.reservation-box h3 {
    margin-top: 0;
    text-align: center;
}

/* Alle invoervelden exact gelijk */
#reservationForm input,
#reservationForm textarea {
    width: 100%;
    box-sizing: border-box;      /* padding telt mee → perfecte uitlijning */
    padding: 12px 14px;          /* gelijke binnenruimte links/rechts */
    margin: 0 0 15px 0;          /* geen afwijkende marge links/rechts */
    border-radius: 8px;
    border: none;
    background: #333;
    color: white;
    font-size: 1rem;
}

/* Input hoogte */
#reservationForm input {
    height: 38px;
}

/* Tekstvak hoogte */
#reservationForm textarea {
    min-height: 80px;
}

/* Knop */
#reservationForm button {
    width: 100%;
    padding: 14px;
    background: #2ecc71;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: #111;
}

#reservationForm button:hover {
    background: #27ae60;
}

/* Kleine info tekst */
.info-small {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: -10px;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* ----------------------------- */
/* MOBIEL                        */
/* ----------------------------- */

@media (max-width: 768px) {

    #calendarContainer {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
    }

    .calendar {
        width: 90% !important;
        max-width: 420px;
    }

    .reservation-box {
        width: 90% !important;
        max-width: 420px;   /* zelfde breedte als .calendar */
        margin: 20px auto 0 auto;
        padding: 25px;
        box-sizing: border-box;
    }
}

/* Popup overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Popup box */
.popup-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    animation: fadeIn 0.25s ease-out;
}

.popup-box h2 {
    margin-bottom: 10px;
}

.popup-box button {
    margin-top: 20px;
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.popup-box button:hover {
    background: #555;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
