/* ============================================
   REZERVÁCIA PRENÁJOM - CSS
   ============================================ */

.prenajom-hero {
    background: var(--light);
    padding: 6rem 0 2rem;
}
.prenajom-hero h1 {
    font-size: 42px;
    margin-bottom: 0.5rem;
}
.prenajom-hero p {
    font-size: 22px;
    color: #555;
}
.prenajom-section {
    padding: 2rem 0 4rem;
}
.wizard-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.wizard-card.hidden { display: none; }

.wizard-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}
.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
}
.wizard-header h2 { margin: 0; font-size: 24px; }

/* Produkty mriežka */
.kat-header {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.produkty-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.produkt-card {
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.produkt-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.produkt-card.selected { border-color: var(--accent); background: rgba(255,107,53,0.04); }
.produkt-img { height: 180px; overflow: hidden; background: #fff; display:flex; align-items:center; justify-content:center; }
.produkt-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.produkt-info { padding: 0.9rem; }
.produkt-info h4 { font-size: 22px; margin: 0 0 0.4rem; line-height: 1.4; }
.produkt-info p { font-size: 22px; color: #666; margin: 0 0 0.5rem; line-height: 1.4; }
.produkt-cena { font-size: 22px; font-weight: 700; color: var(--primary); }
.dostupnost-badge { font-size: 22px; color: #28a745; margin-top: 0.25rem; }
.select-check {
    position: absolute;
    top: 8px; right: 8px;
    width: 28px; height: 28px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    opacity: 0;
    transition: opacity 0.2s;
}
.produkt-card.selected .select-check { opacity: 1; }

/* Termín riadky */
.termin-row {
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.termin-produkt-nazov {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 22px;
}
.remove-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 2px 8px;
    cursor: pointer;
    color: #999;
    font-size: 22px;
}
.remove-btn:hover { color: #e00; border-color: #e00; }
.termin-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}
.cena-row { margin-top: 0.75rem; font-size: 22px; color: #333 !important; }
.vypocet-text { color: #333 !important; }
.vypocet-text strong { color: var(--primary) !important; }
.termin-row { background: white; color: #333; }
.dostupnost-info { margin-top: 0.5rem; font-size: 22px; }
.status-ok { color: #28a745; }
.status-warn { color: #e67e00; background: #fff3e0; padding: 0.4rem 0.75rem; border-radius: 6px; display: block; }
.status-err { color: #dc3545; }

/* Dark theme overrides */
html.dark-theme .prenajom-hero {
    background: #121212;
    color: #f2f2f2;
}
html.dark-theme .prenajom-hero p {
    color: #cccccc;
}
html.dark-theme .wizard-card {
    background: #1e1e1e;
    color: #f2f2f2;
}
html.dark-theme .termin-row {
    background: #1e1e1e;
    color: #f2f2f2;
}
html.dark-theme .kalkulacia-box {
    background: #181818;
}
html.dark-theme .zhrnutie-box {
    background: #181818;
    border-color: #333;
}
html.dark-theme .form-group label {
    color: #f2f2f2;
}
html.dark-theme .form-group input,
html.dark-theme .form-group textarea,
html.dark-theme .form-group select {
    background: #181818;
    border-color: #444;
    color: #f2f2f2;
}

/* Kalkulácia */
.kalkulacia-box {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.kalkulacia-box h3 { margin: 0 0 1rem; font-size: 22px; }
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 22px;
    border-bottom: 1px solid #eee;
}
.kalkulacia-total {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0 0;
    font-size: 22px;
    font-weight: 700;
}
.kalkulacia-note { font-size: 22px; color: #999; margin: 0.5rem 0 0; }

/* Zhrnutie */
.zhrnutie-box {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.zhrn-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 22px;
    border-bottom: 1px solid #dde8f5;
}
.zhrn-row.total {
    font-weight: 700;
    font-size: 22px;
    border-bottom: none;
    padding-top: 0.75rem;
}

/* Navigácia */
.wizard-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-between;
}
.pridaj-produkt { margin-top: 1rem; }

/* Form skupiny */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.form-group label {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}
.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 22px;
    font-family: inherit;
    transition: border-color 0.2s;
    color: #333;
    background: white;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-group small { font-size: 22px; color: #888; }

/* Responsive */
@media (max-width: 768px) {
    .termin-inputs { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .wizard-card { padding: 1.5rem; }
}
@media (max-width: 480px) {
    .termin-inputs { grid-template-columns: 1fr; }
    .produkty-row { grid-template-columns: 1fr; }
}
