/* ==========================================================================
   STYLE DEDYKOWANE: REZERWACJA I FORMULARZ (ATLANTIC DEPTH)
   ========================================================================== */

/* --- 1. HERO --- */
.reservation-hero {
    padding: 160px 20px 60px;
    text-align: center;
    background: radial-gradient(circle at 50% 100%, rgba(52, 99, 153, 0.08) 0%, transparent 60%);
}
.hero-title { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    margin-bottom: 20px; 
    line-height: 1.2; 
    color: var(--color-accent-1); 
    font-family: var(--font-head);
}
.hero-desc {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* --- 2. WRAPPER GŁÓWNY --- */
.reservation-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}
/* Węższy wrapper dla samego formularza, żeby wyglądał zgrabnie */
.form-wrapper-width {
    max-width: 600px; 
}

/* --- 3. NAWIGACJA TYGODNIA (KALENDARZ) --- */
.week-navigator {
    display: flex; justify-content: space-between; align-items: center;
    background: #fff; padding: 15px 25px; border-radius: 50px;
    box-shadow: 0 10px 30px rgba(15, 42, 74, 0.08); margin-bottom: 40px;
    border: 1px solid rgba(15, 42, 74, 0.05);
}
.nav-arrow {
    width: 45px; height: 45px; border-radius: 50%; background: #f8faff;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-accent-1); font-size: 1rem; transition: 0.3s; border: 1px solid #e2e8f0;
}
.nav-arrow:hover {
    background: var(--color-accent-2); color: #fff; border-color: var(--color-accent-2);
}
.nav-arrow.disabled { opacity: 0.3; pointer-events: none; }
.nav-info { text-align: center; }
.nav-label { display: block; font-size: 0.75rem; text-transform: uppercase; color: #94a3b8; letter-spacing: 1px; margin-bottom: 3px; }
.nav-dates { display: block; font-size: 1.1rem; color: var(--color-accent-1); font-weight: 700; }

/* --- 4. LISTA DNI I GODZINY (KALENDARZ) --- */
.grid-label { font-size: 1.2rem; color: var(--color-accent-1); margin-bottom: 20px; font-family: var(--font-head); }
.days-accordion { display: flex; flex-direction: column; gap: 15px; }
.day-item {
    background: #fff; border: 1px solid rgba(15, 42, 74, 0.08); border-radius: 16px;
    overflow: hidden; transition: 0.3s;
}
.day-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.03); border-color: rgba(52, 99, 153, 0.3); }
.day-item.active { border-color: var(--color-accent-2); box-shadow: 0 10px 30px rgba(52, 99, 153, 0.1); }

