/* mynails.vip 前台预约 v2 — 时间先选，服务下拉+资料合一 */

.mynails-booking-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
}

/* === 头部 === */
.booking-header {
    text-align: center;
    margin-bottom: 36px;
}

.booking-header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 44px;
    color: #C41E3A;
    margin: 0 0 8px;
}

.booking-header p {
    color: #999;
    font-size: 15px;
}

/* ========== 步骤指示器 v2 ========== */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin: 0 auto 32px;
    max-width: 320px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1 1 0;
    min-width: 0;
}

.step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.step-dot.active {
    background: #C41E3A;
    border-color: #C41E3A;
    color: #fff;
}

.step-dot.completed {
    background: #fff;
    border-color: #C41E3A;
    color: #C41E3A;
}

.step-item:hover .step-dot:not(.active) {
    border-color: #C41E3A;
    color: #C41E3A;
}

.step-label {
    font-size: 12px;
    color: #bbb;
    text-align: center;
    white-space: nowrap;
    font-weight: 400;
}

.step-label.active {
    color: #C41E3A;
    font-weight: 500;
}

.step-label.completed {
    color: #C41E3A;
}

.btn-continue {
    background: #C41E3A;
    color: #fff;
    border: none;
    padding: 14px 48px;
    border-radius: 0;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-continue:hover {
    background: #a0182e;
}

.selected-date-info {
    background: #fff5f5;
    border: 1px solid #ffd7d7;
    border-radius: 0;
    box-sizing: border-box;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 15px;
    color: #C41E3A;
    font-weight: 500;
}

.slots-loading,
.slots-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
    background: #fafafa;
    border-radius: 0;
    box-sizing: border-box;
    border: 1px solid #eee;
}

