/* === BOOKING FORM SHARED STYLES === */

.bk-form-section {
    background: #fff;
    padding: 72px 24px 80px;
}

.bk-form-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.bk-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.bk-form-header h2 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.bk-form-header p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.bk-form-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 12px 48px rgba(0,0,0,0.04);
}

/* Trust bar below form */
.bk-trust-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.bk-trust-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

.bk-trust-bar-item svg {
    width: 16px;
    height: 16px;
    color: var(--gray-300);
}

/* === FORM INTERNALS === */
.form-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 36px;
}

.form-progress-segment {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--gray-100);
    transition: background 0.5s var(--ease-out-expo);
    position: relative;
}

.form-progress-segment.active { background: var(--accent); }
.form-progress-segment.done { background: var(--accent); }

.form-progress-label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gray-400);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-progress-segment.active .form-progress-label { color: var(--accent); }

.bk-form-card .step {
    display: none;
    animation: bkStepIn 0.4s var(--ease-out-expo);
}

.bk-form-card .step.active { display: block; }

@keyframes bkStepIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header { margin-bottom: 28px; }

.step-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 4px;
}

.step-subtitle {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* Service list */
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .service-list { grid-template-columns: 1fr; } }
.service-option { position: relative; cursor: pointer; }
.service-option input { position: absolute; opacity: 0; pointer-events: none; }

.service-option-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px;
    background: #fff;
    border: 2px solid var(--gray-100);
    border-radius: 14px;
    transition: all 0.25s var(--ease-out-expo);
    position: relative;
    min-height: 120px;
}

.service-option-card:hover {
    border-color: var(--gray-200);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.service-option input:checked + .service-option-card {
    border-color: var(--accent);
    background: #FFF7F3;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.08);
}

.service-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s;
    color: var(--gray-500);
}

.service-option input:checked + .service-option-card .service-option-icon {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent);
}

.service-option-text { flex: 1; }

.service-option-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-900);
    display: block;
    margin-bottom: 2px;
}

.service-option-desc {
    font-size: 0.82rem;
    color: var(--gray-400);
    display: block;
}

.service-option-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s;
    position: absolute;
    top: 24px;
    right: 24px;
}

.service-option-check svg {
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s var(--ease-out-expo);
}

.service-option input:checked + .service-option-card .service-option-check {
    border-color: var(--accent);
    background: var(--accent);
}

.service-option input:checked + .service-option-card .service-option-check svg {
    opacity: 1;
    transform: scale(1);
}

/* Detail fields */
.detail-fields { display: flex; flex-direction: column; gap: 22px; }
.detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.bk-form-card .form-group label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    display: block;
}

.bk-form-card input[type="text"],
.bk-form-card input[type="email"],
.bk-form-card input[type="tel"],
.bk-form-card select,
.bk-form-card textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--gray-900);
    background: #fff;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.bk-form-card input::placeholder,
.bk-form-card textarea::placeholder { color: var(--gray-300); }

.bk-form-card input:focus,
.bk-form-card select:focus,
.bk-form-card textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.08);
}

.bk-form-card select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
    display: inline-block;
    padding: 9px 16px;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-weight: 500;
}

.chip:hover { border-color: var(--gray-300); color: var(--gray-900); }

.chip.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* Calendar */
.calendar-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.calendar { min-width: 0; }

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1.5px solid var(--gray-200);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-500);
    font-size: 1.1rem;
    font-weight: 700;
}

.calendar-nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.calendar-nav-btn:disabled { opacity: 0.3; pointer-events: none; }

.calendar-month {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
}

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

.calendar-weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.82rem;
    cursor: default;
    color: var(--gray-300);
    transition: all 0.2s ease;
}

.calendar-day.available { color: var(--gray-700); cursor: pointer; font-weight: 500; }
.calendar-day.available:hover { background: #FFF1EB; color: var(--accent); }
.calendar-day.selected { background: var(--accent); color: #fff; font-weight: 600; }

.calendar-day.today { position: relative; }
.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}
.calendar-day.selected.today::after { background: #fff; }

.time-slots-panel { min-width: 0; }

.time-slots-date {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-900);
    margin-bottom: 14px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
}

.time-slots-grid::-webkit-scrollbar { width: 3px; }
.time-slots-grid::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }

.time-slot {
    padding: 11px 14px;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover { border-color: var(--accent); color: var(--accent); }
.time-slot.selected { background: var(--accent); border-color: var(--accent); color: #fff; }

.time-slots-empty {
    text-align: center;
    padding: 36px 16px;
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* Contact fields */
.bk-form-card .contact-fields { display: flex; flex-direction: column; gap: 16px; }
.bk-form-card .contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.bk-form-card .form-privacy { margin-top: 4px; }

.bk-form-card .form-privacy .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.bk-form-card .form-privacy .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.bk-form-card .form-privacy .checkbox-label span {
    font-size: 0.8rem;
    color: var(--gray-400);
    line-height: 1.5;
}

.bk-form-card .form-privacy a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Buttons */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 14px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: transparent;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-500);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-primary);
}

.btn-back:hover { border-color: var(--gray-300); color: var(--gray-700); }

.bk-form-card .btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    font-family: var(--font-primary);
    margin-left: auto;
}

.bk-form-card .btn-next:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.3);
}

.bk-form-card .btn-next:disabled { opacity: 0.35; pointer-events: none; }
.bk-form-card .btn-next.submitting { pointer-events: none; }

.bk-form-card .btn-next .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bkSpin 0.6s linear infinite;
}

.bk-form-card .btn-next.submitting .spinner { display: block; }
.bk-form-card .btn-next.submitting .btn-text { display: none; }

@keyframes bkSpin { to { transform: rotate(360deg); } }

.bk-form-card .form-error {
    display: none;
    padding: 12px 16px;
    background: #FEF2F2;
    border: 1.5px solid #FECACA;
    border-radius: 12px;
    color: #DC2626;
    font-size: 0.85rem;
    margin-top: 14px;
    font-weight: 500;
}

.bk-form-card .form-error.show { display: block; }

/* Success */
.booking-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.booking-success.show {
    display: block;
    animation: bkStepIn 0.5s var(--ease-out-expo);
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #F0FDF4;
    border: 2px solid #BBF7D0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg { width: 26px; height: 26px; color: #16A34A; }

.booking-success h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.booking-success p { color: var(--gray-500); font-size: 0.92rem; line-height: 1.7; margin-bottom: 6px; }

.success-summary {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 24px 0;
    text-align: left;
}

.success-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
}

.success-summary-row:not(:last-child) { border-bottom: 1px solid var(--gray-100); }
.success-summary-label { color: var(--gray-400); }
.success-summary-value { font-weight: 600; color: var(--gray-900); }

.success-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.success-back-link:hover { opacity: 0.8; }

/* File upload area */
.bk-form-card .file-upload-area {
    border: 2px dashed var(--gray-200) !important;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.bk-form-card .file-upload-area:hover {
    border-color: var(--accent) !important;
    background: rgba(255,107,53,0.03);
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .bk-form-card { padding: 28px 22px; }
    .calendar-wrapper { grid-template-columns: 1fr; gap: 20px; }
    .time-slots-grid {
        max-height: none;
        grid-template-columns: repeat(3, 1fr);
    }
    .detail-row, .bk-form-card .contact-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .bk-form-card { padding: 24px 18px; }
    .time-slots-grid { grid-template-columns: 1fr 1fr; }
    .step-nav { flex-direction: column; }
    .bk-form-card .btn-next { width: 100%; justify-content: center; }
    .btn-back { width: 100%; justify-content: center; }
    .bk-trust-bar { gap: 16px; }
}
