/* css-modals.css - MODALE REZERWACJI I LIGHTBOX - Sebolazty ADV */

/* --- GŁÓWNY LAYOUT MODALA --- */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.85); 
    z-index: 2000; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(8px); 
    padding: 20px; 
    box-sizing: border-box;
}

.modal-window { 
    background: #fff; 
    width: 100%; 
    max-width: 1200px; 
    max-height: 90vh; 
    position: relative; 
    overflow-y: auto; 
    border-radius: 12px; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.5); 
}

.close-modal { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    font-size: 35px; 
    color: #000; 
    cursor: pointer; 
    z-index: 3000; 
    background: #fff; 
    width: 45px; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    border: 1px solid #eee; 
    transition: 0.3s; 
}

.close-modal:hover { background: var(--sebo-yellow); }

.modal-hero { 
    height: 250px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.modal-hero::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
}

.modal-hero h2 { 
    position: relative; 
    z-index: 2; 
    color: #fff; 
    text-transform: uppercase; 
    font-size: 2.2rem; 
    font-weight: 800; 
    text-align: center; 
    margin: 0; 
    padding: 0 20px; 
}

.modal-container { 
    display: grid; 
    grid-template-columns: 1fr 380px; 
    gap: 40px; 
    padding: 40px; 
}

/* --- KOLUMNA PRAWA: PARAMETRY WYPRAWY (modal + strona główna bez css-trip) --- */
.modal-sidebar h4 { 
    margin-top: 0; 
    text-transform: uppercase; 
    font-weight: 800; 
    font-size: 16px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px; 
    margin-bottom: 15px; 
}

.info-card { 
    background: #f9f9f9; 
    padding: 20px; 
    border-radius: 10px; 
    border: 1px solid #eee; 
    margin-bottom: 20px; 
}

.info-card-title { 
    font-size: 11px; 
    font-weight: 800; 
    text-transform: uppercase; 
    color: #999; 
    margin-bottom: 12px; 
    display: block; 
}

