/* ========================================
   Safar-e-Kaaba Sidebar Widget Styles
   All styles scoped to prevent conflicts
   ======================================== */

/* ---------- ROOT VARIABLES ---------- */
.safarekaaba-sidebar-widget-wrapper {
    --safarekaaba-gold: #D4AF37;
    --safarekaaba-slate: #0F1B2A;
    --safarekaaba-light: #F9FAFB;
    --safarekaaba-grey: #e5e7eb;
}

/* ---------- WRAPPER BASE ---------- */
.safarekaaba-sidebar-widget-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--safarekaaba-slate);
    line-height: 1.6;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Ensure sticky works */
    overflow: visible !important;
}

/* ---------- SIDEBAR WRAPPER ---------- */
.safarekaaba-sidebar-widget-wrapper .sidebar {
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

/* ---------- PRICE CARD ---------- */
.safarekaaba-sidebar-widget-wrapper .price-card {
    background: linear-gradient(135deg, var(--safarekaaba-gold) 0%, #f0d45d 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.35);
}

.safarekaaba-sidebar-widget-wrapper .price-card .price-label {
    font-size: 1.1rem;
    opacity: .9;
}

.safarekaaba-sidebar-widget-wrapper .price-card .price {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
}

.safarekaaba-sidebar-widget-wrapper .price-card p {
    margin: 0;
    font-size: 1rem;
}

.safarekaaba-sidebar-widget-wrapper .price-note {
    background: rgba(255, 255, 255, 0.25);
    padding: 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* ---------- CONTACT CARD ---------- */
.safarekaaba-sidebar-widget-wrapper .contact-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

/* Form Title (used in both contact and booking cards) */
.safarekaaba-sidebar-widget-wrapper .form-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--safarekaaba-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Title Icons */
.safarekaaba-sidebar-widget-wrapper .form-title i,
.safarekaaba-sidebar-widget-wrapper .form-title svg {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Contact Methods */
.safarekaaba-sidebar-widget-wrapper .contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f3f4f6;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: background 0.3s ease;
}

.safarekaaba-sidebar-widget-wrapper .contact-method:hover {
    background: #e5e7eb;
}

.safarekaaba-sidebar-widget-wrapper .contact-method h4,
.safarekaaba-sidebar-widget-wrapper .contact-method p {
    margin: 0;
    line-height: 1.3;
}

.safarekaaba-sidebar-widget-wrapper .contact-method h4 {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--safarekaaba-slate);
}

.safarekaaba-sidebar-widget-wrapper .contact-method p {
    font-size: 0.95rem;
    color: #4b5563;
}

/* Contact Method Icons - FIXED */
.safarekaaba-sidebar-widget-wrapper .contact-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    background: var(--safarekaaba-slate);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.safarekaaba-sidebar-widget-wrapper .contact-icon i,
.safarekaaba-sidebar-widget-wrapper .contact-icon svg {
    color: var(--safarekaaba-gold) !important;
    fill: var(--safarekaaba-gold) !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 1 !important;
    display: block !important;
    margin: 0 !important;
}

/* Ensure SVG icons are visible */
.safarekaaba-sidebar-widget-wrapper .contact-icon svg path {
    fill: var(--safarekaaba-gold) !important;
}

/* ---------- BOOKING FORM CARD ---------- */
.safarekaaba-sidebar-widget-wrapper .booking-form-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

/* ---------- STICKY SIDEBAR ---------- */
.safarekaaba-sidebar-widget-wrapper .safarekaaba-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 99;
    align-self: flex-start;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .safarekaaba-sidebar-widget-wrapper .sidebar {
        display: contents;
    }

    .safarekaaba-sidebar-widget-wrapper .price-card {
        order: 1;
    }

    .safarekaaba-sidebar-widget-wrapper .contact-card {
        order: 2;
    }

    .safarekaaba-sidebar-widget-wrapper .booking-form-card {
        order: 3;
    }
}