/* ============================================
   NOVARIDE - MOBILE-FIRST PREMIUM EXPERIENCE
   Apple / Tesla / Stripe Level Mobile UX
   ============================================ */

/* ========== MOBILE-FIRST BASE STYLES ========== */

/* Core principle: Design for mobile first, enhance for larger screens */

:root {
    /* Mobile-specific spacing (more generous for touch) */
    --mobile-space-xs: 0.5rem;
    --mobile-space-sm: 1rem;
    --mobile-space-md: 1.5rem;
    --mobile-space-lg: 2rem;
    --mobile-space-xl: 3rem;
    --mobile-space-2xl: 4rem;

    /* Touch target minimum sizes */
    --touch-target-min: 48px;
    --touch-target-comfortable: 56px;

    /* Mobile typography (slightly larger for readability) */
    --mobile-text-base: 1rem;
    --mobile-text-lg: 1.125rem;
    --mobile-text-xl: 1.25rem;

    /* Mobile container padding */
    --mobile-container-padding: 1.25rem;
}

/* ========== MOBILE CONTAINER ========== */

/* Prevent horizontal overflow on mobile */
@media (max-width: 767px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Ensure all root-level sections stay contained */
    main,
    section,
    header,
    footer,
    article,
    aside,
    nav,
    .section,
    .hero,
    .hero-flagship {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container {
        padding-left: var(--mobile-container-padding);
        padding-right: var(--mobile-container-padding);
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ========== MOBILE-FIRST GRID SYSTEM ========== */

/* Single column by default (mobile-first) */
.mobile-grid,
.m-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-space-lg);
}

/* Expand on tablet */
@media (min-width: 768px) {
    .m-grid-2-tablet {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Expand on desktop */
@media (min-width: 1024px) {
    .m-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .m-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .m-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== MOBILE SCROLL SNAP SECTIONS ========== */

.mobile-snap-container {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: 100vh;
}

.mobile-snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Horizontal scroll snap for carousels */
.mobile-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--mobile-space-md);
    padding: var(--mobile-space-md) 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-carousel::-webkit-scrollbar {
    display: none;
}

.mobile-carousel-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .mobile-carousel-item {
        flex: 0 0 45%;
    }
}

@media (min-width: 1024px) {
    .mobile-carousel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .mobile-carousel-item {
        flex: none;
    }
}

/* ========== MOBILE-FIRST HERO ========== */

.mobile-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--mobile-space-xl) var(--mobile-container-padding);
    padding-top: calc(80px + var(--mobile-space-xl));
    /* Account for nav */
}

.mobile-hero-content {
    max-width: 100%;
}

.mobile-hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.mobile-hero-subtitle {
    font-size: var(--mobile-text-lg);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--mobile-space-md);
    line-height: 1.6;
}

.mobile-hero-cta {
    margin-top: var(--mobile-space-xl);
}

/* ========== MOBILE-FIRST BUTTONS ========== */

/* Touch-friendly buttons with minimum 48px height */
.btn-mobile,
.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target-min);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-mobile-lg {
    min-height: var(--touch-target-comfortable);
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Full-width buttons on mobile */
@media (max-width: 767px) {
    .btn-mobile-block {
        width: 100%;
    }

    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: var(--mobile-space-sm);
    }

    .btn-group-mobile .btn,
    .btn-group-mobile .btn-mobile {
        width: 100%;
    }
}

/* ========== MOBILE-FIRST CARDS ========== */

.mobile-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all 0.4s ease;
}

.mobile-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.mobile-card-content {
    padding: var(--mobile-space-lg);
}

.mobile-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--mobile-space-sm);
}

.mobile-card-text {
    font-size: var(--mobile-text-base);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* Product card - one per screen on mobile */
.mobile-product-card {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 160px);
    padding: var(--mobile-space-lg);
    justify-content: center;
}

@media (min-width: 768px) {
    .mobile-product-card {
        min-height: auto;
    }
}

/* ========== MOBILE-FIRST FORMS ========== */

.mobile-form-group {
    margin-bottom: var(--mobile-space-lg);
}

.mobile-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--mobile-space-xs);
}

.mobile-form-input {
    width: 100%;
    min-height: var(--touch-target-comfortable);
    padding: 16px 20px;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-form-input:focus {
    border-color: var(--nova-green);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.mobile-form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Single column form rows on mobile */
.mobile-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-space-md);
}

@media (min-width: 768px) {
    .mobile-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== MOBILE-FIRST SECTIONS ========== */

.mobile-section {
    padding: var(--mobile-space-2xl) 0;
}

.mobile-section-header {
    text-align: center;
    margin-bottom: var(--mobile-space-xl);
}

.mobile-section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--nova-green);
    margin-bottom: var(--mobile-space-sm);
}

.mobile-section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.mobile-section-subtitle {
    font-size: var(--mobile-text-base);
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--mobile-space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ========== MOBILE-FIRST STATS ========== */

.mobile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--mobile-space-md);
}

.mobile-stat {
    text-align: center;
    padding: var(--mobile-space-md);
}

