/* ===================================
   Booking Page — Single Screen Layout
   =================================== */

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

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    color: #2d2d2d;
    font-size: 15px;
}

/* ===================================
   Page Header
   =================================== */
.page-header {
    background: white;
    border-bottom: 1px solid #e8e8e8;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-link {
    color: #757575;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: color 0.2s;
}
.back-link:hover { color: #c9a961; }

.header-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Exact same logo as main site */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-brand:hover .logo-icon {
    background: #c9a961;
    color: #2d2d2d;
}

.logo-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d2d2d;
    color: #c9a961;
    font-size: 1.2rem;
    border: 2px solid #c9a961;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2d2d2d;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.brand-main {
    display: block;
    font-weight: 600;
    color: #2d2d2d;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.brand-sub {
    display: block;
    font-size: 0.75rem;
    color: #c9a961;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-top: 2px;
}

.header-location {
    font-size: 0.8rem;
    color: #757575;
    white-space: nowrap;
}

/* ===================================
   Booking Wrapper
   =================================== */
.booking-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===================================
   Steps Nav (tab bar)
   =================================== */
.steps-nav {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.step-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: default;
    opacity: 0.4;
    transition: opacity 0.3s;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
}

.step-tab.active {
    opacity: 1;
}

.step-tab.completed {
    opacity: 0.7;
}

.step-tab-icon {
    width: 34px;
    height: 34px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    color: #757575;
}

.step-tab.active .step-tab-icon {
    background: #c9a961;
    border-color: #c9a961;
    color: white;
}

.step-tab.completed .step-tab-icon {
    background: #c9a961;
    border-color: #c9a961;
    color: white;
}

/* Dividers between steps */
.steps-nav .step-tab + .step-tab::before {
    content: '';
    display: block;
    width: 1px;
    height: 20px;
    background: #e8e8e8;
    margin-right: 4px;
}

/* ===================================
   Booking Box
   =================================== */
