/* Thai Massage Booking - Enhanced Front-end Styles */

.tmb-booking-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tmb-booking-header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.tmb-booking-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
}

.tmb-booking-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

#tmb-booking-form {
    padding: 30px;
}

/* Steps */
.tmb-step {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9ff;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.tmb-step h3 {
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}

/* Form Elements */
.tmb-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.tmb-form-group {
    margin-bottom: 0;
}

.tmb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.tmb-form-group input,
.tmb-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.tmb-form-group input:focus,
.tmb-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Service Cards */
.tmb-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tmb-service-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tmb-service-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.tmb-service-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.service-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    flex: 1;
}

.service-price {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
}

.service-duration {
    display: flex;
    align-items: center;
    align-items: center;
    margin-bottom: 20px;
}

.tmb-calendar-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.calendar-nav {
    background: #f8f9ff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-nav:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.calendar-nav svg {
    stroke: currentColor;
}

.tmb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    color: #667eea;
    font-size: 12px;
    padding: 8px 0;
}

.tmb-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.calendar-day.other-month {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.past {
    color: #ccc;
    cursor: not-allowed;
    background: #f5f5f5;
}

.calendar-day.available {
    background: #f8f9ff;
    color: #333;
}

.calendar-day.available:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.calendar-day.blocked {
    background: #ffe5e5;
    color: #d63031;
    cursor: not-allowed;
    position: relative;
}

.calendar-day.blocked::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: #d63031;
    transform: rotate(45deg);
}

.calendar-day.selected {
    background: #43e97b;
    color: white;
    border-color: #00b894;
}

.calendar-day.non-working {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
}

.legend-color.available {
    background: #f8f9ff;
}

.legend-color.blocked {
    background: #ffe5e5;
}

.legend-color.selected {
    background: #43e97b;
    border-color: #00b894;
}

/* Time Slots */
.tmb-time-slots {
    margin-top: 25px;
}

.tmb-time-slots h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

#tmb-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.tmb-time-slot {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    font-weight: 600;
    font-size: 14px;
}

.tmb-time-slot:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.tmb-time-slot.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.tmb-time-slot.unavailable {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Payment Info */
.tmb-payment-info {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.3);
}

.tmb-payment-info h4 {
    margin: 0 0 15px 0;
    color: #2d3436;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 15px;
}

.tmb-bank-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bank-detail-row:last-child {
    border-bottom: none;
}

.bank-detail-row .label {
    font-weight: 600;
    color: #666;
}

.bank-detail-row .value {
    font-weight: 700;
    color: #2d3436;
    font-family: monospace;
}

.tmb-payment-instructions {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    gap: 10px;
    align-items: start;
}

.tmb-payment-instructions svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.tmb-payment-note {
    font-size: 13px;
    color: #636e72;
    font-style: italic;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Booking Summary */
.tmb-booking-summary {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
}

.tmb-booking-summary h4 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 18px;
}

.tmb-summary-details p {
    margin: 10px 0;
    color: #333;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tmb-summary-details p:last-child {
    border-bottom: none;
}

.tmb-summary-details strong {
    color: #666;
}

/* Messages */
.tmb-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
    align-items: center;
    gap: 10px;
}

.tmb-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    display: flex;
}

.tmb-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    display: flex;
}

/* Submit Button */
.tmb-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}

.tmb-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 233, 123, 0.4);
}

.tmb-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .tmb-booking-container {
        margin: 20px;
        border-radius: 12px;
    }

    .tmb-booking-header {
        padding: 30px 20px;
    }

    .tmb-booking-header h2 {
        font-size: 24px;
    }

    #tmb-booking-form {
        padding: 20px;
    }

    .tmb-services-grid {
        grid-template-columns: 1fr;
    }

    .tmb-form-row {
        grid-template-columns: 1fr;
    }

    #tmb-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    .calendar-legend {
        justify-content: center;
    }
}
/* Pricing Options - Added for clickability */
.service-pricing-options {
    margin-top: 15px;
}

.service-pricing-options label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #667eea;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-option {
    display: block;
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer !important;
    transition: all 0.3s ease;
    background: white;
    text-align: left;
    font-family: inherit;
}

.pricing-option:hover {
    border-color: #667eea !important;
    background: #f8f9ff !important;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.pricing-option.selected {
    border-color: #667eea !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.pricing-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

.pricing-price {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
}

.pricing-option.selected .pricing-price {
    background: #43e97b;
}

.tmb-selected-service-summary {
    background: #f8f9ff;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

/* Payment Method Selection */
.payment-subtitle {
    color: #666;
    font-size: 14px;
    margin: 10px 0 20px 0;
}

.payment-method-options {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.payment-method-option {
    cursor: pointer;
    display: block;
}

.payment-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
}

.payment-method-option:hover .payment-method-card {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(4px);
}

.payment-method-option input:checked + .payment-method-card {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.payment-method-icon {
    color: #667eea;
    flex-shrink: 0;
}

.payment-method-option input:checked + .payment-method-card .payment-method-icon {
    color: #43e97b;
}

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

.payment-method-details strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.payment-method-details span {
    font-size: 13px;
    color: #666;
}

.tmb-bank-details-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.tmb-bank-details-section h5 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 16px;
    font-weight: 700;
}

.tmb-pay-on-arrival-note {
    margin-top: 25px;
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tmb-pay-on-arrival-note svg {
    color: #4caf50;
    flex-shrink: 0;
    margin-top: 2px;
}

.tmb-pay-on-arrival-note p {
    margin: 0;
    color: #2e7d32;
    font-size: 14px;
    line-height: 1.5;
}
