body {
    font-family: 'Inter', Arial, sans-serif;
}

/* Styled Select Dropdown */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 12px;
    cursor: pointer;
}

/* Default padding for dropdown arrow - applies when no specific padding is set */
select:not([class*="px-"]) {
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2319a7e0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Admin dashboard dropdown - smaller size */
select[id="periodSelect"] {
    background-position: right 0.5rem center;
    padding-right: 1.75rem !important;
}

select option {
    padding: 0.75rem;
    background-color: white;
    color: #374151;
}

select option:hover {
    background-color: #f3f4f6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
}
.bg-grid {
    background: #1a2a4a;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), 
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}
.bg-pattern {
    background: #18191d url('https://www.transparenttextures.com/patterns/diamond-upholstery.png');
    background-blend-mode: multiply;
}
.shadow-custom {
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.10);
}
.shadow-card {
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
}
.star {
    color: #FFD600;
    font-size: 1.1rem;
}
.check {
    color: #00c853;
    font-size: 1rem;
}
.text-shadow {
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.footer-link:hover {
    text-decoration: underline;
}

/* Location Highlight */
.location-highlight {
    font-weight: 800;
    color: #FFD600;
    text-transform: capitalize;
    letter-spacing: 0.025em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.location-icon {
    color: #FFD600;
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: location-pulse 1s ease-in-out infinite;
}

/* Location in info box (blue background) - override for darker blue */
.bg-blue-50 .location-highlight {
    color: #1e40af;
    text-shadow: none;
}

.bg-blue-50 .location-icon {
    color: #1e40af;
    text-shadow: none;
    animation: none;
}

@keyframes location-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@-webkit-keyframes location-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Free Service Call Badge */
.free-service-badge {
    animation: badge-entrance 0.6s ease-out;
}

@keyframes badge-entrance {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.free-service-badge .animate-pulse {
    animation: gift-pulse 2s ease-in-out infinite;
}

@keyframes gift-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

.free-service-badge > div {
    transition: all 0.3s ease;
}

.free-service-badge > div:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
}

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.sticky-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 450px) {
    .phone-text {
        display: none;
    }
    
    .header-call-button {
        padding: 12px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        justify-content: center;
        min-width: 48px;
    }
    
    .header-call-button .fas {
        margin-right: 0 !important;
    }
}
@media (max-width: 350px) {
    .hero-phone-text {
        display: none;
    }
}
@media (max-width: 300px) {
    .footer-phone-text {
        display: none;
    }
}

/* Phone Icon Animations */
@keyframes phone-ring {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(-5deg); }
    60% { transform: rotate(5deg); }
    70% { transform: rotate(-5deg); }
    80% { transform: rotate(5deg); }
    90% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

@keyframes phone-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.phone-icon-ring {
    animation: phone-ring 1s ease-in-out infinite;
    color: #FFD700 !important;
}

.phone-icon-bounce {
    animation: phone-bounce 1s ease-in-out infinite;
    color: #FFD700 !important;
}

/* Pause animation on hover */
.phone-icon-ring:hover,
.phone-icon-bounce:hover {
    animation-play-state: paused;
}

/* Sticky Call Button */
.sticky-call-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    /* Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sticky-call-button-container.show {
    opacity: 1;
    visibility: visible;
}

.sticky-call-button {
    pointer-events: auto;
    background: #19a7e0;
    color: white;
    font-weight: bold;
    border-radius: 50px;
    padding: 16px 24px;
    box-shadow: 0 4px 20px rgba(25, 167, 224, 0.4),
                0 0 0 0 rgba(25, 167, 224, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    -webkit-animation: sticky-glow 2s ease-in-out infinite, sticky-shake 3s ease-in-out infinite;
    animation: sticky-glow 2s ease-in-out infinite, sticky-shake 3s ease-in-out infinite;
    /* Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sticky-call-button:hover {
    background: #148bb8;
    -webkit-transform: translateZ(0) scale(1.05);
    transform: translateZ(0) scale(1.05);
    box-shadow: 0 6px 25px rgba(25, 167, 224, 0.5),
                0 0 0 0 rgba(25, 167, 224, 0.8);
    -webkit-animation: sticky-glow 2s ease-in-out infinite;
    animation: sticky-glow 2s ease-in-out infinite;
}

.sticky-call-button-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-phone-icon {
    font-size: 18px;
    color: #FFD700 !important;
    -webkit-animation: sticky-phone-pulse 2s ease-in-out infinite;
    animation: sticky-phone-pulse 2s ease-in-out infinite;
}

.sticky-phone-text {
    font-size: 16px;
    font-weight: 700;
}

.sticky-call-microcopy {
    margin-top: 8px;
    font-size: 11px;
    color: #333;
    text-align: center;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    white-space: nowrap;
}

/* Subtle glow animation */
@keyframes sticky-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(25, 167, 224, 0.4),
                    0 0 0 0 rgba(25, 167, 224, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(25, 167, 224, 0.5),
                    0 0 0 4px rgba(25, 167, 224, 0.3);
    }
}

