/********** Template CSS **********/
:root {
    --primary: #ff3e41;
    --secondary: #51cfed;
    --light: #f8f2f0;
    --dark: #060315;
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-weight: 600;
    transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #ffffff;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 30px;
    padding: 25px 0;
    color: #ffffff;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #eeeeee;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
    background-color: #ff6700 !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: 0.5s;
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        top: -6px;
        left: 50%;
        background: #ffffff;
        transition: 0.5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: 0.5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: 0.5s;
        opacity: 1;
    }
}

/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a99d;
    background: transparent;
    border: 1px solid #00a99d;
    border-radius: 45px;
    font-size: 22px;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(6, 3, 21, 0.5), rgba(6, 3, 21, 0.5)),
        url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + 0.75rem);
    }
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: calc(((100% - 1140px) / 2) + 0.75rem);
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: calc(((100% - 1320px) / 2) + 0.75rem);
    }
}

/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + 0.75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
    }
}

/*** Service, Price & Team ***/
.service-item,
.price-item,
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.07);
}

.service-item img,
.team-item img {
    transition: 0.5s;
}

.service-item:hover img,
.team-item:hover img {
    transform: scale(1.1);
}

.service-item a.btn-slide,
.price-item a.btn-slide,
.team-item div.btn-slide {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-size: 0;
}

.service-item a.btn-slide i,
.service-item a.btn-slide span,
.price-item a.btn-slide i,
.price-item a.btn-slide span,
.team-item div.btn-slide i,
.team-item div.btn-slide span {
    position: relative;
    height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 0 35px 35px 0;
    transition: 0.5s;
    z-index: 2;
}

.team-item div.btn-slide span a i {
    padding: 0 10px;
}

.team-item div.btn-slide span a:hover i {
    background: var(--secondary);
}

.service-item a.btn-slide span,
.price-item a.btn-slide span,
.team-item div.btn-slide span {
    padding-left: 0;
    left: -100%;
    z-index: 1;
}

.service-item:hover a.btn-slide i,
.price-item:hover a.btn-slide i,
.team-item:hover div.btn-slide i {
    border-radius: 0;
}

.service-item:hover a.btn-slide span,
.price-item:hover a.btn-slide span,
.team-item:hover div.btn-slide span {
    left: 0;
}

.service-item a.btn-slide:hover i,
.service-item a.btn-slide:hover span,
.price-item a.btn-slide:hover i,
.price-item a.btn-slide:hover span {
    background: var(--secondary);
}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item {
    position: relative;
    transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
    animation: pulse 1s ease-out 0.5s;
}

.testimonial-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    border-radius: 15px;
    transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}

/*** Contact ***/
@media (min-width: 992px) {
    .container.contact-page {
        max-width: 100% !important;
    }

    .contact-page .contact-form {
        padding-left: calc(((100% - 960px) / 2) + 0.75rem);
    }
}

@media (min-width: 1200px) {
    .contact-page .contact-form {
        padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
    }
}

@media (min-width: 1400px) {
    .contact-page .contact-form {
        padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
    }
}

/*** Footer ***/
.footer {
    background: linear-gradient(rgba(6, 3, 21, 0.5), rgba(6, 3, 21, 0.5)),
        url(../img/map.png) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #ffffff;
    border-radius: 35px;
    transition: 0.3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #ffffff;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: 0.3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
    color: var(--light);
}
.carousel-overlay {
    background: rgba(6, 3, 21, 0.55);
    z-index: 10;
}

.quote-form {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
}

.quote-form .form-control,
.quote-form .form-select {
    border-radius: 6px;
    padding: 10px;
}

.quote-form .btn-primary {
    border-radius: 6px;
    font-weight: 600;
}

/* make sure carousel arrows are visible above form */
.owl-nav {
    position: absolute;
    top: 45%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 30;
}

.owl-nav button {
    background-color: rgba(255, 255, 255, 0.8) !important;
    color: #000 !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px !important;
}

.owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
}

/* mobile view: form moves below carousel */
@media (max-width: 992px) {
    .floating-form {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        margin-top: 20px;
    }
}
/* .input-group-text img {
    height: 14px;
    width: auto;
} */
#countryCode {
    background-color: #f8f9fa;
    border-right: 0;
    font-weight: 500;
}

/* steps style */

/* body {
            background: #f7f9fc;
            font-family: "Poppins", sans-serif;
        } */

.step-container {
    max-width: 1200px;
    /* Flexible for larger screens, but centered */
    background: white;
    margin: 20px auto;
    /* Responsive margin */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
    /* Base padding; increases on larger screens */
}

@media (min-width: 768px) {
    .step-container {
        padding: 40px;
        margin: 50px auto;
    }
}

/* Illustration placeholder - Responsive positioning */
.illustration {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    /* Smaller on mobile */
    height: 200px;
    background: url("path/to/house-people-illustration.svg") no-repeat
        center/contain;
    opacity: 0.8;
    display: none;
    /* Hide on small screens to save space */
}

