/* Services and Products Section */
.services-products {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 2rem 2rem 50rem 2rem;
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: fadeIn 3s ease 0.3s forwards;
    opacity: 0;
}

.services-products::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00d4ff, #00ff88, rgb(18,97,128), #8000ff);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.2;
    filter: blur(6px);
}

.services-products .section-title {
    color: #e0e7ff;
}

.services-products .section-title .highlight {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-products .section-subtitle {
    background: linear-gradient(135deg, #00ff88, rgb(18,97,128));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Rock Salt', cursive;
}

/* Prevent sub-tabs from wrapping */
#services .tabs {
    flex-wrap: nowrap;
}

/* Allow sub-tabs to wrap into two rows at 320px breakpoint */
@media (max-width: 320px) {
    #services .tabs {
        flex-wrap: wrap;
    }

    /* Make sub-cards almost as wide as tab-content */
    .tab-content {
        padding: 0.5rem;
    }

    .sub-tab-content {
        padding: 0.25rem;
    }

    .sub-cards {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .sub-card {
        padding: 0.5rem;
    }

    /* Adjust slider buttons for 320px */
    .slide-btn {
        font-size: 0.5rem;
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }

    .slide-btn.slid {
        left: calc(100% - 38px);
    }

    .slide-bg {
        font-size: 0.7rem;
        justify-content: flex-end;
        padding-right: 45px;
    }

    .slide-container.slid .slide-bg {
        justify-content: flex-start;
        padding-left: 45px;
        padding-right: 0;
    }
}

/* Sub-tab content styling */
.sub-tab-content {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sub-tab-content p {
    color: #cbd5e1;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sub-tab-content p:last-child {
    margin-bottom: 1.5rem;
}

/* Sub-cards for content */
.sub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sub-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sub-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Slide containers (now toggle style) */
.slide-container {
    position: relative;
    width: 100%;
    height: 50px;
    margin-top: 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.slide-container.slid {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.5);
    cursor: default;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
    transition: color 0.3s ease;
}

.slide-container.slid .slide-bg {
    color: #00d4ff;
}

.slide-btn {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slide-btn.slid {
    left: calc(100% - 46px);
    background: #00d4ff;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.quantum-modal-content {
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.quantum-modal-content::-webkit-scrollbar {
    width: 8px;
}

.quantum-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.quantum-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    border-radius: 10px;
}

.quantum-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00ff88, #8000ff);
}

.quantum-form {
    margin-top: 2rem;
}

/* Compact form layout for quantum modal */
.quantum-modal-content .form-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.25rem 0;
}

/* Country step specific styling - center align items */
.quantum-step[data-step="2"] .form-group {
    align-items: center;
}

.quantum-modal-content .form-group label {
    display: inline-block;
    min-width: 110px;
    margin-right: 1rem;
    margin-bottom: 0;
    padding-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e7ff;
    font-family: 'Lato', sans-serif;
    line-height: 1.4;
    vertical-align: top;
}

.quantum-modal-content .form-group input,
.quantum-modal-content .form-group select,
.quantum-modal-content .form-group textarea {
    flex: 1;
    width: auto;
    margin-top: 0;
}

.quantum-modal-content .form-group input,
.quantum-modal-content .form-group select {
    height: 40px;
    padding: 0.5rem 0.75rem;
}

.quantum-modal-content .form-group textarea {
    min-height: 80px;
    resize: vertical;
    padding: 0.75rem;
    line-height: 1.5;
}

/* Tighter spacing for form rows */
.quantum-modal-content .form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.quantum-modal-content .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}


/* Primary request textarea - centered above payment method section */
.quantum-modal-content .form-group:has(#request) {
    text-align: center;
    margin-left: 0;
    width: 100%;
}

.quantum-modal-content .form-group:has(#request) label {
    min-width: unset;
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: center;
}