.day-header {
    width: 100%; padding: 20px 25px; background: #fff; border: none;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; text-align: left; outline: none;
}
.day-header.disabled { background: #fcfcfc; cursor: default; }
.day-info-left, .day-info-right { display: flex; align-items: center; gap: 15px; }
.day-name { font-weight: 700; color: var(--color-accent-1); font-size: 1.1rem; width: 120px; }
.day-date { color: #64748b; font-size: 1rem; }

.status-badge { padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.status-badge.available { background: #dcfce7; color: #166534; }
.status-badge.busy { background: #f1f5f9; color: #94a3b8; }
.icon {
    width: 30px; height: 30px; background: #f0f7ff; color: var(--color-accent-2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: 0.3s;
}
.day-item.active .icon { background: var(--color-accent-2); color: #fff; }

.day-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: #f8faff; }
.slots-container { padding: 25px; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; }
.time-slot-btn {
    display: block; text-align: center; padding: 12px 10px; background: #fff; border: 1px solid #cbd5e1;
    border-radius: 10px; color: #334155; font-weight: 600; text-decoration: none; transition: 0.2s; font-size: 1rem;
}
.time-slot-btn:hover {
    background: var(--color-accent-1); color: #fff; border-color: var(--color-accent-1); transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 42, 74, 0.2);
}

.empty-state-box { text-align: center; padding: 60px 20px; background: #fff; border-radius: 24px; border: 1px dashed #cbd5e1; }
.empty-icon { font-size: 3rem; color: #cbd5e1; margin-bottom: 20px; }

/* ========================================================== */
/* === NOWE STYLE: FORMULARZ REZERWACJI (rezerwuj.php) === */
/* ========================================================== */

/* Karta szczegółów terminu */
.termin-details-card {
    background: #fff; border: 1px solid rgba(15, 42, 74, 0.1); border-radius: 20px;
    padding: 25px 30px; display: flex; align-items: center; gap: 25px; margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.td-icon {
    width: 60px; height: 60px; background: var(--color-accent-1); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.td-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; display: block; margin-bottom: 5px; }
.td-date { font-size: 1.4rem; color: var(--color-accent-1); margin: 0 0 5px 0; line-height: 1.2; }
.td-time { font-size: 1rem; color: #64748b; font-weight: 500; }

/* Alert o zalogowaniu */
.logged-user-alert {
    background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
    padding: 15px 20px; border-radius: 12px; margin-bottom: 30px;
    display: flex; gap: 15px; align-items: center; font-size: 0.95rem; line-height: 1.5;
}
.logged-user-alert i { font-size: 1.4rem; }

/* Formularz */
.reservation-form {
    background: #fff; padding: 40px; border-radius: 24px;
    box-shadow: 0 20px 60px -10px rgba(15, 42, 74, 0.08);
}
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: 700; color: var(--color-accent-1); margin-bottom: 8px; font-size: 0.95rem; }
.form-group input {
    width: 100%; padding: 14px 20px; border: 1px solid #cbd5e1; border-radius: 12px;
    font-size: 1rem; color: #334155; font-family: var(--font-body); transition: 0.3s; outline: none;
}
.form-group input:focus { border-color: var(--color-accent-2); box-shadow: 0 0 0 4px rgba(52, 99, 153, 0.1); }
.input-hint { font-size: 0.8rem; color: #94a3b8; margin-top: 6px; display: block; }

/* Komunikaty Błędów */
.msg-box {
    padding: 15px; border-radius: 10px; margin-bottom: 25px; font-size: 0.95rem; text-align: center;
}
.msg-box.error { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.msg-box.success { background: #dcfce7; border: 1px solid #86efac; color: #166534; }

/* Style Checkboxa i RODO */
.checkbox-container {
    display: block; position: relative; padding-left: 35px; cursor: pointer;
    font-size: 0.9rem; color: #475569; line-height: 1.5; user-select: none;
}
.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark {
    position: absolute; top: 2px; left: 0; height: 20px; width: 20px; background-color: #fff;
    border: 1px solid #cbd5e1; border-radius: 4px; transition: 0.2s;
}
.checkbox-container:hover input ~ .checkmark { background-color: #f8faff; }
.checkbox-container input:checked ~ .checkmark { background-color: var(--color-accent-1); border-color: var(--color-accent-1); }
.checkmark:after { content: ""; position: absolute; display: none; }
.checkbox-container input:checked ~ .checkmark:after { display: block; }
.checkbox-container .checkmark:after {
    left: 7px; top: 3px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.legal-block a { color: var(--color-accent-2); text-decoration: underline; font-weight: 600; }

/* Przycisk Rezerwacji - WYŚRODKOWANY */
.btn-reserve-center {
    display: block;
    width: auto;
    min-width: 250px;
    margin: 35px auto 0; /* Wyśrodkowanie */
    text-align: center;
}

/* Ekran Sukcesu / Błędu */
.reservation-feedback {
    text-align: center; padding: 60px 40px; background: #fff; border-radius: 24px;
    box-shadow: 0 20px 60px -10px rgba(15, 42, 74, 0.08);
}
.feedback-icon {
    width: 80px; height: 80px; background: #dcfce7; color: #166534; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 30px;
}
.feedback-icon.error { background: #fee2e2; color: #991b1b; }

.reservation-feedback h2 { font-size: 2rem; color: var(--color-accent-1); margin-bottom: 20px; }
.reservation-feedback p { color: #64748b; font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; }

.highlight-box {
    background: #f8faff; border: 1px solid #e2e8f0; padding: 20px; border-radius: 12px;
    color: var(--color-accent-1); font-size: 1rem; line-height: 1.5;
}

/* RWD */
@media (max-width: 600px) {
    .week-navigator { flex-direction: column; gap: 15px; }
    .day-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .termin-details-card { flex-direction: column; text-align: center; }
    .reservation-form { padding: 25px; }
    .btn-reserve-center { width: 100%; } /* Na mobile guzik szeroki */
}

/* ========================================================== */
/* === STYLE: POTWIERDZENIE (PRZYCISKI KALENDARZA) === */
/* ========================================================== */

.calendar-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.cal-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
}

/* Kolory przycisków */
.cal-btn.google { background: #fff; border-color: #dadce0; color: #3c4043; }
.cal-btn.google:hover { background: #f8faff; border-color: #cce0ff; color: var(--color-accent-2); }

.cal-btn.outlook { background: #f3f6fc; color: #0078d4; }
.cal-btn.outlook:hover { background: #e1e9f8; }

.cal-btn.apple { background: #1d1d1f; color: #fff; }
.cal-btn.apple:hover { background: #333; transform: translateY(-2px); }

/* RWD dla kalendarza */
@media (max-width: 500px) {
    .calendar-buttons-grid {
        grid-template-columns: 1fr; 
    }
}
/* ========================================================== */
/* === PAKIET SELECTOR - STYLISTYKA VISIONARY (4 KOLUMNY) === */
/* ========================================================== */

.package-selector-strip {
    margin-bottom: 50px;
    animation: slideInFade 0.6s ease-out;
}

.selector-title {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

/* --- UKŁAD SIATKI: 4 KOLUMNY --- */
.selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px;
    align-items: stretch; 
}

/* --- STANDARDOWA KARTA (BIAŁA) --- */
.mini-package-card {
    background: #ffffff;
    border: 1px solid rgba(15, 42, 74, 0.08);
    border-radius: 16px;
    padding: 25px 15px 20px; /* Większy padding góra */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(15, 42, 74, 0.02);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.mini-package-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-2);
    box-shadow: 0 15px 30px rgba(52, 99, 153, 0.15);
}

/* Ikona Standardowa */
.mini-package-card .mp-icon {
    width: 42px; height: 42px;
    background: #f1f5f9;
    color: var(--color-accent-1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 5px;
    transition: 0.3s;
}

/* Treść */
.mp-content { width: 100%; z-index: 1; }
.mp-name {
    display: block;
    font-weight: 700;
    color: var(--color-accent-1);
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 4px;
}
.mp-details {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
}

/* Strzałka Standardowa */
.mp-arrow {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-top: auto;
    opacity: 0;
    transform: translateY(5px);
    transition: 0.3s;
}
.mini-package-card:hover .mp-arrow {
    opacity: 1;
    transform: translateY(0);
    color: var(--color-accent-2);
}


/* ========================================================== */
/* === MANAWA SPECIAL: PRO BONO "GOLDEN TICKET" === */
/* ========================================================== */

/* Animacja pulsowania ramki */
@keyframes borderPulse {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.mini-package-card.pro-bono-card {
    background: #fff;
    /* Złota/Bursztynowa ramka */
    border: 2px solid #d97706; 
    /* Subtelny cień w kolorze złota */
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.15);
    transform: scale(1.02); /* Lekkie powiększenie */
    z-index: 5;
    padding-top: 35px; /* Miejsce na badge */
    animation: borderPulse 2s infinite; /* Pulsująca poświata */
}

.mini-package-card.pro-bono-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.25);
    background: #fffbeb; /* Bardzo jasny żółty przy najechaniu */
}

/* Badge "Do 15.02..." - przyklejony do góry */
.pro-bono-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #d97706; /* Bursztynowe tło */
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: auto;
    white-space: nowrap;
}

/* Złota Ikona */
.mini-package-card.pro-bono-card .mp-icon {
    background: #fef3c7; /* Jasne złoto tło */
    color: #d97706;      /* Bursztynowa ikona */
    font-size: 1.2rem;
}

/* Wyróżniona cena BEZPŁATNIE */
.price-free {
    color: #d97706;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

/* Strzałka tekstowa "Odbierz" */
.mp-arrow-gold {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: #d97706;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* RWD */
@media (max-width: 900px) {
    .selector-grid { grid-template-columns: repeat(2, 1fr); }
    .reservation-wrapper { max-width: 600px; }
    .mini-package-card.pro-bono-card { transform: scale(1); animation: none; border-width: 2px; }
}

@media (max-width: 500px) {
    .selector-grid { grid-template-columns: 1fr; }
    .reservation-wrapper { max-width: 100%; }
}