/* ============================================
   MODERN MOBILE-RESPONSIVE BOOKING SYSTEM
   ============================================ */

/* Base Mobile-First Styles */
body.booking-layout {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family:
        'Cairo',
        'Segoe UI',
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-brand-dark) 100%);
}

#booking-page {
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}

/* Mobile Header */
.booking-mobile-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.booking-mobile-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    letter-spacing: -0.3px;
}

/* Progress Steps - Mobile Optimized */
.booking-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    background: white;
    margin: 0;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.booking-progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #e2e8f0;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 1.5px;
}

.booking-step {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #64748b;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-step.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.4);
}

.booking-step.completed {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3);
}

.booking-step-label {
    position: absolute;
    top: 52px;
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    text-align: center;
    width: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    opacity: 0.9;
}

.booking-step.active .booking-step-label {
    color: var(--color-primary);
    font-weight: 700;
    opacity: 1;
}

.booking-step.completed .booking-step-label {
    color: var(--color-primary);
}

/* Wizard Frames - Mobile Cards */
.wizard-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    animation: slideIn 0.35s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.frame-container {
    flex: 1;
    background: white;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
}

.frame-title {
    /* background: linear-gradient(135deg, var(--bs-primary), #3aede7); */
    color: white;
    padding: 25px 20px;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    letter-spacing: -0.5px;
}

.frame-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

.frame-content {
    padding: 30px 20px;
}

/* Form Elements - Mobile Optimized */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #334155;
    font-size: 0.95rem;
    letter-spacing: -0.3px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.25s ease;
    background: white;
    line-height: 1.5;
    color: #1e293b;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.15);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 1.2rem;
}

.validation-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding-left: 5px;
    font-weight: 500;
}

/* Phone Verification - Modern Design */
.phone-verification-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    margin: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.phone-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.3);
}

.phone-icon i {
    font-size: 2rem;
    color: white;
}

/* Selection Wrappers */
.select-service-wrapper,
.select-provider-wrapper,
.select-location-wrapper {
    position: relative;
}

.select-service-wrapper:after,
.select-provider-wrapper:after,
.select-location-wrapper:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

/* Time Selection */
.date-picker-container {
    background: #f8fafc;
    border-radius: 16px;
    padding: 0;
    margin-top: 10px;
    border: 2px solid #f1f5f9;
    overflow: hidden;
}

/* Fix for Flatpickr Layout (Inline only) */
.date-picker-container .flatpickr-calendar {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
}

.date-picker-container .flatpickr-months {
    width: 100% !important;
    background: var(--color-primary) !important;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    padding: 10px 0;
}

.date-picker-container .flatpickr-weekdays {
    width: 100% !important;
    background: var(--color-primary) !important;
}

.date-picker-container span.flatpickr-weekday {
    background: var(--color-primary) !important;
    color: white !important;
}

.date-picker-container .flatpickr-innerContainer {
    width: 100% !important;
}

.date-picker-container .flatpickr-rContainer {
    width: 100% !important;
}

.date-picker-container .flatpickr-days {
    width: 100% !important;
    border: none !important;
    display: flex !important;
}

.date-picker-container .dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 10px 0;
    display: flex !important;
    justify-content: space-around;
}

.date-picker-container .flatpickr-day {
    max-width: initial !important;
    flex-basis: 14.28% !important;
    height: 42px !important;
    line-height: 42px !important;
}

/* Ensure disabled dates are visible but grayed */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    cursor: not-allowed;
    background: transparent !important;
    border-color: transparent !important;
    color: rgba(57, 57, 57, 0.3) !important;
}

.available-hours-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

@media (max-width: 480px) {
    .available-hours-container {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 10px;
    }
}

.available-hour {
    padding: 14px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #475569;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.available-hour:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--bs-primary-rgb), 0.15);
    background-color: transparent;
}

.available-hour.selected {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.25);
    transform: translateY(-2px);
}

