/* Style formularza rezerwacji */
.booking-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    box-sizing: border-box;
}

.booking-form .form-field {
    margin-bottom: 15px;
    width: 100%;
}

.booking-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    width: 100%;
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="date"],
.booking-form input[type="time"],
.booking-form input[type="number"],
.booking-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

.booking-form input[type="submit"] {
    background-color: #515547;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

/* Style modala */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    background-color: rgba(0,0,0,0.5);
}

.custom-modal.active {
    display: flex;
}

.custom-modal .modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.custom-modal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 1;
    width: 90%;
    max-width: 500px;
    position: relative;
    margin: 20px;
    box-sizing: border-box;
}

.custom-modal .modal-content.success {
    border-top: 4px solid #46b450;
}

.custom-modal .modal-content.error {
    border-top: 4px solid #dc3232;
}

.custom-modal .modal-close-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
}

.custom-modal h2 {
    margin-top: 0;
    color: #2271b1;
    font-size: 1.5em;
}

/* Style dla modali */
.booking-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.booking-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 15px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.booking-modal-header {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-modal-header.booking-modal-success {
    color: #155724;
    background-color: #d4edda;
    padding: 10px;
    border-radius: 4px 4px 0 0;
}

.booking-modal-header.booking-modal-error {
    color: #721c24;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px 4px 0 0;
}

.booking-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.booking-modal-close:hover {
    color: black;
}

.booking-modal-body {
    padding: 15px 0;
}

.booking-modal-footer {
    padding: 10px 0;
    border-top: 1px solid #ddd;
    text-align: center;
}

.booking-modal-ok {
    background-color: #515547;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
}

.booking-modal-ok:hover {
    background-color: #3e4234;
}

/* Style dla błędów w formularzu */
.error {
    border-color: #ff0000 !important;
}

/* Responsywność */
@media screen and (min-width: 768px) {
    .booking-form {
        padding: 20px;
    }
    
    .booking-form input[type="submit"],
    .custom-modal .modal-close-btn {
        width: auto;
    }
    
    .booking-modal-content {
        padding: 20px;
    }
}

@media screen and (min-width: 992px) {
    .booking-form {
        max-width: 600px;
    }
    
    .booking-form .form-field {
        display: flex;
        flex-wrap: wrap;
    }
    
    .booking-form label {
        width: 30%;
        padding-right: 15px;
        box-sizing: border-box;
    }
    
    .booking-form input[type="text"],
    .booking-form input[type="email"],
    .booking-form input[type="date"],
    .booking-form input[type="time"],
    .booking-form input[type="number"],
    .booking-form select {
        width: 70%;
    }
}