.mobile-stat-value {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.mobile-stat-value span {
    color: var(--nova-green);
}

.mobile-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

@media (min-width: 768px) {
    .mobile-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== MOBILE-FIRST FOOTER ========== */

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: var(--mobile-space-lg);
    }

    .footer-brand {
        text-align: left;
        margin-bottom: var(--mobile-space-md);
    }

    .footer-logo {
        margin-left: 0;
        text-align: left;
    }

    .footer-logo-img {
        display: block;
        margin-left: 0;
    }

    .footer-brand-description {
        max-width: 100%;
        margin: var(--mobile-space-md) 0 0;
        text-align: left;
    }

    /* Collapsible footer sections */
    .footer-section-mobile {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: var(--mobile-space-md);
    }

    .footer-title {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-links {
        margin-top: var(--mobile-space-sm);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--mobile-space-md);
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ========== STICKY MOBILE CTA ========== */

.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--mobile-space-md);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-sticky-cta.visible {
    transform: translateY(0);
}

.mobile-sticky-cta .btn {
    width: 100%;
}

@media (min-width: 1024px) {
    .mobile-sticky-cta {
        display: none;
    }
}

/* ========== MOBILE VISIBILITY UTILITIES ========== */

.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 1024px) {
    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: block;
    }
}

/* Tablet breakpoint */
.tablet-only {
    display: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .tablet-only {
        display: block;
    }
}

/* ========== MOBILE TEXT UTILITIES ========== */

@media (max-width: 767px) {

    /* Reduce text length on mobile for readability */
    .mobile-text-short {
        max-width: 100%;
    }

    /* Center text on mobile */
    .mobile-text-center {
        text-align: center;
    }

    /* Hide on mobile */
    .mobile-hidden {
        display: none !important;
    }

    /* Show only on mobile */
    .mobile-show {
        display: block !important;
    }
}

/* ========== MOBILE SPACING UTILITIES ========== */

@media (max-width: 767px) {
    .mobile-mt-0 {
        margin-top: 0 !important;
    }

    .mobile-mt-1 {
        margin-top: var(--mobile-space-xs) !important;
    }

    .mobile-mt-2 {
        margin-top: var(--mobile-space-sm) !important;
    }

    .mobile-mt-3 {
        margin-top: var(--mobile-space-md) !important;
    }

    .mobile-mt-4 {
        margin-top: var(--mobile-space-lg) !important;
    }

    .mobile-mt-5 {
        margin-top: var(--mobile-space-xl) !important;
    }

    .mobile-mb-0 {
        margin-bottom: 0 !important;
    }

    .mobile-mb-1 {
        margin-bottom: var(--mobile-space-xs) !important;
    }

    .mobile-mb-2 {
        margin-bottom: var(--mobile-space-sm) !important;
    }

    .mobile-mb-3 {
        margin-bottom: var(--mobile-space-md) !important;
    }

    .mobile-mb-4 {
        margin-bottom: var(--mobile-space-lg) !important;
    }

    .mobile-mb-5 {
        margin-bottom: var(--mobile-space-xl) !important;
    }

    .mobile-p-0 {
        padding: 0 !important;
    }

    .mobile-p-1 {
        padding: var(--mobile-space-xs) !important;
    }

    .mobile-p-2 {
        padding: var(--mobile-space-sm) !important;
    }

    .mobile-p-3 {
        padding: var(--mobile-space-md) !important;
    }

    .mobile-p-4 {
        padding: var(--mobile-space-lg) !important;
    }

    .mobile-p-5 {
        padding: var(--mobile-space-xl) !important;
    }
}

/* ========== MOBILE PERFORMANCE OPTIMIZATIONS ========== */

@media (max-width: 767px) {

    /* Reduce animation intensity on mobile */
    .mobile-reduce-motion {
        animation-duration: 0.3s !important;
        transition-duration: 0.2s !important;
    }

    /* Disable heavy animations on mobile */
    .mobile-no-animation {
        animation: none !important;
    }

    /* Optimize for scroll performance */
    .mobile-gpu-accelerate {
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== MOBILE TOUCH FEEDBACK ========== */

@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none;
    }

    /* Add active state for touch feedback */
    .btn:active,
    .card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* ========== SAFE AREA INSETS (for notched devices) ========== */

@supports (padding: max(0px)) {
    .mobile-safe-area-top {
        padding-top: max(var(--mobile-space-md), env(safe-area-inset-top));
    }

    .mobile-safe-area-bottom {
        padding-bottom: max(var(--mobile-space-md), env(safe-area-inset-bottom));
    }

    .mobile-sticky-cta {
        padding-bottom: max(var(--mobile-space-md), env(safe-area-inset-bottom));
    }
}

/* ============================================
   APPLE-LEVEL ORIENTATION OVERLAY
   Premium SVG Animation Design
   ============================================ */

.orientation-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.98) 0%,
            rgba(5, 10, 5, 0.99) 50%,
            rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* Animated particles background */
