/* Fresha Frontend Booking Styles - Improved */

.fresha-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fresha-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.fresha-step.active {
    display: block;
}

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

/* Header */
.fresha-header {
    margin-bottom: 1.5rem;
    text-align: center;
    padding-top: 1rem;
}

.fresha-header h2 {
    color: #1A1A1A;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.fresha-header p {
    color: #6B7280;
    font-size: 0.875rem;
}

.fresha-back-btn {
    background: transparent;
    border: none;
    color: #6C5CE7;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
}

.fresha-back-btn:hover {
    text-decoration: underline;
}

/* Venues Grid */
.fresha-venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.fresha-venue-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fresha-venue-card:hover {
    border-color: #6C5CE7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.1);
}

.venue-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 0.5rem 0;
}

.venue-rating {
    color: #FFC107;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.venue-address {
    color: #6B7280;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.venue-services-count {
    color: #6C5CE7;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Services List */
.fresha-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fresha-service-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fresha-service-card:hover {
    border-color: #6C5CE7;
    background: #F9FAFB;
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.service-category {
    display: inline-block;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* Category Colors */
.service-category.facials {
    background: #EC4899; /* Pink */
}

.service-category.massage {
    background: #8B5CF6; /* Purple */
}

.service-category.nails {
    background: #F59E0B; /* Amber */
}

.service-category.waxing {
    background: #10B981; /* Green */
}

.service-category.packages {
    background: #3B82F6; /* Blue */
}

.service-category.default {
    background: #6C5CE7; /* Default purple */
}

.service-duration {
    color: #6B7280;
    font-size: 0.8rem;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10B981;
    white-space: nowrap;
}

/* J$ prefix handled by JavaScript */

/* Date/Time Picker */
.fresha-datetime-picker {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
}

.date-picker,
.time-picker {
    margin-bottom: 1.25rem;
}

.date-picker label,
.time-picker label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1A1A1A;
    font-size: 0.9rem;
}

/* Form */
.fresha-form {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1A1A1A;
    font-size: 0.9rem;
}

.fresha-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.fresha-input:focus {
    outline: none;
    border-color: #6C5CE7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.fresha-btn-primary {
    width: 100%;
    background: #1A1A1A;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fresha-btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fresha-btn-confirm {
    width: 100%;
    background: #10B981;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fresha-btn-confirm:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Review Card */
.fresha-review-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-section {
    padding: 0.875rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.review-section:last-child {
    border-bottom: none;
}

.review-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-section p {
    font-size: 0.95rem;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.5;
}

.review-price {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #10B981 !important;
}

/* J$ prefix handled by JavaScript */

/* Success Screen */
.fresha-success {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #FFA500;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: #FFA500;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.25rem;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.fresha-success h2 {
    color: #1A1A1A;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.fresha-success p {
    color: #6B7280;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.fresha-success strong {
    color: #6C5CE7;
    font-size: 1.1rem;
}

.fresha-success .pending-note {
    background: #FFF4E6;
    border: 2px solid #FFA500;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #1A1A1A;
}

/* Loading */
.fresha-loading {
    text-align: center;
    padding: 2rem;
    color: #6B7280;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .fresha-container {
        padding: 0.75rem;
    }
    
    .fresha-venues-grid {
        grid-template-columns: 1fr;
    }
    
    .fresha-header h2 {
        font-size: 1.25rem;
    }
    
    .service-name {
        font-size: 0.95rem;
    }
    
    .service-price {
        font-size: 1.1rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus on first input when step loads */
.fresha-step.active .fresha-input:first-of-type {
    animation: focusPulse 0.5s ease;
}

@keyframes focusPulse {
    0%, 100% { border-color: #E5E7EB; }
    50% { border-color: #6C5CE7; }
}