.trip-quick-stats { display: flex; flex-direction: column; gap: 10px; }
.stat-row { 
    font-size: 13px; 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    color: #333; 
    line-height: 1.5; 
}
.stat-row i { 
    color: var(--sebo-yellow); 
    width: 18px; 
    flex-shrink: 0; 
    text-align: center; 
    margin-top: 2px; 
}
.stat-row strong { font-weight: 800; color: #111; }

/* --- PRZEWODNIK W MODALU REZERWACJI (jak .info-card / parametry wyprawy) --- */
.res-guide-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}
.res-guide-card-title {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 12px;
}
.res-guide-inner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.res-guide-photo {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #eee;
}
.res-guide-body { flex: 1; min-width: 0; }
.res-guide-name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #111;
}
.res-guide-bio {
    font-size: 13px;
    line-height: 1.55;
    color: #333;
    font-weight: 500;
}
.res-guide-bio p { margin: 0 0 0.5em; }
.res-guide-bio p:last-child { margin-bottom: 0; }
.res-guide-bio a {
    color: var(--sebo-yellow);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.res-guide-bio a:hover { color: #000; }

/* --- FORMULARZ REZERWACJI --- */
.reservation-form { display: flex; flex-direction: column; gap: 15px; }

.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 5px; }

.form-sub-section { 
    font-weight: 800; 
    font-size: 11px; 
    text-transform: uppercase; 
    margin: 15px 0 5px 0; 
    color: #777; 
    letter-spacing: 0.5px; 
}

.form-section-title { 
    font-weight: 800; 
    text-transform: uppercase; 
    color: #000; 
    margin: 25px 0 10px 0; 
    font-size: 13px; 
    border-left: 4px solid var(--sebo-yellow); 
    padding-left: 10px; 
    line-height: 1.1;
}

.form-group label { 
    font-weight: 800; 
    text-transform: uppercase; 
    font-size: 10px; 
    color: #333; 
    margin-bottom: 2px; 
    display: block; 
    letter-spacing: 0.5px; 
}

.reservation-form input[type="text"],
.reservation-form input[type="email"],
.reservation-form input[type="tel"],
.reservation-form input[type="date"],
.reservation-form select { 
    padding: 14px 15px; 
    border: 1px solid #d4d4d4; 
    border-radius: 6px; 
    font-family: inherit; 
    font-size: 14px; 
    width: 100%; 
    box-sizing: border-box; 
    background-color: #fff; 
    transition: border-color 0.3s; 
}

.reservation-form input:focus, 
.reservation-form select:focus { 
    border-color: var(--sebo-yellow); 
    outline: none; 
}

.reservation-form input::placeholder { color: #999; }

.required-star { color: #e74c3c; margin-left: 3px; font-weight: bold; }

/* WYBÓR OSÓB */
.person-selection { display: flex; gap: 10px; }
.person-option { flex: 1; position: relative; }
.person-option input { position: absolute; opacity: 0; }
.person-option label { 
    display: block; 
    padding: 12px; 
    border: 1px solid #ddd; 
    text-align: center; 
    cursor: pointer; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 12px; 
    border-radius: 6px; 
    transition: 0.2s; 
}
.person-option input:checked + label { 
    border-color: var(--sebo-yellow); 
    background: #fffcf0; 
    font-weight: 800; 
    border-width: 2px; 
}

/* PODSUMOWANIE KOSZTÓW */
.cost-summary-box { background: #1a1a1a; color: #fff; padding: 20px; border-radius: 10px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: #bbb; }
.summary-total { 
    border-top: 1px solid #333; 
    margin-top: 12px; 
    padding-top: 12px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: 800; 
}
.summary-total span:last-child { color: var(--sebo-yellow); font-size: 24px; }

/* ZGODY I POWIADOMIENIA */
.consent-group { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; }
.consent-group input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; cursor: pointer; }
.consent-group label { font-size: 11px; color: #666; line-height: 1.5; cursor: pointer; }

.consent-group label a,
.consent-group a { 
    color: var(--sebo-yellow); 
    text-decoration: underline; 
    text-underline-offset: 2px; 
    font-weight: 700; 
    transition: color 0.2s, text-decoration-color 0.2s; 
}
.consent-group label a:hover,
.consent-group a:hover { 
    color: #000; 
    text-decoration: underline; 
    text-decoration-color: #000; 
}

.toast-notification { 
    position: fixed; 
    top: 25px; 
    right: 25px; 
    background: #1a1a1a; 
    color: #fff; 
    padding: 20px 30px; 
    border-radius: 4px; 
    z-index: 9999; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    border-left: 5px solid var(--sebo-yellow); 
    transform: translateX(150%); 
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 13px; 
    letter-spacing: 1px; 
}
.toast-notification.active { transform: translateX(0); }

/* --- LIGHTBOX (GALERIA) --- */
.lightbox-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.92); 
    z-index: 3000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
    box-sizing: border-box; 
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.38s ease, visibility 0.38s ease;
}

.lightbox-overlay.lightbox-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-overlay #lightbox-img {
    max-width: 90%; 
    max-height: 90%; 
    box-shadow: 0 0 30px rgba(0,0,0,0.5); 
    border-radius: 4px; 
    user-select: none;
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-overlay #lightbox-img.lightbox-img--visible {
    opacity: 1;
    transform: scale(1);
}

.close-lightbox { 
    position: absolute; 
    top: 30px; 
    right: 30px; 
    color: #fff; 
    font-size: 50px; 
    cursor: pointer; 
    line-height: 1; 
    z-index: 3100; 
    opacity: 0;
    transition: opacity 0.35s ease 0.05s, transform 0.2s ease;
}

.lightbox-open .close-lightbox {
    opacity: 1;
}

.close-lightbox:hover {
    transform: scale(1.08);
}

.lightbox-nav { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #fff; 
    font-size: 40px; 
    cursor: pointer; 
    padding: 20px; 
    z-index: 3100; 
    background: rgba(0,0,0,0.2); 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0;
    transition: opacity 0.35s ease 0.08s, color 0.2s ease, background 0.2s ease;
}

.lightbox-open .lightbox-nav {
    opacity: 1;
}

.lightbox-nav:hover { color: var(--sebo-yellow); background: rgba(0,0,0,0.5); }
.nav-prev { left: 20px; }
.nav-next { right: 20px; }

/* --- RWD MODALS --- */
@media (max-width: 900px) { .modal-container { grid-template-columns: 1fr; padding: 20px; } }