


#firstVisitModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
  }
  #firstVisitModal.active { display: flex; }
  #firstVisitModal .modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    max-width: 95vw;
    width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    animation: fadeIn 0.3s;
  }
  #firstVisitModal .modal-step { display: none; }
  #firstVisitModal .modal-step.active { display: block; }
  #firstVisitModal input, #firstVisitModal select, #firstVisitModal button {
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.7rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
  }
  #firstVisitModal button {
    background: #bba589;
    color: #fff;
    border: none;
    font-weight: bold;
    transition: background 0.2s;
  }
  #firstVisitModal button:hover { background: #a08c6b; }
  #firstVisitModal .modal-header { text-align: center; margin-bottom: 1rem; }
  #firstVisitModal .close-modal {
    position: absolute; right: 18px; top: 12px; background: none; border: none; font-size: 1.5em; color: #888; cursor: pointer;
  }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(30px);} to { opacity: 1; transform: none; } }
  /* RTL support for specific elements */
  [dir="rtl"] .rtl-switch {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
  }

    /* Enhanced Appointment Modal Styles */
    .modal-content {
        border-radius: 12px;
        overflow: hidden;
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    .modal-header {
        border-bottom: none;
        padding: 25px 30px 15px;
        position: relative;
    }
    
    .modal-title {
        font-weight: 700;
        color: #222;
        font-size: 1.5rem;
        text-align: center;
        width: 100%;
    }
    
    .close {
        position: absolute;
        right: 20px;
        top: 20px;
        font-size: 1.5rem;
        opacity: 0.7;
        transition: all 0.3s;
    }
    
    .close:hover {
        opacity: 1;
        transform: rotate(90deg);
    }
    
    .modal-body {
        padding: 0 30px 30px;
    }
    
    /* Progress Steps */
    .progress-steps {
        display: flex;
        justify-content: space-between;
        margin: 0 auto 30px;
        max-width: 500px;
        position: relative;
    }
    
    .progress-steps::before {
        content: '';
        position: absolute;
        top: 15px;
        left: 0;
        right: 0;
        height: 2px;
        background: #eee;
        z-index: 1;
    }
    
    .step-indicator {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        z-index: 2;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #eee;
        color: #999;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        margin-bottom: 8px;
        transition: all 0.3s;
        border: 2px solid #eee;
    }
    
    .step-indicator.active .step-number {
        background: #bba589;
        color: white;
        border-color: #bba589;
    }
    
    .step-indicator.completed .step-number {
        background: white;
        color: #bba589;
        border-color: #bba589;
    }
    
    .step-label {
        font-size: 0.8rem;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }
    
    .step-indicator.active .step-label {
        color: #bba589;
    }
    
    /* Step Content */
    .appointment-wizard {
        position: relative;
        min-height: 400px;
    }
    
    .step {
        display: none;
        animation: fadeInUp 0.5s ease;
    }
    
    .step.active {
        display: block;
    }
    
    .step-title {
        font-size: 1.3rem;
        font-weight: 700;
        color: #222;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .step-subtitle {
        color: #777;
        text-align: center;
        margin-bottom: 30px;
        font-size: 0.95rem;
    }
    
    /* Service Options */
    .service-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .service-option input[type="radio"] {
        display: none;
    }
    
    .service-option label {
        display: flex;
        flex-direction: column;
        padding: 20px 15px;
        border: 2px solid #eee;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        height: 100%;
        position: relative;
        overflow: hidden;
    }
    
    .service-option label:hover {
        border-color: #d8c9b5;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(187, 165, 137, 0.1);
    }
    
    .service-option input[type="radio"]:checked + label {
        border-color: #bba589;
        background-color: rgba(187, 165, 137, 0.05);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(187, 165, 137, 0.15);
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        background: rgba(187, 165, 137, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .service-name {
        display: block;
        font-weight: 600;
        margin-bottom: 5px;
        color: #333;
    }
    
    .service-price {
        color: #bba589;
        font-weight: 700;
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .service-duration {
        display: block;
        font-size: 0.8rem;
        color: #999;
    }
    
    /* Date Selector */
    .date-selector {
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        margin-bottom: 30px;
    }
    
    .month-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .current-month {
        font-weight: 600;
        margin: 0;
        color: #333;
        font-size: 1.1rem;
    }
    
    .btn-prev-month, .btn-next-month {
        background: none;
        border: none;
        color: #bba589;
        cursor: pointer;
        padding: 5px;
        border-radius: 50%;
        transition: all 0.3s;
    }
    
    .btn-prev-month:hover, .btn-next-month:hover {
        background: rgba(187, 165, 137, 0.1);
    }
    
    .day-options {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 15px;
        gap: 17px;
    }
    
  
    
    .day-option {
        flex: 1 0 calc(25% - 10px);
        padding: 12px 5px;
        background: #f9f9f9;
        border: 1px solid #eee;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 0.85rem;
        font-weight: 500;
    }
    
    .day-option:hover:not(.disabled) {
        background: #f9f9f9;
        color: #222;
    }
    
    .day-option.selected {
        background: #bba589;
        color: white;
    }
    
    .day-option.disabled {
        color: #ddd;
        cursor: not-allowed;
    }
    
    .day-option.today {
        font-weight: 700;
        color: #bba589;
    }
    
    .day-option.today::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 5px;
        height: 5px;
        background: #bba589;
        border-radius: 50%;
    }
    
    .day-option.selected.today::after {
        background: white;
    }
    
    /* Time Slots */
    .time-slots {
        margin-bottom: 30px;
    }
    
    .time-period {
        color: #333;
        margin: 25px 0 15px;
        display: flex;
        align-items: center;
        font-weight: 600;
    }
    
    .time-period svg {
        margin-right: 8px;
    }
    
    .slot-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .time-slot {
        flex: 1 0 calc(25% - 10px);
        padding: 12px 5px;
        background: #f9f9f9;
        border: 1px solid #eee;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 0.85rem;
        font-weight: 500;
    }
    
    .time-slot:hover:not(.booked) {
        background: #eee;
        border-color: #ddd;
    }
    
    .time-slot.selected {
        background: #bba589;
        color: white;
        border-color: #bba589;
    }
    
    .time-slot.booked {
        background: #f5f5f5;
        color: #ccc;
        cursor: not-allowed;
        text-decoration: line-through;
    }
    
  
    
    .form-group {
        position: relative;
        margin-bottom: 25px;
    }
    
    .form-control {
        width: 100%;
        padding: 15px 0;
        border: none;
        border-bottom: 1px solid #ddd;
        background: transparent;
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .form-control:focus {
        outline: none;
        font-size: 1rem;
        
    }
    
    .floating-label label {
        position: absolute;
        top: 15px;
        left: 0;
        color: #999;
        transition: all 0.3s;
        pointer-events: none;
        margin-bottom: 40px;
    }
    
    .floating-label .underline {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 2px;
        width: 0;
        background: #bba589;
        border-radius: 10px;
        transition: all 0.3s;
    }
    
    .form-control:focus ~ .underline {
        width: 100%;
    }
    
    .form-control:focus + label,
    .form-control:not(:placeholder-shown) + label {
        top: -30px;
        color: #bba589;
    }
    
    textarea.form-control {
        min-height: 80px;
        resize: vertical;
    }
    
    /* Wizard Navigation */
    .wizard-nav {
        display: flex;
        justify-content: space-between;
        margin-top: 30px;
    }
    
    .btn {
        padding: 12px 25px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }
    
    .btn-prev {
        background: #f5f5f5;
        color: #777;
    }
    
    .btn-prev:hover {
        background: #eee;
        color: #555;
    }
    
    .btn-next, .btn-submit {
        background: #bba589;
        color: white;
    }
    
    .btn-next:hover, .btn-submit:hover {
        background: #a08c6b;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(187, 165, 137, 0.3);
    }
    
    .btn svg {
        margin-left: 8px;
    }
    
    .btn-prev svg {
        margin-left: 0;
        margin-right: 8px;
    }
    
    /* Confirmation Step */
    .success-animation {
        margin: 0 auto 30px;
        width: 100px;
        height: 100px;
    }
    
    .checkmark-circle {
        stroke: #bba589;
        stroke-width: 2;
        stroke-dasharray: 166;
        stroke-dashoffset: 166;
        animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
    }
    
    .checkmark-check {
        stroke: #bba589;
        stroke-width: 2;
        stroke-dasharray: 48;
        stroke-dashoffset: 48;
        animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
    }
    
    .confirmation-title {
        font-size: 1.5rem;
        color: #222;
        margin-bottom: 15px;
        font-weight: 700;
    }
    
    .confirmation-message {
        color: #777;
        margin-bottom: 30px;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .appointment-details {
        text-align: left;
        background: #f9f9f9;
        padding: 20px;
        border-radius: 12px;
        margin: 30px 0;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .detail-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    
    .detail-item:last-child {
        margin-bottom: 0;
    }
    
    .detail-label {
        color: #777;
        font-weight: 500;
    }
    
    .detail-value {
        color: #333;
        font-weight: 600;
    }
    
    .btn-done {
        background: #bba589;
        color: white;
        padding: 12px 40px;
        margin: 0 auto;
    }
    
    .btn-done:hover {
        background: #a08c6b;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(187, 165, 137, 0.3);
    }
    
    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes stroke {
        100% {
            stroke-dashoffset: 0;
        }
    }
    
    @keyframes scale {
        0%, 100% {
            transform: none;
        }
        50% {
            transform: scale3d(1.1, 1.1, 1);
        }
    }
    
    @keyframes fill {
        100% {
            box-shadow: inset 0 0 0 100px #bba589;
        }
    }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .service-options {
            grid-template-columns: 1fr;
        }
        
        .slot-row {
            gap: 8px;
        }
        
        .time-slot {
            flex: 1 0 calc(50% - 8px);
        }
        
        .modal-body {
            padding: 0 20px 20px;
        }
        
        .modal-header {
            padding: 20px 20px 15px;
        }
    }
    
    /* Barber Selection Styles */
    .barber-selection {
        grid-template-columns: 1fr;
    }
    
    .barber-option {
     display: flex;
    flex-direction: column;
    padding: 20px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    }
    
    .barber-option:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
    }
    
    .barber-option:hover:before {
        left: 100%;
    }
    
    .barber-option:hover {
        transform: translateY(-2px);
        border-color: #bba589;
    background-color: rgba(187, 165, 137, 0.05);
    }
    
    .barber-option.selected {
        transform: translateY(-2px);
        border-color: #bba589;
    background-color: rgba(187, 165, 137, 0.05);
    }
.barber-mobile{ color: #bba589;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;}
   
    .barber-avatar{
    color: #bba589;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    }
    /* Responsive barber selection */
    @media (max-width: 768px) {
        .barber-selection {
            gap: 8px;
            margin: 15px 0;
        }
        
        .barber-option {
            padding: 10px 16px;
            font-size: 0.9rem;
            min-width: 80px;
        }
    }
    
    @media (max-width: 480px) {
        .barber-selection {
            gap: 6px;
            margin: 10px 0;
        }
        
        .barber-option {
            padding: 8px 12px;
            font-size: 0.85rem;
            min-width: 70px;
            border-radius: 8px;
        }
    }