.quantum-modal-content .form-group:has(#request) textarea {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* Payment method section - center aligned vertically in modal */
.quantum-modal-content .payment-group {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.quantum-modal-content .payment-group label {
    margin-bottom: 0.5rem;
    min-width: unset;
    width: 100%;
    text-align: center;
}

/* Revert to stacked layout at 320px breakpoint */
@media (max-width: 320px) {
    .quantum-modal-content .form-group {
        display: block;
    }

    .quantum-modal-content .form-group label {
        display: block;
        min-width: unset;
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .quantum-modal-content .form-group input,
    .quantum-modal-content .form-group select,
    .quantum-modal-content .form-group textarea {
        width: 100%;
    }

    .quantum-modal-content {
        max-width: 500px; /* Slightly wider for 320px to accommodate stacked layout */
    }
}

.quantum-select {
    width: 100%;
    max-width: 250px;
}

/* Country dropdown menu background matching Contact Us form */
.quantum-modal-content .select__options {
    position: absolute;
    bottom: 100%; /* Position above the select element */
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Comprehensive country selector styles for quantum modal */
.quantum-modal-content .select {
    position: relative;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.quantum-modal-content .select__selected {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #e0e7ff;
    padding: 0.5rem 0.25rem;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
}

.quantum-modal-content .select__selected:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quantum-modal-content .select__options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-top: 0.25rem;
    z-index: 1001; /* Higher than modal */
    min-width: 250px;
    max-height: 200px;
    overflow-y: auto;
}

/* Specific override for country select to appear above with darker background */
#countrySelect.select.quantum-select .select__options {
    bottom: 100%;
    top: auto;
    background: rgba(0, 0, 0, 0.95);
    margin-bottom: 0.25rem;
    margin-top: 0;
    transform: translateY(-5px);
}

.quantum-modal-content .select__options .select__option {
    padding: 0.5rem 0.25rem 0.5rem 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: background 0.3s ease;
}

.quantum-modal-content .select__options .select__option:hover {
    background: rgba(0, 212, 255, 0.6);
    border-radius: 10px;
}

.quantum-modal-content .select.open .select__options {
    display: block;
}

/* Blur form when select is open */
.select.open ~ .form-row,
.select.open ~ .form-group {
    filter: blur(3px);
    pointer-events: none;
}

.payment-cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    transform: scale(0.85);
}

.payment-card-option {
    background: rgb(176,140,46, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    width: 180px;
    position: relative;
    overflow: hidden;
}

.payment-card-option img {
    width: 160px;
    height: 90px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.payment-card-option .payment-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.7rem;
    padding: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-card-option:hover .payment-description {
    opacity: 1;
}

.payment-card-option:hover img {
    opacity: 0;
}

.payment-card-option.selected {
    border-color: #10b981;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(16, 185, 129, 0.5);
}

.modal .close {
    color: #e0e7ff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

.modal .close:hover {
    color: #10b981;
}

.modal-content.large-modal {
    max-width: 900px;
    width: 95%;
}

/* Q-Map Modal Styles */
.map-container {
    width: 100%;
    height: 400px;
}

/* Apparel Modal Styles */
.apparel-modal {
    max-width: 500px;
    width: 90%;
}

.apparel-subtitle {
    background: linear-gradient(45deg, rgb(18,97,128), #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.image-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.image-sub-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.flip-card {
    background-color: transparent;
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transform-style: preserve-3d;
    animation: autoFlip 6s infinite ease-in-out;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-front img, .flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

@keyframes autoFlip {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

.apparel-btn {
    background: linear-gradient(45deg, rgb(18,97,128), #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    animation: gradientShift 3s ease infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.apparel-btn:hover {
    transform: scale(1.05);
}

.map-split {
    display: flex;
    height: 100%;
    gap: 20px;
}

.map-card {
    flex: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.map {
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-text {
    color: #e0e7ff;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.map-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: opacity 0.3s ease;
    z-index: 10;
}

.map-card:hover .map-banner {
    opacity: 0;
}

.address-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.video-container {
    text-align: center;
}

.video-container iframe {
    width: 90%;
    height: 400px;
    border-radius: 10px;
}

.video-container video {
    width: 80%;
    height: 350px;
    transform: scale(1, 0.9) translateY(-40px);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.embed-container {
    text-align: center;
}

.embed-container iframe {
    width: 100%;
    height: 500px;
    border-radius: 10px;
}