/**
 * File: public/css/public-styles.css
 * Updated with booking interface styles matching the design
 */

/* Booking Wrapper */
.sfam-booking-wrapper {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.sfam-booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.sfam-booking-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.sfam-booking-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Date Slider Container */
.sfam-date-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.sfam-slider-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sfam-slider-btn:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

.sfam-slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sfam-slider-btn svg {
    width: 20px;
    height: 20px;
}

/* Dates Slider */
.sfam-dates-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.sfam-dates-container {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
}

/* Date Card */
.sfam-date-card {
    flex: 0 0 calc(20% - 10px);
    min-width: 90px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sfam-date-header {
    background: #f5f5f5;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.sfam-date-display {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.sfam-day-display {
    font-size: 12px;
    color: #666;
}

.sfam-date-slots {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Time Slot Button */
.sfam-slot-btn {
    background: #FFD700;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
        margin: 0 auto;
    margin-left: 12px;
    margin-bottom: 10px;
    margin-top: 12px;
    margin-right: 12px;
}

.sfam-slot-btn:hover {
    background: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sfam-slot-btn.selected {
    background: #1a3d5c;
    color: white;
    box-shadow: 0 4px 12px rgba(26, 61, 92, 0.3);
}

.sfam-slot-btn.unavailable {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.sfam-slot-btn.unavailable:hover {
    transform: none;
    box-shadow: none;
}

/* Navigation Buttons */
.sfam-navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.sfam-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sfam-btn svg {
    width: 20px;
    height: 20px;
}

.sfam-btn-secondary {
    background: white;
    color: #1a3d5c;
    border: 2px solid #1a3d5c;
}

.sfam-btn-secondary:hover {
    background: #1a3d5c;
    color: white;
}

.sfam-btn-primary {
    background: #1a3d5c;
    color: white;
    border: 2px solid #1a3d5c;
}

.sfam-btn-primary:hover {
    background: #2a4d6c;
    border-color: #2a4d6c;
}

.sfam-btn-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Contact Info */
.sfam-contact-info {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.sfam-contact-info p {
    margin: 4px 0;
}

.sfam-phone-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.sfam-phone-link:hover {
    text-decoration: underline;
}

/* Privacy Notice */
.sfam-privacy-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
}

.sfam-privacy-notice svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Step Indicator */
.sfam-step-indicator {
    text-align: right;
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
    font-style: italic;
}

/* Loading State */
.sfam-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.sfam-loading:after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Error State */
.sfam-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .sfam-booking-wrapper {
        padding: 20px 15px;
    }
    
    .sfam-booking-title {
        font-size: 24px;
    }
    
    .sfam-booking-subtitle {
        font-size: 14px;
    }
    
    .sfam-date-slider-container {
        gap: 8px;
    }
    
    .sfam-slider-btn span {
        display: none;
    }
    
    .sfam-slider-btn {
        padding: 10px;
    }
    
    .sfam-date-card {
        flex: 0 0 calc(33.333% - 8px);
        min-width: 110px;
    }
    
    .sfam-navigation-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .sfam-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
}

@media screen and (max-width: 480px) {
    .sfam-date-card {
        flex: 0 0 calc(50% - 6px);
        min-width: 140px;
    }
    
    .sfam-date-display {
        font-size: 13px;
    }
    
    .sfam-day-display {
        font-size: 11px;
    }
    
    .sfam-slot-btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sfam-date-card {
    animation: slideIn 0.3s ease;
}

/* Legacy List View Styles */
.sfam-availability-list {
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.sfam-availability-list h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.sfam-day-section {
    margin-bottom: 25px;
}

.sfam-day-section h4 {
    margin: 0 0 12px 0;
    padding: 10px;
    background: #f8f9fa;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    border-left: 4px solid #2271b1;
}

.sfam-slots-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sfam-slots-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sfam-slots-list li:hover {
    background: #f0f0f0;
    border-color: #2271b1;
}

.sfam-slots-list li.available {
    border-left: 4px solid #28a745;
}

.sfam-slot-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.sfam-slot-time {
    color: #666;
    font-size: 14px;
}

.sfam-slot-status {
    font-size: 18px;
    color: #28a745;
}
.elementor-element.elementor-element-1a9f5f8.e-con-full.header-form-cls.e-flex.e-con.e-parent.e-lazyloaded {
    display: none;
}
.sfam-navigation-buttons {
    display: none;
}


.sfam-date-slots {
  display: flex;
  flex-direction: column; /* or row if horizontal */
}

/* .sfam-slot-btn[data-slot="morning"] {
  order: 1;
}

.sfam-slot-btn[data-slot="afternoon"] {
  order: 2;
} */


/* Center time slots vertically & horizontally */
.sfam-time-slots {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Default order reset */
.sfam-slot-btn {
    order: 2;
}

/* Afternoon first */
.sfam-slot-btn[data-slot="afternoon"] {
    order: 2;
}

/* Morning second */
.sfam-slot-btn[data-slot="morning"] {
    order: 1;
}
.sfam-slot-unavailable {
    background: #f2f2f2 !important;
    color: #9a9a9a !important;
    border: 1px solid #d0d0d0 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none !important;
}
.sfam-selection-status {
    display: none;
}