/* Custom Progress Bar Styles */
.progress-bar-steps {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
}

/* 1. The horizontal line connector (Inactive Gray Line) */
.progress-bar-steps::before {
    content: "";
    position: absolute;
    top: 20px; /* Adjusted to align with circles */
    left: 10%;
    right: 10%;
    height: 4px;
    background: #ccc; /* Inactive line color */
    z-index: 0;
}

/* 2. The Active Orange Line (Controlled by JS width) */
.progress-active-line {
    position: absolute;
    top: 20px; /* Same position as ::before */
    left: 10%;
    width: 0%; /* JS will update this width */
    height: 4px;
    background: #ff8c00; /* Active line color (Orange) */
    z-index: 1; /* Above the inactive line */
    transition: width 0.4s ease-in-out; /* Smooth animation */
    max-width: 80%; /* CRITICAL FIX: Prevent line from going beyond last step */
}

.step-progress-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%; /* 100% / 5 steps */
    z-index: 2; /* Keep steps above the lines */
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ccc; /* Inactive circle color */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
    border: 3px solid #ccc;
    transition:
        background-color 0.3s,
        border-color 0.3s;
    z-index: 2;
}

.step-label {
    font-size: 14px;
    color: #888; /* Inactive text color */
    text-align: center;
}

/* ================================================= */
/* === A. COMPLETED Steps (Previous steps) === */
.step-progress-wrapper.completed .step-circle {
    background-color: #ff8c00;
    border-color: #ff8c00;
    color: #fff;
    box-shadow: none !important;
}

.step-progress-wrapper.completed .step-label {
    color: #ff8c00; /* Orange text for completed steps */
}

/* === B. ACTIVE Step (Current Step) === */
.step-progress-wrapper.active .step-circle {
    background-color: #ff8c00;
    border-color: #ff8c00;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(255, 140, 0, 0.3);
}

.step-progress-wrapper.active .step-label {
    color: #ff8c00; /* Orange text for active step */
}

.sticky-sidebar {
    position: sticky;
    top: 100px; /* Adjust this value based on your fixed header height + desired spacing */
    max-height: calc(100vh - 120px);
    overflow-y: auto; /* Allow scrolling if the content is long */
}
.card-right {
    padding: 20px; /* Adjust as needed */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Add this to your <style> block or main CSS file */
.spinner {
    border: 4px solid #f3f3f3; /* Light grey background */
    border-top: 4px solid #3498db; /* Blue spin color (change to match your theme) */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto; /* Center the spinner */
}
/* LOADER DESIGN */
.geny-loader {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: flex; /* keep layout */
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;

    /* hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 200ms ease,
        visibility 200ms ease;
}
.services .bg-dots-bottom {
    z-index: 3;
}

.geny-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.loader-logo img {
    width: 150px;
    animation: blink 1.5s infinite ease-in-out;
}

/* .loader-logo img {
  width: 150px;
  animation: blink 1.5s infinite ease-in-out;
} */

.main-banner {
    border-radius: 20px;
}
.personal-detail-steps .card {
    margin-bottom: 0;
}
.purchase-form .sub-radios,
#activationPaymentCreditCardForm {
    margin-left: 54px;
}
.personal-info-wrap .radio-card {
    margin-bottom: 20px;
}
.error {
    color: #f00;
}
.purchase-form h6 {
    margin-bottom: 0;
    font-size: 18px;
}
.coverage-section.bg-secondary .text-danger {
    color: #012c60 !important;
}
.modem_choise_form .radio-card,
.modem_choise_form label {
    cursor: pointer;
}
.main-banner .banner-title h1 img {
    max-width: 32px;
}
@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}
/* END OF LOADER DESIGN */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Optional: Overlay to prevent double-clicks during submission */
.loading-overlay {
    position: absolute; /* or fixed, depending on scope */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Light overlay */
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Design Fixes - 03-11-2025 */
header {
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}
.choose-file input {
    padding-right: 32px !important;
}
header .navbar-brand:focus-visible {
    border: none;
    outline: none;
}
.all-cards .fiber-card {
    cursor: context-menu;
}
.all-cards .fiber-card .fiber-title img {
    max-width: 35px;
    max-height: 35px;
    border-radius: 100%;
}
.global-tablink .nav-link:focus-visible {
    box-shadow: none;
}
.autocomplete-suggestions {
    border: transparent !important;
}
.form-grid-3 .each-col .each-grid {
    height: 50px;
}
footer .social-media li img:hover,
.top-header .global-link:hover img,
footer .detail:hover img {
    filter: brightness(0) saturate(100%) invert(60%) sepia(37%) saturate(4335%)
        hue-rotate(349deg) brightness(102%) contrast(102%);
}
#coverageResult {
    text-align: center;
}
#coverageResult p {
    margin-bottom: 0;
}
footer .footer-top {
    position: relative;
    z-index: 3;
}
footer .detail a {
    color: #fff;
}

.top-header .global-link,
.top-header .global-link img {
    transition: 0.5s ease-in-out;
}
.top-header .global-link:hover,
footer .detail a:hover {
    color: #ff7f15;
}

.fiber-card .btn.secondary-btn {
    margin-top: auto;
}
.fiber-card > div {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
}
.fiber-card .fiber-tag,
.fiber-card .fiber-title {
    width: 100%;
    height: fit-content;
}
.fiber-card ul {
    width: 100%;
}
.form-wrapper-main .form-wrapper .cust-checkout .form-control {
    margin-bottom: 0;
}
.mb-24 {
    margin-bottom: 24px;
}