/* Dynamic Theming for Alerts and Buttons */
.alert-info {
    color: var(--color-brand-dark) !important;
    background-color: var(--color-primary-light) !important;
    border-color: var(--color-primary) !important;
}

.btn-dark {
    background-color: var(--color-brand-dark) !important;
    border-color: var(--color-brand-dark) !important;
    color: white !important;
}

.btn-dark:hover {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

.unavailable-date {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    /* cursor: not-allowed !important; */
}

.available-date {
    cursor: pointer !important;
    font-weight: bold;
    color: var(--color-primary);
}

.available-date:hover {
    background-color: var(--color-primary-light);
    color: var(--color-brand-dark);
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Confirmation Section */
.confirmation-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid #f1f5f9;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f8fafc;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: start;
}

.detail-value {
    color: #1e293b;
    font-weight: 700;
    text-align: end;
    font-size: 0.9rem;
    max-width: 60%;
    word-break: break-word;
}

/* reCAPTCHA */
.recaptcha-container {
    background: #f8fafc;
    border-radius: 14px;
    padding: 25px;
    margin: 25px 0;
    border: 2px solid #e2e8f0;
}

/* Terms & Privacy - Modern Checkboxes */
.terms-checkbox {
    position: relative;
    padding-left: 38px;
    cursor: pointer;
    user-select: none;
    display: block;
    margin-bottom: 20px;
    line-height: 1.6;
}

.terms-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: white;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.terms-checkbox:hover input~.checkmark {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1);
}

.terms-checkbox input:checked~.checkmark {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-checkbox input:checked~.checkmark:after {
    display: block;
}

/* Command Buttons - Mobile Bottom Bar */
.command-buttons {
    display: flex;
    padding: 10px;
    /* background: rgba(255, 255, 255, 0.522); */
    background-color: transparent !important;
    /* border-top: 1px solid #f1f5f9; */

    position: sticky;
    bottom: 0;
    border-radius: 10px;
    z-index: 1000;
    gap: 12px;
}

.command-buttons .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -0.3px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.08);
}

.btn-outline-secondary {
    background: white;
    color: #64748b;
    border: 2px solid #cbd5e1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-outline-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.btn-dark {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    box-shadow: 0 8px 30px rgba(var(--bs-primary-rgb), 0.4);
}

.btn-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(var(--bs-primary-rgb), 0.5);
}

.btn-success {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 8px 30px rgba(var(--bs-primary-rgb), 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    filter: brightness(0.9);
    box-shadow: 0 12px 40px rgba(var(--bs-primary-rgb), 0.5);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Loading States */
.btn .spinner-border {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* RTL Support */
.rtl-layout .terms-checkbox {
    padding-left: 0;
    padding-right: 38px;
}

.rtl-layout .checkmark {
    left: auto;
    right: 0;
}

.rtl-layout .booking-step-label {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.rtl-layout .select-service-wrapper:after,
.rtl-layout .select-provider-wrapper:after,
.rtl-layout .select-location-wrapper:after {
    right: auto;
    left: 16px;
    transform: translateY(-50%) rotate(-135deg);
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    body.booking-layout {
        padding: 20px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #booking-page {
        max-width: 800px;
        min-height: auto;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
        height: auto;
    }

    .booking-mobile-header {
        border-radius: 20px 20px 0 0;
    }

    .command-buttons {
        border-radius: 0 0 20px 20px;
    }
}

/* Extra Large Screens */
@media (min-width: 1200px) {
    #booking-page {
        max-width: 900px;
    }
}

/* Smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea,
button {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Fix for iOS Safari */
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
textarea {
    -webkit-appearance: none;
    border-radius: 12px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Ensure primary color variable is available */
:root {
    --bs-primary: var(--color-primary);
}

/* If you want to use a different primary color, override these variables */
body.booking-layout {
    font-family: 'Cairo', sans-serif;
}

#book-appointment-wizard {
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px !important;
}

#wizard-frame-4 {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
}

/* Header */
.clean-frame-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.frame-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 40px;
}

/* Grid */
.clean-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

/* Cards */
.clean-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.clean-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.clean-card-header {
    padding: 20px;
    background: #f9fafb;
    border-bottom: 1px solid #eef2f7;
}

.clean-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.clean-card-body {
    padding: 0;
}

.inner-card {
    padding: 20px;
}

/* Details */
.detail-line {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-label {
    font-size: 14px;
    color: #6b7280;
    min-width: 120px;
}

.detail-value {
    font-size: 15px;
    color: #374151;
    text-align: right;
}

.detail-value.accent {
    color: #2563eb;
    font-weight: 600;
}

/* Verification Section */
.verification-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    border: 1px solid #e5e7eb;
}

/* Inputs */
.clean-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
}

