/* 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 */
}

@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 - 05-11-2025 */
header .navbar-brand:focus-visible {
    border: none;
    outline: none;
}
header .language-switcher {
    margin-left: 15px;
}
header .navbar-brand:focus-visible {
    border: none;
    outline: none;
}
html { scroll-behavior: smooth; }

.login header {
    position: fixed;
    width: 100vw;
    display: flex;
    left: 0;
    flex-wrap: wrap;
    margin: 0;
    z-index: 99999;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    -webkit-transition: all .4s ease;
    transition: all .4s ease;
    border-bottom: none;
}
.login .main-banner {
    margin: 20px;
}
footer .footer-top {
    position: relative;
    z-index: 3;
}
footer .detail a {
    color: #fff;
}
.top-header .global-link,
.top-header .global-link img {
    transition: .5s ease-in-out;
}
.top-header .global-link:hover,
footer .detail a:hover {
    color: #ff7f15;
}
.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 .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%);
}
.agent-card-row .btn.secondary-btn:hover {
    border: 2px solid #ff7f15;
}
.form-step .white-btn {
    color: #012c60;
}
.form-step .white-btn img {
    margin-right: 10px;
}
.form-step .white-btn:hover {
    background-color: #012c60;
    color: #fff;
}
.form-step .white-btn:hover img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(9%) saturate(58%) hue-rotate(101deg) brightness(115%) contrast(100%);
}
.form-step .secondary-btn:hover {
    border: 2px solid #ff7f15;
}
.agent-card-row .agent-card-detail .each-detail .left-card .cards-points:last-child {
    margin-bottom: 0;
}
.agent-card-row .agent-card-footer h6 {
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    color: #012C60;
}
.agent-card-row {
    margin-bottom: 70px;
}
/* #contracts-table {
    padding: 20px;
} */
.coverage-section .form-control {
    height: 50px;
}
.form-grid-3 .each-col .primary-btn {
    height: fit-content;
}
.coverage-services .global-title {
    display: flex;
    justify-content: space-between;
}
.coverage-services .global-title  button:hover img {
    filter: brightness(0) saturate(100%) invert(56%) sepia(70%) saturate(2345%) hue-rotate(349deg) brightness(101%) contrast(101%);
}
.coverage-services .global-title  button:hover {
    border: 2px solid #ff7f15;
}
.autocomplete-suggestions {
    border: 0;
}
.progress-bar-steps::before,
.progress-active-line {
    top: 40px;
}
.form-control.is-valid:focus {
    border-color: #d0d0d0;
}

.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 .form-wrapper .cust-checkout .form-control,
.form-wrapper-main .form-wrapper.cust-checkout .form-control {
    margin-bottom: 0;
}
#creditCardForm,
.mb-24 {
    margin-bottom: 24px;
}
.personal-card-mb-24 .card.mb-24 {
    margin-bottom: 24px !important;
}
.form-control.is-valid, .was-validated .form-control:valid {
    border-color: #ff7f15;
}
#loaderWrapper p,
#coverageResult p {
    text-align: center !important;
}
.sub-form .form-check label {
    color: #212529 !important;
}
.login-slider h1 {
    color: #fff;
}
.coverage-section .each-grid span {
    top: 13px;
}
.coverage-services .global-title h2 {
    margin-right: 20px;
    margin-bottom: 20px;
}
.coverage-services .global-title {
    flex-wrap: wrap;
}
.coverage-services .global-title {
    position: relative;
    z-index: 3;
}

.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;
}
/* LOADER DESIGN */
/* .geny-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #fff;
} */
.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,.8);
  z-index: 9999;

  /* hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}
.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;
} */
 .purchase-form .sub-radios {
    margin-left: 54px;
}
/* .global-table {
    margin: 0 30px 30px !important;
} */
 .coverage-section .input-icon {
    top: 10px;
}
.coverage-section .form-control {
    padding: 13px 17px 13px 54px;
}
footer {
    border-radius: 20px 20px 0 0;
}
footer .footer-bottom {
    position: relative;
    z-index: 2;
}
.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);
}
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
/* END OF LOADER DESIGN */
.user-profile img {
    height: 43px;
}
#navbarSupportedContent,
.overlay-visible {
    transition: .3s ease-in-out;
}
.login-card .form-control.is-valid, .login-card .was-validated .form-control:valid {
    background-image: unset ;
}
.coverage-section .each-grid:nth-child(2) .input-icon {
    top: 11px;
}
.toggle-password.hide {
    display: none;
}
.login .main-banner {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
}
.choose-file input {
    padding-right: 32px !important;
}
@media(max-width: 1400px) {
    .login .top-header {
        margin: auto;
        max-width: 80%;
    }
}
@media(max-width: 1200px) {
    .personal-detail-steps {
        padding: 70px 0
    }
}
@media(max-width: 991px) {
    .agent-main-page .dasboard-count,
    .agent-main-page .quick-actions {
        margin-bottom: 20px;
    }
    .login header {
        margin: 0;
    }
    .recent-contracts .top-title,
    .recent-contracts .search-box {
        width: 100%;
    }
    .recent-contracts .agent-card .top-title {
        margin-bottom: 20px;
    }
    .recent-contracts .agent-card {
        flex-wrap: wrap;
    }
    header {
        margin: 30px 12px 0;
        width: calc(100% - 24px);
    }
    .coverage-section .form-grid-3 .each-col:first-child {
        flex: auto;
        flex-wrap: nowrap;
    }
    .btn.square-icon-button {
        font-size: 20px;
    }
    .global-title h2 {
        font-size: 40px;
    }
    #navbarSupportedContent {
        max-width: 400px;
    }
}

