/* custom.css - Custom styles for Bahrain Transportation */

/* Color variables - Bahrain Transportation Theme */
:root {
    --bahrain-navy: #0B1F33;
    --bahrain-orange: #FF6B00;
    --bahrain-orange-light: #FF8A00;
    --bahrain-bg: #F7F9FC;
    --bahrain-text: #17202A;
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #128C7E;
}

/* ============================================
   BASE STYLES
   ============================================ */

/* Ensure the booking calculator card stands out */
.booking-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px -15px rgba(11, 31, 51, 0.15);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.booking-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px -15px rgba(11, 31, 51, 0.2);
}

/* Styling for price display */
.price-highlight {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8A00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Improved focus states for accessibility */
input:focus, 
select:focus, 
button:focus,
a:focus {
    outline: 2px solid #FF6B00;
    outline-offset: 2px;
}

/* Vehicle selection cards */
.vehicle-card {
    border: 3px solid transparent;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.vehicle-card.selected {
    border-color: #FF6B00;
    background-color: #FFF6ED;
    box-shadow: 0 10px 30px -10px rgba(255, 107, 0, 0.2);
    transform: scale(1.02);
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   STICKY MOBILE CTA
   ============================================ */

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 50;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .sticky-cta {
        display: none;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Utility class for hiding elements but keeping them accessible for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Labour count container visibility */
#labour-count-container {
    transition: all 0.3s ease;
}

/* ============================================
   WHATSAPP POPUP STYLES
   ============================================ */

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 1000;
    background-color: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
}

/* WhatsApp Popup */
.whatsapp-popup {
    position: fixed;
    bottom: 170px;
    right: 24px;
    z-index: 999;
    width: 340px;
    max-width: calc(100vw - 48px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.whatsapp-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-popup-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
}

.whatsapp-popup-content::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 24px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    border-radius: 0 0 4px 0;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.05);
}

.whatsapp-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
    line-height: 1;
}

.whatsapp-close:hover {
    color: #333;
}

.whatsapp-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.whatsapp-icon-wrapper svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.whatsapp-popup-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--bahrain-text);
    margin-bottom: 8px;
}

.whatsapp-popup-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--whatsapp-green);
    color: white;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    width: 100%;
    border: none;
    cursor: pointer;
}

.whatsapp-btn:hover {
    background: var(--whatsapp-green-dark);
    color: white;
    transform: scale(1.02);
}

.whatsapp-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.whatsapp-later {
    display: block;
    margin-top: 12px;
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
    padding: 4px 8px;
}

.whatsapp-later:hover {
    color: #666;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 480px) {
    .whatsapp-popup {
        bottom: 150px;
        right: 16px;
        width: calc(100vw - 32px);
    }
    
    .whatsapp-float {
        bottom: 85px;
        right: 16px;
        width: 54px;
        height: 54px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (min-width: 768px) {
    .whatsapp-popup {
        bottom: 180px;
        right: 32px;
        width: 380px;
    }
}

/* ============================================
   DARK MODE SUPPORT (if enabled)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .whatsapp-popup-content {
        background: #1a1a2e;
        border: 1px solid #2a2a4a;
    }
    
    .whatsapp-popup-content::after {
        background: #1a1a2e;
    }
    
    .whatsapp-popup-content h3 {
        color: #fff;
    }
    
    .whatsapp-popup-content p {
        color: #aaa;
    }
    
    .whatsapp-close {
        color: #666;
    }
    
    .whatsapp-close:hover {
        color: #fff;
    }
    
    .whatsapp-later {
        color: #666;
    }
    
    .whatsapp-later:hover {
        color: #aaa;
    }
}