.clean-input::placeholder {
    color: #9ca3af;
}

.clean-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Checkbox */
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
}

.clean-checkbox-input:checked+.clean-checkbox-label .checkbox-custom {
    background: #2563eb;
    border-color: #2563eb;
}

/* Error */
.clean-input.error {
    border-color: #dc2626;
    background: #fef2f2;
}

/* Success */
.btn-clean-primary.success {
    background: #059669;
}

/* Loading */
.loading-dots span {
    background: #cbd5e1;
}

/* Mobile */
@media (max-width: 768px) {
    .clean-grid {
        grid-template-columns: 1fr;
    }

    .detail-line {
        justify-content: flex-start;
    }

    /* 
    .detail-line {
        flex-direction: column;
        text-align: left;
    }

    .detail-value {
        text-align: left;
    } */
}

/* RTL Specific Styles */
.rtl-layout {
    direction: rtl;
    text-align: right !important;
}

/* .rtl-layout .form-control,
.rtl-layout .form-select,
.rtl-layout .form-label,
.rtl-layout .frame-title,
.rtl-layout .clean-card-title,
.rtl-layout h1,
.rtl-layout h2,
.rtl-layout h3,
.rtl-layout h4,
.rtl-layout h5,
.rtl-layout h6 {
    text-align: right !important;
} */

.rtl-layout .input-group-text {
    border-left: 0;
    border-right: 1px solid #ced4da;
}

.rtl-layout .input-group>.form-control {
    border-left: 1px solid #ced4da;
    border-right: 0;
}

.rtl-layout .form-check-label {
    margin-right: 1.5em;
    margin-left: 0;
}

.rtl-layout .form-check-input {
    margin-right: -1.5em;
    margin-left: 0;
}

.rtl-layout .alert {
    text-align: right;
}

.rtl-layout .toast {
    text-align: right;
}

.rtl-layout .modal- .btn-close {
    margin: -0.5rem auto -0.5rem -0.5rem;
}

/* Mobile RTL Optimizations */
@media (max-width: 768px) {
    .rtl-layout .mobile-step-indicator {
        text-align: center;
    }

    .rtl-layout #mobile-nav-footer {
        flex-direction: row-reverse;
    }

    .rtl-layout .mobile-date-trigger i {
        margin-right: 0 !important;
        margin-left: 8px !important;
    }
}

/* Missing RTL Overrides */
.rtl-layout .form-control.is-invalid,
.rtl-layout .form-select.is-invalid {
    background-position: left 16px center !important;
}

.rtl-layout .validation-error {
    padding-left: 0;
    padding-right: 5px;
}

/* ============================================
   APPOINTMENT CONFIRMATION PAGE STYLES
   ============================================ */

.appointment-confirmation {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.confirmation-header {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--color-primary-light, );
}

.success-animation {
    display: inline-block;
    margin-bottom: 20px;
}

.success-icon {
    width: 120px;
    height: 120px;
}

