/**
 * Style dla modala grafiku
 */

#grafik-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    background: #fff;
    border-radius: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 30px;
    overflow-y: auto;
    z-index: 10000;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    margin: 0 0 20px 0;
    padding-right: 40px;
    color: #2c3e50;
    font-size: 24px;
}

.modal-meta {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 0;
}

.modal-meta-item {
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-meta-item:last-child {
    margin-bottom: 0;
}

.modal-meta-item strong {
    color: #555;
    margin-right: 8px;
}

.modal-meta-item a {
    color: #078521;
    text-decoration: none;
    font-weight: 600;
}

.modal-meta-item a:hover {
    color: #000;
    text-decoration: none;
}

.modal-description {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f7ff;
    border-left: 4px solid #3498db;
    border-radius: 0;
}

.modal-description p {
    margin: 0;
    line-height: 1.6;
}

.modal-description-full {
    margin-bottom: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 0;
}

.modal-description-full p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.modal-description-full p:last-child {
    margin-bottom: 0;
}

.modal-places {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 0;
    border-radius: 0;
}

.places-info {
    font-size: 14px;
}

.places-label {
    font-weight: bold;
    color: #856404;
}

.places-value {
    color: #856404;
    font-size: 14px;
    font-weight: bold;
}

.modal-sales-closed {
    margin: 0 0 15px 0;
    padding: 12px 15px;
    background: #f8d7da;
    color: #721c24;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

#modal-link.btn-link,
.modal-actions .btn-link,
#grafik-modal .btn-link {
    display: inline-block !important;
    padding: 7px 30px !important;
    background: transparent !important;
    color: #078521 !important;
    border: 1px solid #078521 !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    flex: 1;
    text-align: center !important;
    line-height: 30px !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
}

#modal-link.btn-link:hover,
.modal-actions .btn-link:hover,
#grafik-modal .btn-link:hover {
    background: #078521 !important;
    color: #fff !important;
    border-color: #078521 !important;
}

.btn-reserve {
    float: left;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    line-height: 30px;
    color: #fff !important;
    padding: 7px 30px;
    background-color: var(--color-primary, #078521);
    border: none;
    border-radius: 0;
    -webkit-transition: all .3s linear;
    -moz-transition: all .3s linear;
    -ms-transition: all .3s linear;
    -o-transition: all .3s linear;
    transition: all .3s linear;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    flex: 1;
}

.btn-reserve:hover {
    color: #fff !important;
    background: #000;
    border-color: #000;
}

.btn-reserve:disabled,
.btn-reserve.btn-reserve-disabled {
    background: #ccc !important;
    color: #888 !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-reserve:disabled:hover,
.btn-reserve.btn-reserve-disabled:hover {
    background: #ccc !important;
    color: #888 !important;
}

/* Mini-formularz rezerwacji (zajęcia z gwiazdką) */
.modal-rezerwacja-wrap {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
}

.modal-rezerwacja-info {
    font-size: 14px;
    color: #333;
    margin: 0 0 15px 0;
}

.grafik-rezerwacja-form .grafik-rezerwacja-row {
    margin: 0 0 12px 0;
}

.grafik-rezerwacja-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.grafik-rezerwacja-form input[type="text"],
.grafik-rezerwacja-form input[type="email"],
.grafik-rezerwacja-form input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 0;
    box-sizing: border-box;
    background: #fff;
}

.grafik-rezerwacja-form input[type="text"]:focus,
.grafik-rezerwacja-form input[type="email"]:focus,
.grafik-rezerwacja-form input[type="tel"]:focus {
    outline: none;
    border-color: #078521;
}

.grafik-rezerwacja-form input::placeholder {
    color: #999;
    opacity: 1;
    font-size: 14px;
}

.grafik-rezerwacja-form .grafik-rezerwacja-or {
    margin: 8px 0;
    font-size: 13px;
    color: #666;
}

.grafik-rezerwacja-form .btn-rezerwacja-submit {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    background: #078521;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grafik-rezerwacja-form .btn-rezerwacja-submit:hover {
    background: #000;
}

.grafik-rezerwacja-msg.success {
    color: #078521;
    font-size: 14px;
    margin: 10px 0 0 0;
}

.grafik-rezerwacja-msg.error {
    color: #b22222;
    font-size: 14px;
    margin: 10px 0 0 0;
}

.modal-loader {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

/* Responsywność */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-link,
    .btn-reserve {
        width: 100%;
    }
}