@media(max-width: 768px) {
    .recent-contracts .search-box {
        min-width: 100%;
    }
    .bg-header .left-side p {
        font-size: 20px;
    }
}

@media(max-width: 575px) {
    header .navbar {
        padding: 20px 0 20px 0;
    }
    .agent-card {
        padding: 20px;
    }
    .card .top-title p {
        margin-top: 0;
    }
    .agent-card-row .agent-card-detail .each-detail .left-card,
    .agent-card-row .agent-card-detail .each-detail .right-card {
        width: 100%;
    }
    .agent-card-row .agent-card-detail .each-detail {
        flex-direction: column-reverse;
    }
    .agent-card-row .agent-card-detail .each-detail .right-card {
        margin-bottom: 30px;
    }
    .agent-card-row .agent-card-detail .each-detail .left-card .cards-points {
        width: 100%;
    }
    .agent-card-row .agent-card-detail .each-detail .right-card .calender {
        margin-right: auto;
        margin-left: 0;
    }
    .contact-mobile-visible .secondary-btn {
        margin-bottom: 10px;
    }
    .card .top-title p {
        font-size: 16px;
    }
    .card .top-title h5 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    .coverage-section .input-icon img {
        max-width: 22px;
        max-height: 22px;
    }
    .coverage-section .form-control {
        padding: 13px 17px 13px 45px;
    }
}

@media(max-width: 420px) {
    .agent-card-row .top-agent-card-title {
        padding: 20px 25px;
    }
    .agent-card-row .top-agent-card-title h4 {
        width: 100%;
        margin-bottom: 10px;
    }
    .agent-card-row .agent-card-footer .card-footer-right {
        margin-left: 0;
        margin-right: auto;
    }
    .agent-card-row .agent-card-footer h6 {
        margin-bottom: 10px;
    }
    .agent-card-row .agent-card-footer .card-footer-right .icon-btn,
    .agent-card-row .agent-card-footer .card-footer-right button {
        margin-left: 0;
        margin-right: 10px;
    }
    .contract-details .cust-detail .each-service>div {
        flex-wrap: wrap;
    }
    .contract-details .cust-detail .each-service>div img {
        margin-bottom: 10px;
    }
    .contract-details .cust-detail .each-service,
    .contract-details .cust-detail .each-service:last-child {
        margin-bottom: 20px;
    }
    .contract-details .each-service,
    .contract-details .cust-detail {
        padding: 20px;
    }
    .step-label {
        font-size: 12px;
        line-height: 14px;
    }
    .radio-card {
        padding: 15px;
    }
    .radio-card label h6 {
        font-size: 16px;
        line-height: 20px;
    }
    .radio-card .customer-option > div {
        padding-right: 10px;
    }
    .step-circle {
        width: 30px;
        height: 30px;
    }
    .progress-bar-steps::before, .progress-active-line {
        top: 33px;
    }
    .form-wrapper-main .form-wrapper .sub-form {
        padding: 20px 20px 5px;
    }
}

 /* Add this CSS to your existing <style> block or main stylesheet */
.autocomplete-loader {
    display: block; /* Hidden by default via d-none */
    position: absolute;
    top: 50% !important; /* Center vertically */
    right: 20px !important; /* 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 */
}

/* Ensure the input has enough padding to not hide the loader */
.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;
    /* Ensure it's above other elements */
    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;
}
/*START  Custom File Input with Remove Button */
.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;
}
/* Custom Progress Bar Styles */
.progress-bar-steps {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 5px 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 */
}