.dropdown-menu {
    max-width: 350px;
}


.dropdown-item.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.heading_calculator{
    display: flex;
    justify-content: center;
    margin: 80px auto 40px;
    text-align: center;
    font-size: 28px !important;
    font-weight: 700 !important;
}
.nav.nav-tabs{
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin: 0 auto;
    border: none;
    outline: none;
    width: 80%;
}
.nav.nav-tabs .nav-item{
    width: calc((100% / 3));
}
.nav.nav-tabs .nav-item .nav-link{
    border-radius: 0;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    font-size: 18px;
    width: 100%;
    padding: 15px 30px;
    box-sizing: border-box;
    color: black;
    transition: all 0.2s ease-out;
    background: transparent;
    text-align: center;
    /* color: #60697b; */
}
.nav.nav-tabs .nav-item .nav-link.active,
.nav.nav-tabs .nav-item:hover .nav-link{
    background: #747ed1;
    color: #ffffff;
}
.nav.nav-tabs .nav-item:nth-child(1) .nav-link{
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border: 1px solid #eee;
}
.nav.nav-tabs .nav-item:nth-child(2) .nav-link{
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.nav.nav-tabs .nav-item:nth-child(3) .nav-link{
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 1px solid #eee;
}


@media only screen and (max-width: 767.98px){
    .nav.nav-tabs{
        width: 90%;
    }
    .nav.nav-tabs .nav-item{
        width: 100%;
    }
    .nav.nav-tabs .nav-item:nth-child(1) .nav-link{
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0;
        border: 1px solid #eee;
    }
    .nav.nav-tabs .nav-item:nth-child(2) .nav-link{
        border-top: none;
        border-bottom: none;
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
    }
    .nav.nav-tabs .nav-item:nth-child(3) .nav-link{
        border-top-right-radius: 0;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        border: 1px solid #eee;
    }
}


/* HTML: <div class="loader"></div> */
.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid #514b82;
    animation:
      l20-1 0.8s infinite linear alternate,
      l20-2 1.6s infinite linear;
  }
@keyframes l20-1{
    0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
    12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
    25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
    50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
    100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
}
@keyframes l20-2{
0%    {transform:scaleY(1)  rotate(0deg)}
49.99%{transform:scaleY(1)  rotate(135deg)}
50%   {transform:scaleY(-1) rotate(0deg)}
100%  {transform:scaleY(-1) rotate(-135deg)}
}
@font-face {
    font-family: 'boxicons';
    src: url('../fonts/custom/custom.woff2') format('woff2');
}

@font-face {
    font-family: 'Unicons';
    src: url('../fonts/unicons/Unicons.woff2') format('woff2');
}
/* Mobile-Responsive Form Styles */
.main_wrap {
    padding: 10px;
}

.order_form {
    width: 100%;
    max-width: 100%;
}

.form_self {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fs_inner {
    max-width: 100% !important;
    width: 100%;
}

.form_line {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form_item {
    flex: 1;
    min-width: 100%;
}

.form_item input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px; /* Prevents zoom on iOS */
    background: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form_item input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form_item input::placeholder {
    color: #999;
    font-size: 14px;
}

/* Desktop styles - two columns when screen is wide enough */
@media (min-width: 768px) {
    .main_wrap {
        padding: 20px;
    }

    .form_item {
        min-width: calc(50% - 7.5px);
    }

    .fs_inner {
        max-width: 650px !important;
        margin: 0 auto;
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .form_item input {
        padding: 15px 18px;
        font-size: 16px;
    }
}

/* Bottom section styling */
.fs_bottom {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.info_text {
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.info_text p {
    margin: 0;
}

.info_text a {
    color: #007bff;
    text-decoration: none;
}

.info_text a:hover {
    text-decoration: underline;
}

/* Button styling */
.yelo_bttn {
    width: 100%;
    padding: 15px 20px;
    background: #ffc107;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.yelo_bttn:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

.yelo_bttn:active {
    transform: translateY(0);
}

/* Loading spinner */
.lds-ring {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 40px;
    margin: 10px auto;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 32px;
    height: 32px;
    margin: 4px;
    border: 4px solid #ffc107;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #ffc107 transparent transparent transparent;
}

.lds-ring div:nth-child(1) { animation-delay: -0.45s; }
.lds-ring div:nth-child(2) { animation-delay: -0.3s; }
.lds-ring div:nth-child(3) { animation-delay: -0.15s; }

@keyframes lds-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form validation error styling */
.form_error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form_item input.error {
    border-color: #dc3545;
}

/* Form title */
.form-title b {
    display: block;
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

@media (min-width: 768px) {
    .form-title b {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

/* Additional mobile improvements */
@media (max-width: 767px) {
    .form_self {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 15px;
    }

    .form-title b {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .info_text {
        font-size: 12px;
        text-align: center;
    }
}