.form-wrapper-main .form-wrapper .cust-checkout .sub-form {
    margin-top: 0;
    background-color: #f5f5f5;
}

.personal-detail-steps .card-right {
    position: sticky;
    top: 125px;
}
.form-wrapper-main .top-title {
    border: none;
    border-bottom: 1px solid #eee;
}
.progress-bar-steps::before,
.progress-active-line {
    top: 39px;
}
.form-step #loaderwrapper p {
    text-align: center;
}
.accordion-item.transparent-accordion .nav-tabs .nav-link {
    background-color: #fff4eb;
}
.transparent-accordion .nav-tabs {
    background-color: transparent;
}
.accordion-item.transparent-accordion .nav-tabs {
    margin: 0 0 40px;
}
.home-service-block.other-services .fiber-card {
    flex-direction: row !important;
}
.home-service-block.other-services .fiber-card > div {
    height: fit-content;
    width: 100%;
}
.personal-detail-steps .card {
    margin-bottom: 0;
}
.global-tablink .nav-link.active {
    color: #012c60;
}
footer .footer-bottom {
    position: relative;
    z-index: 2;
}
footer {
    border-radius: 20px 20px 0 0;
}
.coverage-section .input-icon {
    top: 10px;
}
.coverage-section .form-control {
    padding: 13px 17px 13px 54px;
}
/* End of Design Fixes */
/* Autocomplete loader - 13-11-2025 */
.autocomplete-loader {
    display: block; /* Hidden by default via d-none */
    position: absolute;
    top: 50%; /* Center vertically */
    right: 20px; /* Adjust position from the right */
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    /* Example: Use an animated SVG/GIF or a simple border spinner */
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db; /* Blue spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1010; /* Ensure it's above the input */
}

.form-control {
    padding-right: 40px !important;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}
.autocomplete-suggestions {
    position: absolute;
    z-index: 1000;
    top: 50px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}
.user-profile img {
    height: 43px;
}

.file-wrapper {
    position: relative;
    width: 100%;
}

.file-wrapper .file-input {
    box-sizing: border-box;
    width: 100%;
    padding-right: 98px !important;
}

.file-wrapper .remove-file-btn {
    position: absolute;
    right: 10px;
    top: 30%;
    transform: translateY(-50%);
    display: none;
    padding: 4px 10px;
    font-size: 13px;
    line-height: 1;
    border-radius: 4px;
    border: 1px solid #777;
    background: #fff;
    color: #333;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* optional hover */
.file-wrapper .remove-file-btn:hover {
    background: #f5f5f5;
}
#navbarSupportedContent,
.overlay-visible {
    transition: 0.3s ease-in-out;
}
.coverage-section .each-grid:nth-child(2) .input-icon {
    top: 11px;
}
html {
    scroll-behavior: smooth;
}
header.sticky .navbar {
    padding: 14px 0;
}
#additional-services-section {
    overflow: hidden;
}
@media (max-width: 991px) {
    .bg-dots-bottom::after,
    .bg-dots-bottom::before,
    .bg-dots-top::after,
    .bg-dots-top::before {
        max-height: 327px;
        max-width: 60%;
        height: 100%;
    }
    .card-right {
        margin-top: 20px;
    }
    #navbarSupportedContent {
        max-width: 400px;
    }
    .services {
        padding-top: 50px;
    }
}
@media (max-width: 767px) {
    footer .footer-top .left-side p {
        line-height: 25px;
    }
    footer .footer-top .contact-detail .detail {
        margin-bottom: 11px;
    }
    .services.other-services::after {
        max-width: 380px;
    }
    footer.bg-dots-bottom::after,
    footer.bg-dots-bottom::before {
        height: 275px;
    }
    .radio-card label h6 {
        line-height: 25px;
        margin-bottom: 0;
        font-size: 16px;
    }
    .purchase-form .sub-radios,
    #activationPaymentCreditCardForm {
        margin-left: 30px;
    }
    #navbarSupportedContent.show {
        left: 0;
    }
}
@media (max-width: 575px) {
    footer {
        padding: 50px 0 20px;
    }
    footer .footer-bottom {
        padding-top: 20px;
    }
    .user-profile img {
        height: 34px;
    }
    footer .footer-top .contact-detail .detail,
    footer .footer-top .left-side p,
    footer .footer-top .contact-detail .detail p {
        font-size: 14px;
        line-height: 18px;
    }
    .services.other-services .fiber-card {
        padding: 20px;
    }
    .services .btn.small-btn {
        font-size: 14px;
    }
    .services.other-services .fiber-card p {
        line-height: 24px;
    }
    .medem-choice-options .radio-card label > div:first-child,
    .purchase-form.left-side-form .group-title h6,
    .purchase-form .group-title h6 {
        margin-bottom: 0;
    }
    .radio-card {
        padding: 12px;
    }
    .radio-card label h6,
    .purchase-form .group-title h6 {
        font-size: 14px;
        line-height: 20px;
    }
    .card-right h5 {
        padding: 20px 0;
    }
    .card-right .right-card-body {
        padding: 0 0 10px;
    }

    .form-wrapper-main .form-wrapper .sub-form {
        padding: 20px 20px 10px;
    }
    .coverage-section .input-icon img {
        max-width: 22px;
        max-height: 22px;
    }
    .coverage-section .form-control {
        padding: 13px 17px 13px 45px;
    }
    .services.other-services .fiber-card .fiber-icon img {
        max-height: 60px;
        max-width: 60px;
    }
    .services {
        padding-top: 30px;
    }
}
