:root {
    --primary: #f4b400; 
    --primary-dark: #d4a000;
    --blue: #007bff;
    --dark: #1a1a1a;
    --gray-light: #f4f6f8;
    --text: #333;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --border: #ddd;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Montserrat', sans-serif; 
    background: var(--gray-light); 
    color: var(--text); 
    min-height: 100vh;
}

.app-container { display: flex; min-height: 100vh; }

.sidebar {
    width: 300px; 
    background: var(--dark); 
    color: var(--white);
    display: flex; flex-direction: column; padding: 30px 20px;
}
.brand { font-size: 1.5rem; font-weight: 700; margin-bottom: 40px; color: var(--primary); text-decoration: none; }
.cat-label { text-transform: uppercase; font-size: 0.75rem; color: #888; margin-bottom: 15px; letter-spacing: 1px; }
.category-list { list-style: none; display:flex; flex-direction: inherit; gap: 10px; }
.category-item a {
    display: flex; align-items: center; padding: 15px; margin-bottom: 10px;
    text-decoration: none; color: #ccc; border-radius: 12px; transition: 0.3s;
    background: rgba(255,255,255,0.03);
}
.category-item a:hover, .category-item a.active {
    background: var(--primary); color: var(--dark); font-weight: 700;
    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.3);
}
.cat-icon { font-size: 1.4rem; margin-right: 15px; }

.main-content { flex: 1; padding: 40px; }
h2 { font-size: 2rem; margin-bottom: 10px; }
.subtitle { color: #666; margin-bottom: 30px; }
.section-header { font-size: 1.2rem; font-weight: 700; margin: 30px 0 15px 0; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; }

.calendar-wrapper { overflow-x: auto; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
.calendar-strip { display: flex; gap: 15px; padding: 5px; } 
.day-card {
    min-width: 90px; background: var(--white); border: 2px solid transparent; border-radius: 16px;
    padding: 15px 10px; text-align: center; cursor: pointer; transition: 0.3s; box-shadow: var(--shadow);
}
.day-card:hover { transform: translateY(-3px); }
.day-card.active { border-color: var(--primary); background: #fffdf5; }
.day-card .d-name { font-weight: 700; display: block; margin-bottom: 5px; }
.day-card .d-date { font-size: 0.85rem; color: #888; }

.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; margin-bottom: 40px; }
.time-slot {
    background: var(--white); border-radius: 12px; padding: 15px; text-align: center;
    cursor: pointer; box-shadow: var(--shadow); border: 2px solid transparent; transition: 0.2s;
    min-height: 120px;
}
.time-slot:hover { border-color: #bbb; }
.time-slot.selected { border-color: var(--primary); background: #fffdf5; color: var(--dark); font-weight: bold; }

#step-2-form { display: none; background: var(--white); padding: 30px; border-radius: 15px; box-shadow: var(--shadow); margin-bottom: 50px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: #444; }

.form-control {
    width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px;
    font-family: inherit; font-size: 16px; transition: 0.2s;
}
.form-control:focus { border-color: var(--primary); outline: none; }
textarea.form-control { resize: vertical; min-height: 80px; }

.type-toggle { display: flex; gap: 15px; margin-bottom: 20px; background: #eee; padding: 5px; border-radius: 8px; width: fit-content; }
.toggle-btn { padding: 8px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.toggle-btn.active { background: var(--white); color: var(--dark); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.checkbox-wrapper { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; margin: 15px 0; cursor: pointer; }
.info-bar { background: #e3f2fd; padding: 15px; border-radius: 8px; color: #0d47a1; font-size: 0.9rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

.btn-submit {
    width: 100%; background: var(--blue); color: #fff; padding: 16px; border: none;
    border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: 0.3s;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-submit:hover { background: #0056b3; box-shadow: 0 5px 15px rgba(0, 91, 187, 0.3); }
.loader { text-align: center; color: #888; grid-column: 1 / -1; padding: 20px; }

@media (max-width: 900px) {
    .app-container { flex-direction: column; height: auto; }
    .sidebar { width: 100%; padding: 15px; flex-direction: row; overflow-x: auto; align-items: center; gap: 15px; white-space: nowrap; }
    .brand { margin-bottom: 0; margin-right: 20px; font-size: 1.2rem; }
    .cat-label { display: none; }
    .category-item a { padding: 10px; margin-bottom: 0; min-width: 160px; }
    .main-content { padding: 20px 15px; overflow: visible; }
    .form-row { grid-template-columns: 1fr; gap: 10px; }
    .day-card { min-width: 80px; padding: 12px 5px; }
    .slots-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; min-height: 280px;}
}

/* =========================================
   NOWE KLASY ZASTĘPUJĄCE STYLE LINIOWE 
========================================= */

/* Komunikaty i formularz */
.quick-fill-msg { background: #e8f5e9; color: #28a745; padding: 10px; border-radius: 5px; font-weight: bold; }
.no-mt { margin-top: 0; }
.file-upload-group { background: #e3f2fd; padding: 15px; border-radius: 8px; border: 1px dashed #90caf9; margin-bottom: 25px; }
.file-upload-label { color: #0d47a1; margin-bottom: 5px; }
.file-upload-desc { font-size: 0.8rem; color: #555; margin-top: 0; margin-bottom: 10px; }
.file-input { background: #fff; border: none; padding: 5px; }
.form-submit-wrapper { margin-top: 30px; padding-bottom: 50px; }
.submit-note { text-align: center; font-size: 0.8rem; color: #888; margin-top: 10px; }

/* Dojazd */
.dojazd-info-bar { border-left: 4px solid var(--primary); background: #fffdf5; color: #333; }
.calc-loading { flex-direction: column; align-items: flex-start; }
.dojazd-cost-row { display: flex; width: 100%; align-items: center; color: #0d47a1; }
.dojazd-cost-row strong { margin-left: 5px; }
.dojazd-cost-desc { margin-top: 5px; font-size: 0.85rem; color: #555; }
.dojazd-cost-row b { margin-left: 5px; color: #555; }
.dojazd-price { color: var(--primary-dark); font-size: 1.1rem; margin-left: auto; }

/* Loader i Sukces Rezerwacji */
.error-loader { color: red; }
.booking-success-screen { text-align: center; padding: 50px; }
.success-check { color: green; font-size: 3rem; margin-bottom: 20px; }
.btn-return-home { display: inline-block; margin-top: 20px; text-decoration: none; background: #eee; padding: 10px 20px; border-radius: 5px; color: #333; }
.btn-return-home:hover { background: #ddd; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: #1a1a1a; color: #fff; padding: 20px; z-index: 9999; text-align: center; border-top: 3px solid #f4b400; font-family: 'Montserrat', sans-serif; box-sizing: border-box; }
.cookie-text { margin: 0 0 15px 0; font-size: 0.95rem; line-height: 1.5; color: #ddd; }
.cookie-link { color: #f4b400; text-decoration: none; font-weight: bold; white-space: nowrap; }
.cookie-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn-cookie { border: none; padding: 12px 25px; font-weight: bold; border-radius: 5px; cursor: pointer; font-family: inherit; transition: 0.2s; }
.btn-cookie-accept { background: #f4b400; color: #000; }
.btn-cookie-accept:hover { background: #d4a000; }
.btn-cookie-reject { background: #444; color: #fff; }
.btn-cookie-reject:hover { background: #666; }