/* APMC Booking System Styles */
/* Matches existing premium design */

:root {
    --booking-primary: #1E3A8A;
    --booking-primary-light: #3B82F6;
    --booking-success: #10B981;
    --booking-warning: #F59E0B;
    --booking-danger: #EF4444;
    --booking-dark: #0F172A;
    --booking-light: #F8FAFC;
    --booking-border: #E2E8F0;
}

/* Booking Section Container */
.booking-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 80vh;
}

.booking-container {
    max-width: 900px;
    margin: 0 auto;
}

.booking-header {
    text-align: center;
    margin-bottom: 3rem;
}

.booking-header .section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(30, 58, 138, 0.1);
    color: #1E3A8A;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.booking-header h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    color: #1E3A8A;
    margin-bottom: 0.5rem;
}

.booking-header p {
    color: #64748B;
    font-size: 1.1rem;
}

/* Progress Steps */
.booking-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
}

.booking-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 120px;
}

.progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--booking-primary-light);
    border-color: var(--booking-primary-light);
    color: #fff;
}

.progress-step.completed .step-number {
    background: var(--booking-success);
    border-color: var(--booking-success);
    color: #fff;
}

.progress-step .step-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: #1E3A8A;
}

/* Booking Card */
.booking-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.booking-card-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Step 1: Service Selection */
.service-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.service-option:hover {
    background: white;
    border-color: var(--booking-primary-light);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.service-option.selected {
    background: rgba(30, 58, 138, 0.05);
    border-color: var(--booking-primary);
}

.service-option .service-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 0.5rem;
}

.service-option .service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--booking-primary-light);
}

.service-option .service-duration {
    font-size: 0.9rem;
    color: #64748B;
}

/* Step 2: Consultant Selection */
.consultant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.consultant-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.consultant-option:hover {
    background: white;
    border-color: var(--booking-primary-light);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.consultant-option.selected {
    background: rgba(30, 58, 138, 0.05);
    border-color: var(--booking-primary);
}

.consultant-option .consultant-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--booking-primary) 0%, var(--booking-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
}

.consultant-option .consultant-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 0.25rem;
}

.consultant-option .consultant-title {
    font-size: 0.85rem;
    color: #64748B;
}

@media (max-width: 600px) {
    .consultant-grid {
        grid-template-columns: 1fr;
    }
}

/* Step 3: Date & Time Selection */
.datetime-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 600px) {
    .datetime-grid {
        grid-template-columns: 1fr;
    }
}

.calendar-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header h4 {
    color: #1E3A8A;
    font-size: 1.1rem;
    margin: 0;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav button {
    background: white;
    border: 1px solid #e2e8f0;
    color: #1E3A8A;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav button:hover {
    background: var(--booking-primary);
    border-color: var(--booking-primary);
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    color: #64748B;
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: rgba(30, 58, 138, 0.1);
}

.calendar-day.selected {
    background: var(--booking-primary);
    color: #fff;
}

.calendar-day.today {
    border: 1px solid var(--booking-primary-light);
}

.calendar-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.calendar-day.empty {
    cursor: default;
}

/* Time Slots */
.time-slots-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.time-slots-container h4 {
    color: #1E3A8A;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.time-slot {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    color: #334155;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover:not(.disabled) {
    background: rgba(30, 58, 138, 0.05);
    border-color: var(--booking-primary-light);
}

.time-slot.selected {
    background: var(--booking-primary);
    border-color: var(--booking-primary);
    color: white;
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
}

/* Step 4: Customer Form */
.booking-form {
    display: grid;
    gap: 1rem;
}

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

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

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

.form-group label {
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: #1E3A8A;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--booking-primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group select option {
    background: white;
    color: #1E3A8A;
}

/* Step 5: Payment */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-option:hover {
    background: white;
    border-color: var(--booking-primary-light);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.payment-option.selected {
    background: rgba(30, 58, 138, 0.05);
    border-color: var(--booking-primary);
}

.payment-option .payment-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(30, 58, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.payment-option .payment-details {
    flex: 1;
}

.payment-option .payment-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 0.25rem;
}

.payment-option .payment-desc {
    font-size: 0.85rem;
    color: #64748B;
}

.payment-total {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.payment-total .total-label {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 0.5rem;
}

.payment-total .total-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E3A8A;
}

/* Booking Summary */
.booking-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.booking-summary h4 {
    color: #1E3A8A;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.summary-item .label {
    color: #64748B;
}

.summary-item .value {
    color: #1E3A8A;
    font-weight: 500;
}

/* Navigation Buttons */
.booking-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.btn-back,
.btn-next,
.btn-confirm {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back {
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748B;
}

.btn-back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1E3A8A;
}

.btn-next,
.btn-confirm {
    background: linear-gradient(135deg, var(--booking-primary) 0%, var(--booking-primary-light) 100%);
    color: #fff;
    flex: 1;
    justify-content: center;
}

.btn-next:hover,
.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.btn-next:disabled,
.btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success Message */
.booking-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--booking-success) 0%, #34D399 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.booking-success h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    color: #1E3A8A;
    margin-bottom: 1rem;
}

.booking-success p {
    color: #64748B;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.booking-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.booking-details h4 {
    color: #1E3A8A;
    margin-bottom: 1rem;
}

/* Step Content Display */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Hidden class */
.hidden {
    display: none !important;
}