.orientation-particles {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Glassmorphism card */
.orientation-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(16, 185, 129, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    animation: cardAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Phone wrapper with glow */
.orientation-phone-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Circular arrow ring */
.orientation-arrow-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    animation: ringPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.arrow-path {
    animation: arrowDash 2.5s ease-in-out infinite;
}

@keyframes arrowDash {
    0% {
        stroke-dashoffset: 220;
        opacity: 0.3;
    }

    50% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: -220;
        opacity: 0.3;
    }
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Animated phone */
.orientation-phone {
    width: 50px;
    height: 84px;
    animation: phoneRotate 3s ease-in-out infinite;
    transform-origin: center center;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 30px rgba(16, 185, 129, 0.2));
}

.orientation-phone svg {
    width: 100%;
    height: 100%;
}

@keyframes phoneRotate {
    0% {
        transform: rotate(90deg);
    }

    20% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(0deg);
    }

    80% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(90deg);
    }
}

/* Text content */
.orientation-text-content {
    text-align: center;
}

.orientation-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.orientation-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Brand footer */
.orientation-brand {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.orientation-brand-text {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
}

/* Show on mobile/tablet landscape */
@media (max-width: 900px) and (orientation: landscape) {
    .orientation-overlay {
        display: flex;
    }
}

/* Hide on desktop */
@media (min-width: 901px) {
    .orientation-overlay {
        display: none !important;
    }
}

/* Smaller screens adjustments */
@media (max-height: 400px) and (orientation: landscape) {
    .orientation-card {
        padding: 20px 32px;
        gap: 16px;
        flex-direction: row;
    }

    .orientation-phone-wrapper {
        width: 100px;
        height: 100px;
    }

    .orientation-arrow-ring {
        width: 100px;
        height: 100px;
    }

    .orientation-phone {
        width: 36px;
        height: 60px;
    }

    .orientation-title {
        font-size: 1.1rem;
    }

    .orientation-subtitle {
        font-size: 0.75rem;
    }

    .orientation-brand {
        bottom: 12px;
    }
}

/* ============================================
   SAFARI iOS COMPATIBILITY FIXES
   Dropdowns, Videos, and Form Elements
   ============================================ */

/* Force custom dropdown styling on iOS Safari */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific styles */

    /* === SELECT/DROPDOWN FIXES === */
    select,
    .form-select,
    .form-input[type="select"],
    .order-input {
        /* Force custom appearance on iOS */
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;

        /* Ensure consistent styling */
        background-color: rgba(10, 10, 10, 0.95) !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 16px center !important;
        background-size: 18px !important;

        /* Prevent iOS zoom on focus */
        font-size: 16px !important;

        /* Padding for arrow space */
        padding-right: 48px !important;

        /* Border and radius */
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;

        /* Text styling */
        color: #ffffff !important;
    }

    /* Focus state for iOS */
    select:focus,
    .form-select:focus,
    .order-input:focus {
        border-color: #10b981 !important;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
        outline: none !important;
    }

    /* Option styling (limited on iOS but helps) */
    select option,
    .form-select option {
        background-color: #0a0a0a !important;
        color: #ffffff !important;
        padding: 12px !important;
    }

    /* === INPUT FIELD FIXES === */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    .form-input,
    .form-textarea {
        /* Prevent iOS zoom on focus (must be 16px+) */
        font-size: 16px !important;

        /* Remove iOS input shadows */
        -webkit-appearance: none !important;
        appearance: none !important;

        /* Consistent background */
        background-color: rgba(255, 255, 255, 0.03) !important;

        /* Border radius */
        border-radius: 12px !important;
    }

    /* === VIDEO FIXES FOR iOS SAFARI === */
    video {
        /* Ensure video is visible */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);

        /* Force hardware acceleration */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .hero-video,
    .hero-flagship-bg video {
        /* iOS video rendering fixes */
        object-fit: cover !important;

        /* Ensure visibility */
        opacity: 1 !important;
        visibility: visible !important;

        /* Force layer creation for smooth playback */
        will-change: transform;
    }
}

/* Additional iOS Safari video fixes via media query */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    /* Retina/iOS devices */

    .hero-video {
        /* Ensure video covers container */
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* iOS may hide videos that aren't properly positioned */
    .hero-flagship-bg {
        position: absolute !important;
        inset: 0 !important;
        overflow: hidden !important;
    }
}

/* Ensure form selects are properly visible on all mobile */
@media (max-width: 767px) {

    select,
    .form-select {
        /* Minimum touch target */
        min-height: 48px !important;

        /* Full width on mobile */
        width: 100% !important;

        /* Prevent text cutoff */
        text-overflow: ellipsis !important;

        /* Force visibility */
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Specific fix for contact form select */
    #subject,
    #city,
    .form-group select {
        /* Ensure dropdown is visible */
        position: relative !important;
        z-index: 1 !important;

        /* Force display */
        display: block !important;
        opacity: 1 !important;

        /* Styling */
        -webkit-appearance: none !important;
        appearance: none !important;
        background-color: rgba(10, 10, 10, 0.95) !important;
        color: #ffffff !important;
    }
}