:root {
    --green-main: #258336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Barlow', Arial, sans-serif;
}

body {
    font-family: 'Barlow', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 20px;
    padding-bottom: 40px;
    background-color: white;
    min-height: 100vh;
    border: 1px solid #ddd;
    border-top: 0;
}

header {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 10px;
}

header #logo img {
    height: 70px;
    padding: 10px;
}

header #banner {
    padding: 30px;
    background: var(--green-main);
    color: white;
}

header h1 {
    font-size: 2.2em;
    line-height: normal;
    font-weight: 400;
    margin-bottom: 8px;
}

header p {
    font-size: 14px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.form-section,
.calendar-section {
    background: white;
    padding: 30px;
}

.form-section h2,
.calendar-section h2 {
    font-size: 1.5em;
    font-weight: 100;
    margin-bottom: 16px;
    color: #333;
    border-bottom: 2px solid var(--green-main);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-main);
}

.form-group input.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-item input[type='checkbox'] {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
    transform: scale(1.2);
}

.checkbox-item label {
    flex: 1;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.4;
}

.booking-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.calendar-container {
    margin-bottom: 20px;
    position: relative;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.nav-button {
    background: var(--green-main);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 4px;
}

.nav-button:hover:not(:disabled) {
    background: #278a39;
    transform: translateY(-1px);
}

.nav-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.calendar-info {
    color: #333;
}

.calendar-wrapper {
    overflow: hidden;
    border: 1px solid #ddd;
    background: white;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #eee;
    transition: transform 0.3s ease;
}

.calendar-day {
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.day-header {
    padding: 5px 10px 10px;
    text-align: center;
    font-size: 14px;
}

.day-header .day-name {
    font-size: 16px;
}

.day-header .day-date {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 600;
}

.time-slots {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.time-slot {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-slot:hover {
    background: #e3f2fd;
}

.time-slot.available {
    background: rgba(37, 131, 54, 0.1);
    color: var(--green-main);
    font-weight: 600;
}

.time-slot.available:hover {
    background: rgba(37, 131, 54, 0.2);
    transform: scale(1.02);
}

.time-slot.booked {
    background: #ffebee;
    color: #c62828;
    text-decoration: line-through;
    cursor: not-allowed;
}

.time-slot.selected {
    background: var(--green-main);
    color: white;
    font-weight: bold;
}

.time-slot.weekend-disabled {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
    font-weight: normal;
}

.time-slot.weekend-disabled:hover {
    background: #f8f9fa;
    transform: none;
}

.selected-slot {
    padding: 15px;
    background: #e8f5e8;
    border-left: 4px solid var(--green-main);
}

.selected-slot p {
    font-weight: 600;
    color: #333;
}

.form-actions {
    text-align: center;
}

#submitBtn {
    background: var(--green-main);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

#submitBtn:hover:not(:disabled) {
    transform: translateY(-2px);
}

#submitBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Modal powiadomień */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-message {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-right: 20px;
}

.hidden {
    display: none !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 10px;
        padding: 20px;
        text-align: center;
    }

    header h1 {
        font-size: 1.5em;
    }

    .form-section h2,
    .calendar-section h2 {
        font-size: 1.2em;
    }

    header #banner {
        padding: 0;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .booking-options {
        grid-template-columns: 1fr;
    }

    /* .calendar {
        grid-template-columns: repeat(2, 1fr);
    } */

    .calendar-day {
        min-height: 350px;
    }

    .time-slot {
        font-size: 12px;
        min-height: 35px;
    }

    .day-header {
        padding: 12px 8px;
        font-size: 12px;
    }

    .day-header .day-name {
        font-size: 14px;
    }

    .container {
        padding: 10px;
        padding-bottom: 20px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-section,
    .calendar-section {
        padding: 20px;
    }

    .nav-button {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .calendar {
        grid-template-columns: 1fr;
    }

    .calendar-day {
        min-height: 300px;
    }

    .time-slot {
        font-size: 11px;
        min-height: 32px;
    }

    .day-header {
        padding: 10px 6px;
        font-size: 11px;
    }

    .day-header .day-name {
        font-size: 13px;
    }

    .nav-button {
        padding: 6px 10px;
        font-size: 12px;
    }

    .calendar-navigation {
        margin-bottom: 10px;
    }

    .calendar-info {
        font-size: 12px;
    }
}
