/* ========================================
   Lampron - Reservation, Auth & Customer Pages
   Shared styles used by frontend layout pages
   ======================================== */

/* ========== RESERVATION PAGES ========== */
.reservation-page { padding: 40px 0 60px; }
.reservation-page h1 { text-align: center; font-size: 36px; font-weight: 700; color: #061D5B; margin-bottom: 32px; }

.res-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 28px; margin-bottom: 28px; }
.res-card h2 { font-size: 22px; font-weight: 600; color: #32323B; margin-bottom: 20px; }
.res-card h2 i { color: #3155E7; margin-right: 10px; }
.res-card h3 { font-size: 18px; font-weight: 600; color: #32323B; margin-bottom: 12px; }
.res-card-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.res-card-header h2 { margin-bottom: 0; }

/* Quotation Summary */
.quotation-summary { display: flex; flex-wrap: wrap; gap: 24px; }
.qs-item { flex: 1; min-width: 140px; }
.qs-label { font-size: 13px; color: #888; margin-bottom: 4px; }
.qs-value { font-size: 16px; font-weight: 600; color: #32323B; }
.qs-value-highlight { color: #3155E7; }

/* Reservation Calendar */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.cal-header { font-size: 13px; font-weight: 600; color: #666; text-align: center; padding: 8px 0; }
.cal-day { text-align: center; padding: 10px 0; border-radius: 8px; font-size: 14px; cursor: default; }
.cal-day.available { background: #e6f9ec; color: #1a8a3f; cursor: pointer; font-weight: 500; }
.cal-day.available:hover { background: #c6f0d4; }
.cal-day.unavailable { background: #f3f3f3; color: #bbb; }
.cal-day.selected { background: #3155E7; color: #fff; font-weight: 600; }
.cal-day.empty { background: transparent; }

.calendar-month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calendar-month-nav span { font-size: 18px; font-weight: 600; color: #32323B; }
.calendar-month-nav button { background: none; border: 1px solid #ddd; border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.calendar-month-nav button:hover { background: #f3f4f6; }

.calendar-legend { margin-top: 12px; display: flex; gap: 16px; font-size: 13px; color: #666; }
.legend-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }
.legend-available { background: #e6f9ec; }
.legend-unavailable { background: #f3f3f3; }
.legend-selected { background: #3155E7; }

/* Time Slots */
.time-slots { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.time-slot-option { position: relative; }
.time-slot-option input { position: absolute; opacity: 0; }
.time-slot-option label { display: block; padding: 14px 28px; border: 2px solid #e0e0e0; border-radius: 10px; cursor: pointer; font-size: 15px; color: #32323B; transition: all 0.2s; }
.time-slot-option label .slot-icon { margin-right: 8px; color: #3155E7; }
.time-slot-option input:checked + label { border-color: #3155E7; background: #eef1ff; color: #3155E7; font-weight: 600; }

/* Packaging */
.packaging-section { border-top: 1px solid #eee; padding-top: 20px; margin-top: 20px; }
.packaging-section-no-border { border-top: none; padding-top: 0; margin-top: 0; }
.packaging-section h3 { font-size: 18px; font-weight: 600; color: #32323B; margin-bottom: 12px; }
.packaging-icon { color: #3155E7; margin-right: 8px; }
.packaging-desc { font-size: 14px; color: #666; margin-bottom: 12px; }
.packaging-date-input { padding: 10px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; width: 220px; }

.btn-confirm { display: inline-block; background: #3155E7; color: #fff; padding: 14px 48px; border-radius: 8px; font-size: 17px; font-weight: 600; border: none; cursor: pointer; text-decoration: none; margin-top: 24px; }
.btn-confirm:hover { background: #2545c9; }

/* ========== RESERVATION FORMS ========== */
.reservation-page .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.reservation-page .form-group { display: flex; flex-direction: column; margin-bottom: 0; }
.reservation-page .form-group label { font-size: 14px; font-weight: 600; color: #444; margin-bottom: 6px; }
.reservation-page .form-group input,
.reservation-page .form-group select,
.reservation-page .form-group textarea {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.reservation-page .form-group input:focus,
.reservation-page .form-group select:focus,
.reservation-page .form-group textarea:focus { border-color: #3155E7; outline: none; background: #fff; }
.reservation-page .form-group textarea { resize: vertical; min-height: 100px; }
.form-full { grid-column: 1 / -1; }

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

.section-divider { border: none; border-top: 1px solid #eee; margin: 28px 0; }

.btn-row { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.reservation-page .btn-back { display: inline-flex; align-items: center; gap: 8px; background: #f3f3f3; color: #444; padding: 12px 32px; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; }
.reservation-page .btn-back:hover { background: #e5e5e5; }
.reservation-page .btn-next { display: inline-flex; align-items: center; gap: 8px; background: #3155E7; color: #fff; padding: 12px 32px; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; }
.reservation-page .btn-next:hover { background: #2545c9; }

/* ========== ITEMS TABLE ========== */
.reservation-page .items-table { width: 100%; border-collapse: collapse; }
.reservation-page .items-table thead th { text-align: left; padding: 12px 16px; background: #f7f8fc; color: #444; font-size: 14px; font-weight: 600; border-bottom: 2px solid #e5e7eb; }
.reservation-page .items-table tbody td { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; font-size: 15px; color: #333; }
.reservation-page .items-table tbody tr:hover { background: #fafbff; }
.table-responsive { overflow-x: auto; }

.category-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.cat-furniture { background: #e6f0ff; color: #3155E7; }
.cat-electronics { background: #fff3e0; color: #e67e22; }
.cat-appliance { background: #e8f5e9; color: #2e7d32; }
.cat-boxes { background: #f3e5f5; color: #7b1fa2; }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.summary-item { text-align: center; padding: 20px; background: #f7f8fc; border-radius: 10px; }
.si-value { font-size: 28px; font-weight: 700; color: #3155E7; }
.si-label { font-size: 14px; color: #666; margin-top: 4px; }

/* ========== PAYMENT ========== */
.payment-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

.order-line { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; color: #444; border-bottom: 1px solid #f0f0f0; }
.order-line:last-child { border-bottom: none; }
.order-line.subtotal { border-bottom: 2px solid #e5e7eb; }
.order-line.subtotal span { font-weight: 600; }
.order-line.total { font-weight: 700; font-size: 18px; color: #061D5B; border-top: 2px solid #e5e7eb; padding-top: 14px; margin-top: 6px; border-bottom: none; }
.order-line .label { color: #666; }
.order-line.total .label { color: #061D5B; }

.service-badge { display: inline-block; background: #eef1ff; color: #3155E7; padding: 4px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }

.card-input-wrapper { position: relative; }
.card-input-wrapper input { padding-right: 48px; width: 100%; box-sizing: border-box; }
.card-input-wrapper .card-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #bbb; }

.payment-methods { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pm-icon { display: flex; align-items: center; justify-content: center; padding: 6px 14px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa; }
.pm-icon i { font-size: 28px; }
.pm-icon img { height: 28px; }

.btn-pay { display: block; width: 100%; background: #3155E7; color: #fff; padding: 16px; border-radius: 8px; font-size: 18px; font-weight: 700; border: none; cursor: pointer; text-align: center; margin-top: 8px; }
.btn-pay:hover { background: #2545c9; }

.secure-notice { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px; font-size: 13px; color: #888; }
.secure-notice i { color: #2e7d32; }

/* ========== SUCCESS / FINAL PAYMENT ========== */
.success-section { text-align: center; padding: 40px 20px; }
.success-icon { width: 100px; height: 100px; border-radius: 50%; background: #e6f9ec; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.success-icon i { font-size: 48px; color: #1a8a3f; }
.success-title { font-size: 30px; font-weight: 700; color: #1a8a3f; margin-bottom: 12px; }
.success-subtitle { font-size: 18px; color: #555; margin-bottom: 32px; }

.booking-details { max-width: 500px; margin: 0 auto; text-align: left; }
.bd-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.bd-row:last-child { border-bottom: none; }
.bd-label { color: #888; }
.bd-value { font-weight: 600; color: #32323B; }
.bd-value-green { color: #1a8a3f; }

.email-notice { margin-top: 28px; padding: 16px 24px; background: #f7f8fc; border-radius: 10px; display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: #444; }
.email-notice i { color: #3155E7; font-size: 20px; }

.action-btns { display: flex; justify-content: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.action-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; }
.action-btn.primary { background: #3155E7; color: #fff; }
.action-btn.primary:hover { background: #2545c9; }
.action-btn.secondary { background: #f3f3f3; color: #444; }
.action-btn.secondary:hover { background: #e5e5e5; }

/* ========== VIEW DETAIL ========== */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-item { padding: 12px 0; }
.di-label { font-size: 13px; color: #888; margin-bottom: 4px; }
.di-value { font-size: 16px; font-weight: 600; color: #32323B; }

.status-badge { display: inline-block; padding: 6px 18px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.status-confirmed { background: #e6f9ec; color: #1a8a3f; }

.address-flow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; }
.address-box { flex: 1; min-width: 200px; background: #f7f8fc; border-radius: 10px; padding: 16px; }
.ab-label { font-size: 12px; font-weight: 600; color: #3155E7; text-transform: uppercase; margin-bottom: 6px; }
.ab-value { font-size: 15px; color: #333; }
.address-arrow { font-size: 24px; color: #3155E7; }

.back-link { display: inline-flex; align-items: center; gap: 8px; color: #3155E7; font-size: 15px; font-weight: 600; text-decoration: none; margin-top: 24px; }
.back-link:hover { text-decoration: underline; }

/* ========== TRACKING BAR (View Detail) ========== */
.reservation-page .tracking-bar { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 16px; position: relative; }
.reservation-page .tracking-bar::before { content: ''; position: absolute; top: 20px; left: 40px; right: 40px; height: 4px; background: #e5e7eb; z-index: 0; }
.reservation-page .tracking-step { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; flex: 1; }
.step-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.tracking-step.completed .step-circle { background: #3155E7; color: #fff; }
.tracking-step.active .step-circle { background: #3155E7; color: #fff; box-shadow: 0 0 0 4px rgba(49,85,231,0.2); }
.tracking-step.pending .step-circle { background: #e5e7eb; color: #999; }
.reservation-page .step-label { font-size: 12px; color: #666; text-align: center; max-width: 80px; }
.tracking-step.completed .step-label,
.tracking-step.active .step-label { color: #3155E7; font-weight: 600; }
.step-check-icon { font-size: 14px; }

/* ========== AUTH PAGES ========== */
.auth-card { max-width: 900px; margin: 40px auto; display: flex; background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); overflow: hidden; min-height: 500px; }
.auth-card-image { width: 40%; background: url('../images/movingservice.png') center/cover no-repeat; }
.auth-card-form { width: 60%; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-card-form h2 { font-size: 24px; font-weight: 700; color: #061D5B; margin-bottom: 0px; }
.auth-form-group { margin-bottom: 20px; }
.auth-form-group label { display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 0px; }
.auth-form-group input { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; color: #333; box-sizing: border-box; }
.auth-form-group input:focus { border-color: #061D5B; outline: none; }
.auth-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-auth-primary { width: 100%; padding: 14px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; display: block; }
.btn-auth-green { background: #16a34a; color: #fff; }
.btn-auth-green:hover { background: #15803d; }
.btn-auth-blue { background: #00007E; color: #fff; }
.btn-auth-blue:hover { background: #0a2a7a; }
.auth-link { font-size: 14px; color: #3155E7; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.password-wrap { position: relative; }
.password-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #6b7280; font-size: 16px; }

/* ========== UTILITY ========== */
.text-center { text-align: center; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .payment-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .auth-card { flex-direction: column; }
    .auth-card-image { display: none; }
    .auth-card-form { width: 100%; padding: 28px 20px; }
    .auth-form-row { grid-template-columns: 1fr; }
    .time-slots { flex-direction: column; }
    .summary-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .address-flow { flex-direction: column; }
    .action-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 640px) {
    .reservation-page .form-grid { grid-template-columns: 1fr; }
    .reservation-page .form-row { grid-template-columns: 1fr; }
}

/* ========================================
   Multi-Step Wizard
   ======================================== */

/* Panels: only active is visible */
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

/* Step Indicators */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    gap: 4px;
}
.wizard-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    cursor: default;
}
.wizard-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: #e5e7eb;
    color: #9ca3af;
    transition: all 0.3s ease;
}
.wizard-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

/* Active step */
.wizard-step.active .wizard-step-num {
    background: #00007E;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0,0,126,0.15);
}
.wizard-step.active .wizard-step-label { color: #00007E; }

/* Completed step */
.wizard-step.completed .wizard-step-num {
    background: #16a34a;
    color: #fff;
}
.wizard-step.completed .wizard-step-label { color: #16a34a; }

/* Storage variant colors */
.wizard-steps-storage .wizard-step.active .wizard-step-num {
    background: #061D5B;
    box-shadow: 0 0 0 4px rgba(6,29,91,0.15);
}
.wizard-steps-storage .wizard-step.active .wizard-step-label { color: #061D5B; }

/* Responsive */
@media (max-width: 600px) {
    .wizard-step-label { display: none; }
    .wizard-step-num { width: 28px; height: 28px; font-size: 12px; }
    .wizard-steps::before { top: 14px; }
}
