/* ============================================================
   Nexbo – Főoldal stílusok
   Bootstrap 5 felett, letisztult fehér/minimalista design
   ============================================================ */

/* ── Változók ────────────────────────────────────────────────────────────── */
:root {
    --ib-primary:    #0d6efd;
    --ib-primary-lt: #e8f0fe;
    --ib-radius:     0.75rem;
    --ib-shadow:     0 4px 20px rgba(0,0,0,.07);
    --ib-border:     #e9ecef;
    --ib-text:       #212529;
    --ib-muted:      #6c757d;
}

/* ── Alap ────────────────────────────────────────────────────────────────── */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--ib-text);
    background: #f8f9fa;
}

/* ── Navigáció ───────────────────────────────────────────────────────────── */
.ib-main-nav {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,.9) !important;
    z-index: 1050;
}

.ib-nav-wrap {
    min-height: 74px;
}

.ib-logo img {
    width: 164px;
    height: 36px;
    display: block;
}

.ib-nav-center .nav-link {
    font-weight: 600;
    color: #0f172a;
    border-radius: .6rem;
    padding: .55rem .8rem;
}

.ib-nav-center .nav-link:hover,
.ib-nav-center .nav-link:focus {
    background: #f1f5ff;
    color: #0d6efd;
}

.ib-menu {
    min-width: 360px;
    border: 1px solid #e6eaf2;
    border-radius: 1rem;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .12);
    overflow: hidden;
}

.ib-menu .dropdown-item {
    padding: .75rem .9rem;
    border-bottom: 1px solid #f1f4f9;
}

.ib-menu .dropdown-item:last-child {
    border-bottom: 0;
}

.ib-menu .dropdown-item:hover {
    background: #f8faff;
}

.ib-item-title {
    display: block;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: .1rem;
}

.ib-item-desc {
    display: block;
    font-size: .84rem;
    color: #64748b;
}

.ib-nav-right .btn-link {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

.ib-nav-right .btn-link:hover {
    color: #0d6efd;
}

.ib-register-btn {
    border-radius: .7rem;
    padding: .5rem 1rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(13,110,253,.25);
}

/* ── Hero szekció ────────────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

@media (max-width: 1199px) {
    .ib-nav-center,
    .ib-nav-right {
        margin-top: .5rem;
    }

    .ib-menu {
        min-width: 100%;
    }

    .ib-register-btn {
        display: inline-block;
        margin-top: .3rem;
    }
}

.hero-media-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: .22;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.65), rgba(255,255,255,.86));
    z-index: 0;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.next-slot-badge {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--ib-border);
    border-radius: 999px;
    padding: .5rem .9rem;
    font-size: .85rem;
}

.hero-pill {
    backdrop-filter: blur(2px);
}

/* ── Lépésjelző ──────────────────────────────────────────────────────────── */
.step-indicator {
    display: flex;
    align-items: center;
}

.step {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e9ecef;
    color: var(--ib-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 600;
    transition: .2s;
}

.step.active .step-num {
    background: var(--ib-primary);
    color: #fff;
}

.step.completed .step-num {
    background: #198754;
    color: #fff;
}

.step-label {
    font-size: .8rem;
    color: var(--ib-muted);
    font-weight: 500;
}

.step.active .step-label { color: var(--ib-primary); }
.step.completed .step-label { color: #198754; }

.step-line {
    flex: 1;
    height: 2px;
    background: #dee2e6;
    margin: 0 .5rem;
}

/* ── Szolgáltatás kártyák ────────────────────────────────────────────────── */
.service-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    border: 2px solid var(--ib-border);
    border-radius: var(--ib-radius);
    cursor: pointer;
    transition: all .15s ease;
    background: #fff;
}

.service-card:hover {
    border-color: var(--ib-primary);
    background: var(--ib-primary-lt);
    transform: translateY(-1px);
}

.service-card.selected {
    border-color: var(--ib-primary);
    background: var(--ib-primary-lt);
    box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

.service-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Időpont rács ─────────────────────────────────────────────────────────── */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: .5rem;
}

.slot-btn {
    padding: .5rem .25rem;
    text-align: center;
    border: 2px solid var(--ib-border);
    border-radius: .5rem;
    background: #fff;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    color: var(--ib-text);
}

.slot-btn:hover {
    border-color: var(--ib-primary);
    background: var(--ib-primary-lt);
    color: var(--ib-primary);
}

.slot-btn.selected {
    border-color: var(--ib-primary);
    background: var(--ib-primary);
    color: #fff;
}

/* ── Foglalás összefoglaló ───────────────────────────────────────────────── */
.booking-summary {
    background: var(--ib-primary-lt);
    border-radius: .5rem;
    padding: .75rem 1rem;
    font-size: .875rem;
    color: #1a3a6c;
}

/* ── Részlet sor (confirmation) ──────────────────────────────────────────── */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: .5rem 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: .9rem;
}
.detail-row:last-child { border-bottom: none; }

/* ── Szolgáltatás info kártya (főoldalon lent) ───────────────────────────── */
.service-info-card {
    transition: transform .15s, box-shadow .15s;
}
.service-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ib-shadow) !important;
}