.confirmation-title {
    color: #334155;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.confirmation-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Container */
.confirmation-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Reminder Banner */
.reminder-banner {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    border-right: 5px solid var(--color-primary);
    border: 1px solid #e2e8f0;
    animation: pulse 2s infinite;
}

.reminder-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.reminder-icon {
    color: var(--color-primary);
    font-size: 24px;
}

.reminder-banner p {
    color: #334155;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* Details Section */
.details-section,
.instructions-section,
.screenshot-hint {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.details-section {
    border-left: px solid var(--color-primary);
}

.details-section:hover,
.instructions-section:hover,
.screenshot-hint:hover {
    border-color: #e2e8f0;
    box-shadow: 0 8px 30px rgba(var(--bs-primary-rgb), 0.15);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #334155;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.section-title i {
    color: var(--color-primary, #25ebb0);
    font-size: 1.4rem;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(var(--bs-primary-rgb), 0.15);
    background: white;
}

.detail-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--color-primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon-wrapper i {
    color: var(--color-primary);
    font-size: 1.4rem;
}

.detail-content {
    flex: 1;
}

.detail-label {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.detail-value {
    display: block;
    color: #334155;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Calendar Button */
.calendar-action {
    text-align: center;
    padding-top: 25px;
    border-top: 2px solid #f1f5f9;
}

.calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--color-primary);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3);
}

.calendar-btn:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    filter: brightness(120%);
    box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb), 0.4);
}

.calendar-btn i {
    font-size: 1.1rem;
}