.booking-box {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Step Panel */
.step-panel {
    display: none;
    padding: 30px 36px;
    flex: 1;
    min-height: 420px;
}

.step-panel.active {
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* ===================================
   Navigation inside box
   =================================== */
.box-nav {
    border-top: 1px solid #e8e8e8;
    padding: 16px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.btn-back {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: #757575;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.2s;
}
.btn-back:hover { color: #2d2d2d; }

.btn-next {
    background: #c9a961;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 28px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-next:hover {
    background: #a88e4f;
    transform: translateY(-1px);
}
.btn-next:disabled {
    background: #d0c4a0;
    cursor: not-allowed;
    transform: none;
}

/* ===================================
   Step 1: Services
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    flex: 1;
    align-content: start;
}

.service-card {
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.service-card:hover {
    border-color: #c9a961;
    background: #fffcf5;
}
.service-card.selected {
    border-color: #c9a961;
    background: #fffcf5;
    box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}
.service-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: #c9a961;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-img {
    width: 46px;
    height: 46px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-info { flex: 1; min-width: 0; }
.service-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.service-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.service-dur {
    font-size: 0.8rem;
    color: #757575;
}
.service-dur::before { content: 'Времетраене: '; }
.service-price-tag {
    background: #c9a961;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 5px;
}

/* ===================================
   Step 2: Date & Time
   =================================== */
.datetime-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    flex: 1;
}

/* Calendar */
.calendar-box {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.cal-header span {
    font-weight: 600;
    font-size: 1rem;
    text-transform: capitalize;
}
.cal-nav {
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}
.cal-nav:hover { background: #c9a961; color: white; border-color: #c9a961; }

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 8px;
}
.cal-weekdays div {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #aaa;
    padding: 4px 0;
    text-transform: uppercase;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.cal-day:hover:not(.disabled):not(.other-month) {
    background: #f5f5f5;
    border-color: #e0e0e0;
}
.cal-day.selected {
    background: #c9a961;
    color: white;
    font-weight: 600;
    border-color: #c9a961;
}
.cal-day.today { border-color: #c9a961; }
.cal-day.disabled, .cal-day.other-month { color: #d0d0d0; cursor: not-allowed; }

/* Availability coloring */
.cal-day.day-available:not(.selected):not(.disabled) {
    background: #f0fdf4;
    color: #166534;
}
.cal-day.day-available:not(.selected):not(.disabled):hover {
    background: #dcfce7;
    border-color: #86efac;
}

.cal-day.day-closed:not(.selected):not(.disabled) {
    background: #fef2f2;
    color: #991b1b;
    cursor: pointer;
}
.cal-day.day-closed:not(.selected):not(.disabled):hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Time slots */
.timeslots-box {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.timeslots-box h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2d2d2d;
}
.timeslots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex: 1;
    align-content: start;
}
.no-date-msg {
    color: #aaa;
    font-size: 0.85rem;
    grid-column: 1 / -1;
    padding: 20px 0;
    text-align: center;
}

.no-date-msg.closed-day {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 16px;
    font-weight: 500;
}
.time-slot-btn {
    padding: 10px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.time-slot-btn:hover:not(.disabled) {
    border-color: #c9a961;
    background: #fffcf5;
}
.time-slot-btn.selected {
    background: #f5e6d3;
    border-color: #c9a961;
    font-weight: 600;
}
.time-slot-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ===================================
   Step 3: Form
   =================================== */
.info-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #c9a961; }
.form-group.error input,
.form-group.error .phone-row { border-color: #e53e3e; }

.form-error {
    display: none;
    color: #e53e3e;
    font-size: 0.78rem;
}
.form-group.error .form-error { display: block; }

.phone-row {
    display: flex;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.phone-row:focus-within { border-color: #c9a961; }
.phone-flag {
    background: #f5f5f5;
    border-right: 1px solid #e8e8e8;
    padding: 13px 14px;
    font-size: 0.9rem;
    white-space: nowrap;
}
.phone-row input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    padding: 13px 14px;
}
.phone-row input:focus { box-shadow: none; }

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===================================
   Step 4: Confirmation
   =================================== */
.confirm-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 20px;
}
.confirm-check {
    width: 64px;
    height: 64px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}
.confirm-panel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}
.confirm-panel > p { color: #757575; font-size: 0.9rem; }

.confirm-summary {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px 28px;
    text-align: left;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}
.sum-row:last-child { border-bottom: none; padding-bottom: 0; }
.sum-label { font-weight: 600; color: #2d2d2d; }
.sum-value { color: #555; }

.btn-back-home {
    background: #c9a961;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    margin-top: 8px;
}
.btn-back-home:hover { background: #a88e4f; }

/* ===================================
   Special Date Notice
   =================================== */
.special-date-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.special-date-notice.closed {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.special-date-notice.custom {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.notice-icon { font-size: 1.1rem; flex-shrink: 0; }

.special-date-notice div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.special-date-notice strong {
    font-weight: 600;
    font-size: 0.88rem;
}

.special-date-notice span {
    opacity: 0.8;
    font-size: 0.8rem;
}

/* ===================================
   Booking Disabled State
   =================================== */
.booking-disabled-box {
    max-width: 520px;
    margin: 0 auto;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.booking-disabled-icon {
    font-size: 3.5rem;
    margin-bottom: 8px;
}

.booking-disabled-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d2d2d;
    line-height: 1.3;
}

.booking-disabled-box > p {
    color: #757575;
    font-size: 0.95rem;
    margin: 0;
}

.booking-disabled-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.contact-phone {
    background: #c9a961;
    color: white;
}
.contact-phone:hover { background: #a88e4f; transform: translateY(-2px); }

.contact-messenger {
    background: #0084ff;
    color: white;
}
.contact-messenger:hover { background: #0070d6; transform: translateY(-2px); }

.back-home-link {
    color: #757575;
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 8px;
    transition: color 0.2s;
}
.back-home-link:hover { color: #c9a961; }

/* ===================================
   Mobile
   =================================== */
@media (max-width: 768px) {
    .page-header {
        padding: 12px 16px;
    }
    .header-location { display: none; }
    .header-brand { font-size: 0.95rem; }

    .booking-wrapper { padding: 12px; gap: 10px; }

    .steps-nav { padding: 10px 12px; gap: 0; overflow-x: auto; }
    .step-tab { padding: 6px 10px; gap: 6px; font-size: 0.75rem; min-width: auto; }
    .step-tab span { display: none; }
    .step-tab-icon { width: 30px; height: 30px; }
    .steps-nav .step-tab + .step-tab::before { display: none; }

    .step-panel { padding: 20px 16px; min-height: 300px; }
    .panel-title { font-size: 1.1rem; margin-bottom: 16px; }

    .services-grid { grid-template-columns: 1fr; gap: 10px; }
    .service-card { padding: 14px; }

    .datetime-layout { grid-template-columns: 1fr; gap: 16px; }
    .timeslots-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

    .form-row { grid-template-columns: 1fr; gap: 12px; }

    .box-nav { padding: 12px 16px; }
    .btn-next { padding: 10px 20px; font-size: 0.85rem; }
}