.slot-end {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

.slot-btn.selected .slot-end {
    opacity: 0.9;
}

.booking-summary {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 0;
    box-sizing: border-box;
    padding: 20px;
    margin: 24px 0;
}

.booking-summary h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 14px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.summary-label {
    color: #888;
}

.summary-value {
    color: #333;
    font-weight: 500;
}

.btn-back {
    background: none;
    border: 1px solid #ddd;
    border-radius: 0;
    box-sizing: border-box;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-back:hover {
    border-color: #C41E3A;
    color: #C41E3A;
}

.booking-step {
    background: #fff;
    border-radius: 0;
    box-sizing: border-box;
    padding: 36px;
    border: 1px solid #e5e5e5;
}

.booking-step h2 {
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 24px;
    padding-left: 14px;
    border-left: 4px solid #C41E3A;
}

.booking-step h3 {
    font-size: 16px;
    color: #666;
    margin: 24px 0 14px;
    font-weight: 500;
}

.calendar-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

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

.calendar-nav button {
    background: #fff;
    border: 1px solid #ddd;
    width: 36px;
    height: 36px;
    border-radius: 0;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 16px;
    color: #888;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.calendar-nav button:hover {
    border-color: #C41E3A;
    color: #C41E3A;
    background: #fff5f5;
}

.calendar-nav span {
    font-weight: 600;
    font-size: 17px;
    text-transform: capitalize;
}

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

.calendar-grid .day-label {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    padding: 6px 4px 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid .day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    border: 2px solid transparent;
    transition: all 0.15s;
}

.calendar-grid .day-cell:hover:not(.disabled):not(.sunday) {
    border-color: #C41E3A;
    background: #fff5f5;
}

.calendar-grid .day-cell.selected {
    background: #C41E3A;
    color: #fff;
    border-color: #C41E3A;
}

.calendar-grid .day-cell.disabled {
    color: #ddd;
    cursor: not-allowed;
}

.calendar-grid .day-cell.sunday {
    color: #ddd;
    cursor: not-allowed;
    background: #f9f9f9;
}

.calendar-grid .day-cell.today {
    border: 2px solid #D4AF37;
    color: #D4AF37;
    font-weight: 700;
}

/* === 时段 === */
.slots-grid {
    display: block;
}

.time-slot {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    box-sizing: border-box;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.time-slot:hover:not(.booked):not(.closed) {
    border-color: #C41E3A;
    background: #fff5f5;
}

.time-slot.selected {
    border-color: #C41E3A;
    background: #C41E3A;
    color: #fff;
}

.time-slot.booked {
    background: #f5f5f5;
    color: #ddd;
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: transparent;
}

.time-slot.closed {
    background: #f5f5f5;
    color: #ddd;
    cursor: not-allowed;
    border-color: transparent;
}

/* === 服务下拉 === */
.service-dropdown {
    position: relative;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    font-size: 15px;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.service-dropdown:hover {
    border-color: #C41E3A;
}

.service-dropdown .dropdown-arrow {
    font-size: 10px;
    color: #aaa;
    margin-left: 8px;
}

.service-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-top: none;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-dropdown-menu.open {
    display: block;
}

.dropdown-search {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.dropdown-options {
    max-height: 260px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-option:hover {
    background: #fff5f5;
}

.dropdown-option .option-name {
    font-size: 14px;
    color: #1a1a1a;
}

.option-duration {
    font-size: 13px;
    color: #bbb;
}

/* === 表单 === */
.form-group {
    position: relative;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

.form-row input,
.form-row select,
textarea {
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    box-sizing: border-box;
    font-size: 15px;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: all 0.2s;
    outline: none;
}

.booking-step .form-row input {
    padding-left: 20px;
}

.form-row input:focus,
textarea:focus {
    border-color: #C41E3A;
    box-shadow: 0 0 0 3px rgba(196,30,58,0.06);
}

.form-row input::placeholder,
textarea::placeholder {
    color: #ccc;
}

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

.booking-summary {
    background: #fff;
    border-radius: 0;
    box-sizing: border-box;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #eee;
}

.booking-summary h3 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #C41E3A;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #999;
    font-size: 13px;
}

.detail-value {
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: #C41E3A;
    color: #fff;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #a01830;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(196,30,58,0.25);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    box-sizing: border-box;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.btn-back:hover {
    border-color: #C41E3A;
    color: #C41E3A;
}

.success-message {
    text-align: center;
    padding: 48px 32px;
}

.success-message h2 {
    color: #2d8a4e;
    font-size: 28px;
    margin-bottom: 16px;
    font-family: 'Dancing Script', cursive;
}

.success-message p {
    color: #666;
    font-size: 15px;
    margin-bottom: 10px;
}

.success-message strong {
    color: #C41E3A;
    font-size: 22px;
}

@media (max-width: 768px) {
    .mynails-booking-page {
        padding: 24px 16px;
    }
    .booking-header h1 {
        font-size: 36px;
    }
    .booking-step {
        padding: 24px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .slots-grid {
        display: block;
    }
}

@media (max-width: 480px) {
    .booking-header h1 {
        font-size: 28px;
    }
    .slots-grid {
        display: block;
    }
    .step-indicator {
        max-width: 280px;
    }
}

/* === 时段选择 时/分 === */
.time-step {
    margin-bottom: 12px;
}
.time-step-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.back-to-hour {
    cursor: pointer;
    font-size: 16px;
    color: #C41E3A;
    padding: 2px 6px;
    border: 1px solid #C41E3A;
    line-height: 1;
}
.back-to-hour:hover {
    background: #C41E3A;
    color: #fff;
}
.hour-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
}

.minute-tags {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.tag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 44px;
    padding: 0 12px;
    border: 2px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    box-sizing: border-box;
}

.tag-btn:hover {
    border-color: #C41E3A;
    color: #C41E3A;
}

.tag-btn.selected {
    background: #C41E3A;
    color: #fff;
    border-color: #C41E3A;
    font-weight: 600;
}

.minute-tags .tag-btn {
    width: 100%;
}

.tag-btn.disabled {
    color: #ddd;
    border-color: #eee;
    cursor: default;
    pointer-events: none;
}
/* === 时段选择 时/分 — 移动端适配 === */
@media (max-width: 480px) {
    .hour-tags {
        flex-wrap: wrap;
        gap: 6px;
    }
    .minute-tags {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    .tag-btn {
        min-width: 44px;
        padding: 0 8px;
        font-size: 13px;
        height: 40px;
    }
}
