/**
 * Hijama Site Core — Component Styles
 * Color System:
 * Primary Navy: #103B60
 * Royal Medical Blue: #087DA8
 * Accent Burgundy: #A51F43
 * Background Off-White: #F5F9FB
 * Subtle Gold: #D6B780
 * Main Text: #19324A
 * Muted Text: #64748B
 */

/* ==========================================================================
   Floating Action Buttons (WhatsApp & Phone)
   ========================================================================== */
.hijama-floating-container {
    position: fixed;
    bottom: 28px;
    left: 28px; /* On Arabic RTL sites, floating WhatsApp is placed gracefully on the left to leave natural reading flow on the right */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.hijama-float-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(16, 59, 96, 0.22);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.hijama-float-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(16, 59, 96, 0.32);
    color: #ffffff;
}

.hijama-float-btn:focus-visible {
    outline: 3px solid #D6B780;
    outline-offset: 3px;
}

.hijama-float-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.hijama-float-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: hijama-pulse 2.2s infinite;
    pointer-events: none;
}

.hijama-float-phone {
    background: linear-gradient(135deg, #103B60, #087DA8);
}

.hijama-float-tooltip {
    position: absolute;
    left: 68px;
    background: #103B60;
    color: #ffffff;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0.96;
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.hijama-float-whatsapp .hijama-float-tooltip {
    background: #25D366;
    color: #ffffff;
}

.hijama-float-btn:hover .hijama-float-tooltip {
    opacity: 1;
    transform: scale(1.04);
}

@keyframes hijama-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hijama-float-whatsapp::before {
        animation: none;
    }
}

/* ==========================================================================
   Booking Form Card
   ========================================================================== */
.hijama-booking-card {
    background: #ffffff;
    border: 1px solid #E2EDF3;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(16, 59, 96, 0.06);
    direction: rtl;
    text-align: right;
    margin: 30px 0;
    font-family: 'Tajawal', sans-serif;
}

.hijama-booking-header {
    margin-bottom: 24px;
}

.hijama-badge-pill {
    display: inline-block;
    background: #E8F4F8;
    color: #087DA8;
    font-family: 'Cairo', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
    border: 1px solid #B3D7E8;
}

.hijama-card-title {
    font-family: 'Cairo', sans-serif;
    color: #103B60;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.hijama-card-subtitle {
    color: #64748B;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.hijama-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hijama-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hijama-booking-card {
        padding: 24px 20px;
    }
}

.hijama-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hijama-field-group label {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    color: #19324A;
}

.hijama-field-group label .required {
    color: #A51F43;
}

.hijama-input,
.hijama-select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #CFE0EA;
    border-radius: 10px;
    background: #FDFEFE;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    color: #19324A;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.hijama-input:focus,
.hijama-select:focus {
    outline: none;
    border-color: #087DA8;
    box-shadow: 0 0 0 4px rgba(8, 125, 168, 0.12);
}

.hijama-privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #F5F9FB;
    border: 1px solid #D6E8F2;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 24px;
}

.hijama-privacy-notice svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.hijama-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #A51F43;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(165, 31, 67, 0.25);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    width: 100%;
}

.hijama-btn-primary:hover {
    background: #891937;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(165, 31, 67, 0.35);
    color: #ffffff;
}

/* ==========================================================================
   Accessible FAQ Accordion
   ========================================================================== */
.hijama-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 30px 0;
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

.hijama-accordion-item {
    background: #ffffff;
    border: 1px solid #E2EDF3;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hijama-accordion-item:hover {
    border-color: #B3D0E2;
}

.hijama-accordion-item.active {
    border-color: #087DA8;
    box-shadow: 0 6px 20px rgba(8, 125, 168, 0.08);
}

.hijama-accordion-header {
    margin: 0;
}

.hijama-accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #103B60;
    text-align: right;
    direction: rtl;
    transition: color 0.2s;
}

.hijama-accordion-button:focus-visible {
    outline: 2px solid #087DA8;
    outline-offset: -2px;
}

.hijama-accordion-button[aria-expanded="true"] {
    color: #A51F43;
}

.hijama-accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F5F9FB;
    color: #087DA8;
    transition: transform 0.25s ease, background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.hijama-accordion-button[aria-expanded="true"] .hijama-accordion-icon {
    transform: rotate(180deg);
    background: #A51F43;
    color: #ffffff;
}

.hijama-accordion-body {
    padding: 0 24px 22px 24px;
    color: #64748B;
    font-size: 15.5px;
    line-height: 1.8;
}

/* ==========================================================================
   Cupping Anatomy Viewer
   ========================================================================== */
.hijama-anatomy-interactive-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #E2EDF3;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 12px 35px rgba(16, 59, 96, 0.05);
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
    margin: 35px 0;
}

@media (max-width: 900px) {
    .hijama-anatomy-interactive-wrapper {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 30px;
    }
}

.hijama-anatomy-graphic {
    background: #F5F9FB;
    border-radius: 18px;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #D9EBF4;
}

.hijama-anatomy-img {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
}

.hijama-anatomy-badge {
    display: inline-block;
    background: #E8F4F8;
    color: #087DA8;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.hijama-anatomy-title {
    font-family: 'Cairo', sans-serif;
    color: #103B60;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 12px 0;
    line-height: 1.35;
}

.hijama-anatomy-intro {
    color: #64748B;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.hijama-points-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hijama-point-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.hijama-point-box:hover {
    background: #F0F7FB;
    border-color: #087DA8;
}

.hijama-point-box.active {
    background: #ffffff;
    border-color: #087DA8;
    box-shadow: 0 4px 16px rgba(8, 125, 168, 0.12);
}

.hijama-point-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.hijama-point-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.num-burgundy { background: #A51F43; }
.num-blue { background: #087DA8; }

.hijama-point-header h4 {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #103B60;
    margin: 0;
}

.hijama-point-desc {
    color: #64748B;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}

.hijama-anatomy-alert {
    margin-top: 24px;
    background: #FFFBF3;
    border: 1px solid #F1DEBA;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #785A28;
    line-height: 1.6;
}

.hijama-anatomy-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}
