/* Phone link styling - light text on transparent background */
.mil-phone-link {
    color: rgb(255, 255, 255);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: auto;
}

.mil-phone-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgb(238, 49, 36);
}

.mil-phone-link:active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* When top bar transitions to solid background */
.mil-top-panel:not(.mil-top-panel-transparent) .mil-phone-link {
    color: rgb(18, 24, 32);
}

.mil-top-panel:not(.mil-top-panel-transparent) .mil-phone-link:hover {
    background-color: rgba(18, 24, 32, 0.05);
    color: rgb(238, 49, 36);
}

.mil-top-panel:not(.mil-top-panel-transparent) .mil-phone-link:active {
    background-color: rgba(18, 24, 32, 0.1);
}

/* Tablet and Mobile: Always dark (white background in hero) */
@media (max-width: 1199px) {
    .mil-phone-link {
        color: rgb(18, 24, 32);
        padding: 8px 12px;
        font-size: 14px;
        margin-right: 0;
    }

    .mil-phone-link:hover {
        background-color: rgba(18, 24, 32, 0.05);
        color: rgb(238, 49, 36);
    }

    .mil-phone-link:active {
        background-color: rgba(18, 24, 32, 0.1);
    }

    .mil-top-panel-transparent .mil-phone-link {
        color: rgb(18, 24, 32);
    }

    .mil-top-panel-transparent .mil-phone-link:hover {
        background-color: rgba(18, 24, 32, 0.05);
        color: rgb(238, 49, 36);
    }
}

/* Mobile: Smaller icon and adjust layout */
@media (max-width: 480px) {
    .mil-phone-link {
        padding: 6px 8px;
        font-size: 12px;
        gap: 4px;
    }

    .mil-phone-link svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .mil-phone-text {
        display: inline;
    }
}

/* Hero banner background image */
.lp-hero-bg {
    object-position: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
}

/* Trust icons section */
.trust-icons {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.trust-icon-item {
    opacity: 1;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.trust-icon-item span.mil-light {
    font-size: 16px;
    flex-shrink: 0;
}

.trust-icon-text {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.trust-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
}

/* Apply only on tablet + mobile (under desktop breakpoint) */
@media (max-width: 1199px) {
    .trust-icons {
        margin-bottom: 24px;
    }
}

/* Logo scroller styles */
.logo-scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.logo-scroller::-webkit-scrollbar {
    display: none;
}

.logo-track {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    min-width: max-content;
    animation: logoMarquee 40s linear infinite;
}

.logo-track img {
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
    transition: none;
    pointer-events: none;
}

@keyframes logoMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-track {
        animation: none;
    }
}

/* Review Card Styles */
.mil-review-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #ee3124;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mil-review-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.mil-review-stars {
    display: flex;
    gap: 4px;
}

.mil-star {
    color: #ee3124;
    font-size: 16px;
    line-height: 1;
}

.mil-review-text {
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
    font-style: italic;
}

.mil-review-author {
    margin-top: auto;
    padding-top: 16px;
}

.mil-mt-40 {
    margin-top: 40px;
}

/* FAQ Styles */
.mil-faq-item {
    transition: background 0.3s ease;
}

.mil-faq-item:hover {
    background: rgba(238, 49, 36, 0.05);
}

.mil-faq-head {
    padding: 12px 0;
    font-size: 18px;
    position: relative;
}

.mil-faq-head::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(238, 49, 36, 0.2);
    bottom: 0;
    left: 0;
}

.mil-faq-body {
    margin-top: 10px;
    padding-left: 40px;
    color: #666;
    line-height: 1.6;
}

/* Form validation and submission styles */
.mil-input-frame.has-error input {
    border-color: #ee3124 !important;
    background-color: rgba(238, 49, 36, 0.05) !important;
}

.form-error {
    display: block;
    color: #ee3124;
    font-size: 12px;
    margin-top: 4px;
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- Form styles consolidated and improved --- */

.form-status-message {
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    display: none;
}

.form-status-message.success {
    background-color: rgba(39, 174, 96, 0.1);
    border: 1px solid #27ae60;
    color: #27ae60;
    display: block;
}

.form-status-message.error {
    background-color: rgba(238, 49, 36, 0.1);
    border: 1px solid #ee3124;
    color: #ee3124;
    display: block;
}

/* Hero form card styling */
.mil-form-hero {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    border-left: 4px solid #ee3124;
}

.mil-form-hero h5 {
    margin: 0 0 22px 0;
    text-align: center;
    font-size: 20px;
    color: #121820;
}

/* Form input improvements */
.mil-input-frame input {
    min-height: 44px;
    transition: all 0.3s ease;
}

.mil-input-frame input:focus {
    outline: 2px solid #ee3124;
    outline-offset: 2px;
}

.mil-input-frame label span {
    color: #ee3124;
}

/* Privacy section improvements */
.mil-form-privacy {
    text-align: center;
    margin: 12px 0 0 0;
    font-size: 11px;
    color: #999;
}

.mil-form-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mil-form-footer span {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mil-form-footer .icon-success {
    color: #27ae60;
}

/* Form container and input adjustments for mobile */
@media (max-width: 768px) {
    /* Reduce form container padding on mobile */
    .mil-form-hero {
        padding: 24px;
    }

    /* Reduce form heading margin */
    .mil-form-hero h5 {
        margin-bottom: 16px;
        font-size: 18px;
    }

    /* Reduce input frame margin */
    .mil-input-frame {
        margin-bottom: 12px;
    }

    /* Reduce button margin */
    .form-submit-btn {
        margin-bottom: 8px;
    }

    /* Compact form text */
    .mil-text-sm {
        font-size: 12px;
        margin-top: 8px;
    }

    /* Privacy section - reduce padding */
    .mil-form-footer {
        margin-top: 12px;
        padding-top: 12px;
        gap: 8px;
    }

    /* Form status message - reduce padding */
    .form-status-message {
        padding: 8px;
        margin-top: 8px;
        font-size: 13px;
    }

    /* Remove extra spacing in form inputs */
    .mil-input-frame label {
        margin-bottom: 4px;
        display: block;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - even tighter spacing */
    .mil-form-hero {
        padding: 16px;
    }

    .mil-form-hero h5 {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .mil-input-frame {
        margin-bottom: 10px;
    }

    .form-submit-btn {
        margin-bottom: 6px;
        font-size: 14px;
        min-height: 44px;
        padding: 10px 12px;
    }

    .mil-text-sm {
        font-size: 11px;
    }

    /* Tighter privacy section */
    .mil-form-footer {
        margin-top: 8px;
        padding-top: 8px;
        gap: 6px;
    }

    /* Input label font size */
    .mil-input-frame .mil-h6 {
        font-size: 13px;
    }

    /* Input padding for touch targets */
    .mil-input-frame input {
        padding: 8px 10px;
        font-size: 14px;
        min-height: 44px;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix testimonial slider side spacing to match Bootstrap container */
.mil-revi-slider-2 .swiper-wrapper {
    margin-left: 0;
    margin-right: 0;
}

.mil-revi-slider-2 .swiper-slide {
    padding-left: 0;
    padding-right: 0;
    margin-right: 15px;
}

.mil-revi-slider-2 {
    overflow: hidden;
}