/* Instructions */
.instructions-section {
    background: white;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 15px;
    border-right: 4px solid var(--color-primary);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.instruction-item:hover {
    transform: translateX(5px);
}

.instruction-item:last-child {
    margin-bottom: 0;
}

.instruction-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.instruction-text {
    flex: 1;
}

.instruction-text p {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Screenshot Hint */
.screenshot-hint {
    background: #fafaf8;
    border-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.screenshot-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.screenshot-content i {
    color: var(--color-primary);
    font-size: 1.8rem;
}

.screenshot-content p {
    color: #334155;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.screenshot-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.screenshot-btn:hover {
    background: var(--color-primary);
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.25);
}

/* Animations */
@keyframes circleFill {
    from {
        stroke-dashoffset: 339.292;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmarkDraw {
    from {
        stroke-dashoffset: 50;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
    }
}

.circle-progress {
    animation: circleFill 0.8s ease-in-out forwards;
}

.checkmark {
    animation: checkmarkDraw 0.4s ease-in-out 0.8s forwards;
}

/* RTL Support */
[dir='rtl'] {
    direction: rtl;
}

[dir='rtl'] {
    text-align: right;
}

.rtl-layout .confirmation-header,
.rtl-layout .confirmation-subtitle,
.rtl-layout .confirmation-title {
    text-align: right;
    direction: rtl;
}

.rtl-layout .appointment-confirmation {
    direction: rtl;
    text-align: right;
}

.rtl-layout .section-title,
.rtl-layout .detail-card,
.rtl-layout .instruction-item {
    flex-direction: row-reverse;
}

.rtl-layout .section-title h2 {
    text-align: right !important;
    width: 100%;
}

/* Right-align all text elements in RTL */
.rtl-layout .confirmation-title,
.rtl-layout .confirmation-subtitle,
.rtl-layout .reminder-banner p,
.rtl-layout .section-title,
.rtl-layout .detail-label,
.rtl-layout .detail-value,
.rtl-layout .instruction-text p,
.rtl-layout .screenshot-content p,
.rtl-layout .reminder-content,
.rtl-layout .confirmation-header,
.rtl-layout .confirmation-header h1,
.rtl-layout .confirmation-header p,
.rtl-layout .reminder-banner,
.rtl-layout .details-section,
.rtl-layout .instructions-section,
.rtl-layout .screenshot-hint,
.rtl-layout .detail-card,
.rtl-layout .instruction-item,
.rtl-layout .calendar-action {
    text-align: right !important;
}

/* Flip borders that indicate emphasis */
.rtl-layout .reminder-banner {
    border-right: none;
    border-left: 5px solid var(--color-primary);
}

.rtl-layout .instruction-item {
    border-right: none;
    border-left: 4px solid var(--color-primary);
}

/* Reverse hover translation for RTL */
.rtl-layout .instruction-item:hover {
    transform: translateX(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .appointment-confirmation {
        padding: 12px;
        max-width: 100%;
    }

    .confirmation-header {
        padding: 25px 15px;
        margin-bottom: 20px;
        border-radius: 16px;
    }

    .success-icon {
        width: 100px;
        height: 100px;
    }

    .confirmation-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .confirmation-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .confirmation-content {
        gap: 16px;
    }

    .details-section,
    .instructions-section,
    .screenshot-hint {
        padding: 20px 16px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .reminder-banner {
        padding: 16px;
        margin-bottom: 16px;
    }

    .reminder-banner p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .section-title i {
        font-size: 1.2rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-card {
        gap: 12px;
        padding: 16px;
        border-radius: 10px;
    }

    .detail-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .detail-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .detail-value {
        font-size: 1rem;
    }

    .calendar-action {
        padding-top: 16px;
        margin-top: 16px;
    }

    .calendar-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
    }

    .instruction-item {
        gap: 12px;
        padding: 14px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .instruction-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .instruction-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .screenshot-hint {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .screenshot-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .screenshot-content i {
        font-size: 1.5rem;
    }

    .screenshot-content p {
        font-size: 0.9rem;
    }

    .screenshot-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .appointment-confirmation {
        padding: 10px;
    }

    .confirmation-header {
        padding: 20px 12px;
        margin-bottom: 16px;
    }

    .success-icon {
        width: 90px;
        height: 90px;
    }

    .confirmation-title {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .confirmation-subtitle {
        font-size: 0.9rem;
    }

    .confirmation-content {
        gap: 12px;
    }

    .reminder-banner {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .reminder-content {
        gap: 10px;
    }

    .reminder-icon {
        font-size: 20px;
    }

    .reminder-banner p {
        font-size: 0.9rem;
    }

    .details-section,
    .instructions-section,
    .screenshot-hint {
        padding: 16px 12px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .section-title {
        font-size: 1.1rem;
        gap: 8px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .section-title i {
        font-size: 1.1rem;
    }

    .detail-card {
        gap: 10px;
        padding: 12px;
        border-radius: 8px;
    }

    .detail-icon-wrapper {
        width: 36px;
        height: 36px;
        border-radius: 6px;
    }

    .detail-label {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }

    .detail-value {
        font-size: 0.95rem;
    }

    .calendar-action {
        padding-top: 12px;
        margin-top: 12px;
    }

    .calendar-btn {
        padding: 11px 18px;
        font-size: 0.9rem;
        width: 100%;
        border-radius: 10px;
    }

    .calendar-btn i {
        font-size: 1rem;
    }

    .instruction-item {
        gap: 10px;
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 8px;
        flex-direction: column;
        text-align: center;
    }

    .instruction-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        align-self: center;
    }

    .instruction-text p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .screenshot-hint {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .screenshot-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .screenshot-content i {
        font-size: 1.3rem;
    }

    .screenshot-content p {
        font-size: 0.85rem;
    }

    .screenshot-btn {
        width: 100%;
        padding: 11px 18px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

/* Profile Selection */
.profile-cards-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15.5px;
    background: #fff;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.profile-card:hover {
    border-color: var(--color-primary) !important;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.profile-card.selected {
    border-color: var(--color-primary) !important;
    background: var(--color-primary-light);
}

.profile-avatar {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.profile-card.selected .profile-avatar {
    background: var(--color-primary);
    color: #fff;
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-weight: 600;
    margin-bottom: 2px;
    color: #1e293b;
    font-size: 1.1rem;
}

.profile-email {
    font-size: 0.85rem;
    color: #64748b;
}

.profile-selection-indicator {
    color: var(--color-primary);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-card.selected .profile-selection-indicator {
    opacity: 1;
}