.service-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-card {
    --accent: #0d6efd;
    position: relative;
    border: 2px solid color-mix(in srgb, var(--accent) 28%, #e9ecef);
    border-radius: 1rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, #fff) 0%, #fff 35%);
    padding: 1.25rem;
    transition: transform .18s ease, box-shadow .18s ease;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.package-card.is-featured {
    border-color: #d4a017;
    box-shadow: 0 10px 28px rgba(212,160,23,.18);
}

.package-badge {
    position: absolute;
    top: -11px;
    right: 12px;
    background: linear-gradient(90deg, #f1c40f, #f39c12);
    color: #2b2b2b;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
}

.package-price {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    color: color-mix(in srgb, var(--accent) 70%, #212529);
}

.package-price small {
    font-size: .8rem;
    font-weight: 500;
    color: var(--ib-muted);
}

.package-features li {
    margin-bottom: .5rem;
    font-size: .92rem;
}

.package-features i {
    color: color-mix(in srgb, var(--accent) 70%, #198754);
}

.btn-package {
    background: color-mix(in srgb, var(--accent) 85%, #0d6efd);
    border-color: color-mix(in srgb, var(--accent) 85%, #0d6efd);
    color: #fff;
}

.btn-package:hover {
    color: #fff;
    opacity: .9;
}

.service-detail-block {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #edf0f3;
}

.service-detail-placeholder {
    min-height: 280px;
    background: repeating-linear-gradient(45deg, #f1f3f5, #f1f3f5 10px, #f8f9fa 10px, #f8f9fa 20px);
}

.service-benefits li {
    margin-bottom: .45rem;
}

.service-benefits i {
    color: #198754;
}

.how-card {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: .9rem;
    padding: 1.25rem;
    text-align: center;
    position: relative;
}

.how-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin: 0 auto .75rem;
    display: grid;
    place-items: center;
    background: var(--ib-primary-lt);
    color: var(--ib-primary);
    font-size: 1.2rem;
}

.how-step {
    font-weight: 700;
    color: var(--ib-primary);
    margin-bottom: .4rem;
}

.review-card {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: .9rem;
    padding: 1.2rem;
}

/* ── Flatpickr testreszabás ──────────────────────────────────────────────── */
.flatpickr-calendar {
    border-radius: var(--ib-radius) !important;
    box-shadow: var(--ib-shadow) !important;
    border: 1px solid var(--ib-border) !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--ib-primary) !important;
    border-color: var(--ib-primary) !important;
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
    background: var(--ib-primary-lt) !important;
    border-color: var(--ib-primary) !important;
}

/* ── Lábléc ──────────────────────────────────────────────────────────────── */
.footer {
    font-size: .85rem;
}

/* ── Konfirmáció oldal checkmark animáció ────────────────────────────────── */
.success-checkmark {
    animation: popIn .4s cubic-bezier(.175,.885,.32,1.275) both;
}
@keyframes popIn {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Reszponzív ──────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .hero-section { min-height: auto; padding: 2rem 0; }
    .slots-grid   { grid-template-columns: repeat(3, 1fr); }
}