@media (min-width: 992px) {
    .illustration {
        display: block;
        width: 200px;
        height: 300px;
        right: 20px;
    }
}

/* Header - Responsive logo and text */
.header-section {
    text-align: center;
    margin-bottom: 20px;
}

.header-section img {
    max-height: 40px;
    /* Scales down on mobile */
    width: auto;
}

@media (min-width: 768px) {
    .header-section img {
        max-height: 50px;
    }
}

/* Steps indicator - Horizontal on desktop, vertical on mobile */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    overflow-x: auto;
    /* Scroll if needed on very small screens */
}

@media (max-width: 576px) {
    .steps-indicator {
        flex-direction: column;
        gap: 10px;
    }

    .steps-indicator .step:not(:last-child)::after {
        display: none;
        /* No connectors in vertical mode */
    }
}

.steps-indicator .step {
    flex: 1;
    text-align: center;
    position: relative;
    color: #6c757d;
    min-width: 120px;
    /* Prevent squishing */
    padding: 5px 10px;
}

@media (max-width: 576px) {
    .steps-indicator .step {
        min-width: auto;
        text-align: left;
    }
}

.steps-indicator .step.active {
    color: #0d6efd;
    font-weight: 600;
}

.steps-indicator .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

@media (min-width: 577px) {
    .steps-indicator .step.active:not(:last-child)::after {
        background: #0d6efd;
    }
}

.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step 1: Addresses - Side-by-side on MD+, stacked on smaller */
.address-panel {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    /* Responsive padding */
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .address-panel {
        padding: 20px;
        margin-bottom: 20px;
    }
}

.service-checkboxes {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column on mobile */
    gap: 10px;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .service-checkboxes {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

.service-checkboxes label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 0.875em;
    /* Smaller on mobile */
}

@media (min-width: 768px) {
    .service-checkboxes label {
        font-size: 1em;
    }
}

.service-checkboxes input:checked + label {
    background: #e3f2fd;
    border-color: #0d6efd;
}

/* Step 2: Tri-Panel - Columns on LG+, stacked on smaller */
.panel-container {
    display: flex;
    flex-direction: column;
    /* Stack on mobile */
    height: auto;
    min-height: 400px;
}

@media (min-width: 992px) {
    .panel-container {
        flex-direction: row;
        height: 500px;
    }
}

.panel-left,
.panel-middle,
.panel-right {
    flex: 1;
    padding: 0 10px;
    overflow-y: auto;
}

@media (min-width: 992px) {
    .panel-left {
        flex: 0 0 25%;
        padding-right: 15px;
    }

    .panel-middle {
        flex: 0 0 50%;
        padding: 0 15px;
    }

    .panel-right {
        flex: 0 0 25%;
        padding-left: 15px;
    }
}

.category-item {
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.category-item.active {
    background-color: #e3f2fd;
    border-color: #0d6efd;
    border-left: 4px solid #0d6efd;
}

@media (max-width: 991px) {
    .category-item i {
        font-size: 1.1em;
    }

    /* Larger icons on touch devices */
}

.subcategory-item {
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 0.875em;
}

.subcategory-item:hover {
    background-color: #f8f9fa;
}

.selected-item {
    position: relative;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 0.875em;
}

.quantity-input {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 80px;
    /* Ensure touch-friendly */
}

.quantity-input button {
    width: 25px;
    height: 25px;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: white;
    font-size: 12px;
    flex-shrink: 0;
}

.remove-item {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2em;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
}

/* Buttons - Consistent, touch-friendly */
.btn-next,
.btn-skip,
.btn-submit,
.btn-prev {
    border-radius: 25px;
    padding: 10px 20px;
    /* Base; scales up */
    font-weight: 600;
    min-width: 80px;
    /* Prevent shrinking */
    font-size: 0.9em;
}

@media (min-width: 768px) {
    .btn-next,
    .btn-skip,
    .btn-submit,
    .btn-prev {
        padding: 12px 30px;
        font-size: 1em;
    }
}

.btn-next,
.btn-submit {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-skip {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-prev {
    border: 1px solid #dee2e6;
    color: #6c757d;
}

.btn-group-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 20px;
}

@media (max-width: 576px) {
    .btn-group-responsive {
        flex-direction: column;
    }

    .btn-group-responsive .btn {
        flex: 1;
        text-align: center;
    }
}

/* Step 3: Info - Row on MD+, stacked otherwise */
.info-row .col-md-6 {
    margin-bottom: 15px;
}

/* Privacy note */
.privacy-note {
    font-size: 0.875em;
    color: #6c757d;
    margin-top: 15px;
    text-align: center;
}

/* Form controls - Responsive sizing */
.form-control,
.form-select {
    font-size: 0.9em;
    padding: 8px 12px;
    /* Compact on mobile */
}

@media (min-width: 768px) {
    .form-control,
    .form-select {
        font-size: 1em;
        padding: 10px 15px;
    }
}

/* Loading state for middle panel */
.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}
