/* Główne style formularza */
.reservation-form {
    max-width: 700px;
    margin: 30px auto;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(10, 51, 83, 0.1);
}

.reservation-form h3 {
    color: #0a3353;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Rzędy formularza */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Grupy formularza */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group:not(.checkboxes) {
    margin-bottom: 5px;
}

/* Etykiety */
.form-group label {
    color: #0a3353;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.3px;
}

/* Inputy */
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"] {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #0a3353;
}

.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #c91e80;
    box-shadow: 0 0 0 3px rgba(201, 30, 128, 0.1);
}

/* Grupy radiowe */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    margin-right: 0;
    cursor: pointer;
    font-weight: 500;
    color: #0a3353;
}

.radio-group input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #0a3353;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.radio-group input[type="radio"]:hover {
    border-color: #c91e80;
    box-shadow: 0 0 0 3px rgba(201, 30, 128, 0.1);
}

.radio-group input[type="radio"]:checked {
    background-color: #c91e80;
    border-color: #c91e80;
    box-shadow: inset 0 0 0 4px #ffffff;
}

/* Checkboxy */
.form-group.checkboxes {
    margin: 25px 0;
    padding: 20px;
    background-color: rgba(10, 51, 83, 0.02);
    border-radius: 8px;
    border-left: 4px solid #c91e80;
}

.form-group.checkboxes label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #0a3353;
}

.form-group.checkboxes label:last-child {
    margin-bottom: 0;
}

.form-group.checkboxes input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #0a3353;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-group.checkboxes input[type="checkbox"]:hover {
    border-color: #c91e80;
    box-shadow: 0 0 0 3px rgba(201, 30, 128, 0.1);
}

.form-group.checkboxes input[type="checkbox"]:checked {
    background-color: #c91e80;
    border-color: #c91e80;
}

.form-group.checkboxes input[type="checkbox"]:checked::after {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
}

/* Price display */
.price-display {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(10, 51, 83, 0.05) 0%, rgba(201, 30, 128, 0.05) 100%);
    border-radius: 8px;
    border: 2px solid #0a3353;
}

.price-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
}

#price-content h4 {
    color: #c91e80;
    font-size: 18px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.price-details p {
    color: #0a3353;
    font-size: 14px;
    margin: 10px 0;
    display: flex;
}
.price-details p span{
    margin-left: 5px;
}
.price-details strong {
    font-weight: 600;
}

.price-total-box {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
    color: #c91e80;
    font-size: 18px;
    font-weight: 700;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #0a3353;
}

.loading-spinner span {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.error-message {
    color: #d32f2f;
    padding: 12px 15px;
    background-color: rgba(211, 47, 47, 0.1);
    border-radius: 6px;
    font-size: 14px;
    border-left: 4px solid #d32f2f;
}

/* Przycisk submit */
.btn-submit {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #0a3353 0%, #0f4a6b 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(10, 51, 83, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #c91e80 0%, #a91a6a 100%);
    box-shadow: 0 6px 20px rgba(201, 30, 128, 0.4);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Responsywność */
@media (max-width: 768px) {
    .reservation-form {
        padding: 25px;
        margin: 20px 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .reservation-form h3 {
        font-size: 24px;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .reservation-form {
        padding: 20px;
    }

    .form-group input {
        font-size: 16px;
    }

    .reservation-form h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

.terms-link{
    margin-left: 5px;
}

/* Success Banner */
.success-banner {
    margin-bottom: 30px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #0a3353 0%, #0f4a6b 100%);
    border-radius: 12px;
    border-left: 6px solid #c91e80;
    box-shadow: 0 10px 40px rgba(10, 51, 83, 0.25);
    animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.success-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 30, 128, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.success-banner-content {
    display: flex;
    align-items: center;
    gap: 25px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.success-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #c91e80 0%, #a91a6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(201, 30, 128, 0.4);
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.success-text {
    flex: 1;
}

.success-text h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: fadeInLeft 0.6s ease-out 0.1s both;
}

.success-text p {
    margin: 8px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

.success-text p:first-of-type {
    animation-delay: 0.2s;
}

.success-text p:last-of-type {
    animation-delay: 0.3s;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.success-text strong {
    color: #c91e80;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Animacje */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover effect */
.success-banner:hover {
    box-shadow: 0 15px 50px rgba(10, 51, 83, 0.35);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Responsywność - Tablet */
@media (max-width: 768px) {
    .success-banner {
        margin-bottom: 25px;
        padding: 20px 25px;
    }

    .success-banner-content {
        gap: 20px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .success-text h2 {
        font-size: 20px;
    }

    .success-text p {
        font-size: 14px;
    }
}

/* Responsywność - Mobile */
@media (max-width: 600px) {
    .success-banner {
        margin-bottom: 20px;
        padding: 15px 20px;
        border-left-width: 5px;
    }

    .success-banner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .success-banner::before {
        width: 150px;
        height: 150px;
    }

    .success-icon {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .success-text h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .success-text p {
        font-size: 13px;
        margin: 6px 0;
    }
}

/* Responsywność - Very small phones */
@media (max-width: 400px) {
    .success-banner {
        padding: 12px 15px;
    }

    .success-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .success-text h2 {
        font-size: 16px;
    }

    .success-text p {
        font-size: 12px;
    }
}


.btn-submit {
    background-color: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover:not(.btn-disabled) {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.btn-submit:active:not(.btn-disabled) {
    transform: translateY(0);
}

.btn-submit.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #999;
}

.btn-submit.btn-disabled:hover {
    background-color: #999;
    transform: none;
    box-shadow: none;
}

/* price list */

.cennik-rezerwacji {
    margin: 20px 0;
}
.cennik-rezerwacji h3 {
    font-family: var( --e-global-typography-primary-font-family ), Sans-serif;
    font-weight: var( --e-global-typography-primary-font-weight );
    color: var( --e-global-color-primary );
}
.cennik-rezerwacji h3 span{
    font-family: var( --e-global-typography-text-font-family ), Sans-serif;
    font-weight: var( --e-global-typography-text-font-weight );
    color: var( --e-global-color-text );
}
.cennik-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px 0;
    margin-bottom: 15px;
    table-layout: fixed;
}
.cennik-table td {
    text-align: center;
    font-weight: bold;
    width: 16.666%; /* 100% / 7 kolumn */
}
.cennik-table .day-header {
    background-color: #C91E80;
    color: white;
    font-size: 0.8em;
    text-transform: uppercase;
    border: 1px solid #C91E80;
    padding: 2px;

}
.cennik-table .price-cell {
    background-color: #f5f5f5;
    font-size: 0.9em;
    color: #333;
    border: 1px solid #C91E80;
    padding: 10px 4px;
}

/* validation */
#time-validation-error{
    grid-column: 1 / -1;
    display: block;
}


/* modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    animation: slideInUp 0.3s ease-out;
}

.modal-header {
    background: #c91e80;
    color: white;
    padding: 20px;
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-message {
    font-size: 18px;
    color: #333;
    margin: 0 0 15px 0;
}

.modal-footer {
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.modal-contact {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.modal-contact strong {
    color: #c91e80;
    font-size: 16px;
}

.modal-close-btn {
    background-color: #c91e80;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-close-btn:hover {
    background-color: #c91e80;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