@-webkit-keyframes sticky-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(25, 167, 224, 0.4),
                    0 0 0 0 rgba(25, 167, 224, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(25, 167, 224, 0.5),
                    0 0 0 4px rgba(25, 167, 224, 0.3);
    }
}

/* Phone icon pulse animation */
@keyframes sticky-phone-pulse {
    0%, 100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
}

@-webkit-keyframes sticky-phone-pulse {
    0%, 100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
}

/* Sticky button shake animation */
@keyframes sticky-shake {
    0%, 100% { 
        -webkit-transform: translateZ(0) translateX(0);
        transform: translateZ(0) translateX(0);
    }
    10% { 
        -webkit-transform: translateZ(0) translateX(-3px) rotate(-2deg);
        transform: translateZ(0) translateX(-3px) rotate(-2deg);
    }
    20% { 
        -webkit-transform: translateZ(0) translateX(3px) rotate(2deg);
        transform: translateZ(0) translateX(3px) rotate(2deg);
    }
    30% { 
        -webkit-transform: translateZ(0) translateX(-3px) rotate(-2deg);
        transform: translateZ(0) translateX(-3px) rotate(-2deg);
    }
    40% { 
        -webkit-transform: translateZ(0) translateX(3px) rotate(2deg);
        transform: translateZ(0) translateX(3px) rotate(2deg);
    }
    50% { 
        -webkit-transform: translateZ(0) translateX(-2px) rotate(-1deg);
        transform: translateZ(0) translateX(-2px) rotate(-1deg);
    }
    60% { 
        -webkit-transform: translateZ(0) translateX(2px) rotate(1deg);
        transform: translateZ(0) translateX(2px) rotate(1deg);
    }
    70% { 
        -webkit-transform: translateZ(0) translateX(-2px) rotate(-1deg);
        transform: translateZ(0) translateX(-2px) rotate(-1deg);
    }
    80% { 
        -webkit-transform: translateZ(0) translateX(2px) rotate(1deg);
        transform: translateZ(0) translateX(2px) rotate(1deg);
    }
    90% { 
        -webkit-transform: translateZ(0) translateX(-1px);
        transform: translateZ(0) translateX(-1px);
    }
}

@-webkit-keyframes sticky-shake {
    0%, 100% { 
        -webkit-transform: translateZ(0) translateX(0);
        transform: translateZ(0) translateX(0);
    }
    10% { 
        -webkit-transform: translateZ(0) translateX(-3px) rotate(-2deg);
        transform: translateZ(0) translateX(-3px) rotate(-2deg);
    }
    20% { 
        -webkit-transform: translateZ(0) translateX(3px) rotate(2deg);
        transform: translateZ(0) translateX(3px) rotate(2deg);
    }
    30% { 
        -webkit-transform: translateZ(0) translateX(-3px) rotate(-2deg);
        transform: translateZ(0) translateX(-3px) rotate(-2deg);
    }
    40% { 
        -webkit-transform: translateZ(0) translateX(3px) rotate(2deg);
        transform: translateZ(0) translateX(3px) rotate(2deg);
    }
    50% { 
        -webkit-transform: translateZ(0) translateX(-2px) rotate(-1deg);
        transform: translateZ(0) translateX(-2px) rotate(-1deg);
    }
    60% { 
        -webkit-transform: translateZ(0) translateX(2px) rotate(1deg);
        transform: translateZ(0) translateX(2px) rotate(1deg);
    }
    70% { 
        -webkit-transform: translateZ(0) translateX(-2px) rotate(-1deg);
        transform: translateZ(0) translateX(-2px) rotate(-1deg);
    }
    80% { 
        -webkit-transform: translateZ(0) translateX(2px) rotate(1deg);
        transform: translateZ(0) translateX(2px) rotate(1deg);
    }
    90% { 
        -webkit-transform: translateZ(0) translateX(-1px);
        transform: translateZ(0) translateX(-1px);
    }
}

/* Section Call Buttons */
.section-call-button {
    cursor: pointer;
}

.section-call-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .section-call-button {
        padding: 12px 20px;
        font-size: 18px;
    }
    
    .section-call-button span {
        font-size: 16px;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sticky-call-button-container {
        bottom: 20px;
        left: 50%;
        right: auto;
        -webkit-transform: translateX(-50%) translateZ(0);
        transform: translateX(-50%) translateZ(0);
    }
    
    .sticky-call-button {
        padding: 14px 20px;
    }
    
    .sticky-phone-text {
        font-size: 15px;
    }
    
    .sticky-call-microcopy {
        font-size: 10px;
        padding: 5px 10px;
        max-width: 200px;
        white-space: normal;
        line-height: 1.2;
    }
}

@media (max-width: 450px) {
    .sticky-phone-text {
        display: none;
    }
    
    .sticky-call-button {
        padding: 16px;
        border-radius: 50%;
        width: 56px;
        height: 56px;
    }
    
    .sticky-call-button-inner {
        justify-content: center;
    }
    
    .sticky-phone-icon {
        margin: 0;
    }
}
