/* Custom CSS for Single Banner */
.banner-section-two {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.categories-single-image img {
    width: 116px;
    height: auto !important;
}

/* Ensure banner content is visible - override animation states */
.banner-content-box {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.banner-section .banner-content-box h1 {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.banner-section .banner-content-box h2 {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.banner-section .banner-content-box p {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.banner-content-box-inner h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.banner-content-box-inner h2 span {
    color: #007bff;
}

.banner-content-box-inner p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #666;
}

.cleaning-review {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: absolute;
    bottom: 20px;
    right: 20px;
    min-width: 200px;
}

.cleaning-review-two {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: absolute;
    top: 87%;
    right: -50px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.cleaning-review-content h5 {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.cleaning-review-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.cleaning-review-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.banner-content-box-inner h1 {
    display: block;
    font-size: 52px;
    line-height: 62px;
    color: var(--black-color);
    font-weight: 700;
    margin-bottom: 24px;
}

.banner-content-box-inner h1 span {
    color: var(--primary-color);
    position: relative;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
/* Mobile (Small): 0-575px */
/* Mobile (Large): 576px-767px */
/* Tablet: 768px-1023px */
/* Desktop: 1024px+ */

/* Small Desktop adjustments (1024px-1280px) */
@media (min-width: 1024px) and (max-width: 1350px) {
    .banner-section-two .banner-content-box-inner {
        min-height: 560px;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .banner-content-box-inner h2 {
        font-size: 36px;
        line-height: 1.2;
    }

    .banner-content-box-inner p {
        font-size: 16px;
        line-height: 1.5;
    }

    .cleaning-review-two {
        position: static;
        transform: none;
        margin-top: 20px;
        right: auto;
    }

    /* Reduce banner padding on tablets */
    .banner-section-two {
        padding: 60px 0 40px 0;
    }

    /* Ensure content is visible on tablets */
    .banner-content-box {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .search-bar-container {
        height: 160px;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .banner-content-box-inner h2 {
        font-size: 24px;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .banner-content-box-inner p {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    /* Significantly reduce banner padding on mobile */
    .banner-section-two {
        padding: 30px 0 20px 0;
    }

    .banner-search-wrapper {
        margin-top: 15px;
    }

    /* Reduce space between banner content and search form */
    .banner-content-box {
        margin-bottom: 20px;
        padding: 0 10px;
    }

    /* If there's a gap between rows, reduce it */
    .banner-section-two .row + .row {
        margin-top: 15px;
    }

    /* Ensure the banner right container doesn't add extra space */
    .banner-right-conteiner {
        margin-bottom: 20px;
    }

    /* Additional mobile-specific adjustments */
    .banner-two-right-image {
        text-align: center;
        margin-bottom: 15px;
    }

    .banner-two-right-image img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure text doesn't get cut off */
    .banner-content-box-inner {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
}

/* Extra small mobile adjustments */
@media (max-width: 575px) {
    /* Extra small devices - even more compact */
    .banner-section-two {
        padding: 20px 0 15px 0;
    }

    .banner-content-box-inner h2 {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 12px;
        word-wrap: break-word;
    }

    .banner-content-box-inner p {
        font-size: 13px;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .banner-search-wrapper {
        margin-top: 10px;
    }

    /* Make the search form more compact */
    .banner-two-search {
        padding: 15px;
    }

    .search-box-wrapper {
        gap: 10px;
    }

    /* Extra mobile padding adjustment */
    .banner-content-box {
        padding: 0 5px;
        margin-bottom: 15px;
    }

    /* Ensure container doesn't overflow */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Additional fixes for search form spacing */
.banner-search-wrapper .banner-two-search {
    margin-top: 0;
}

.banner-search-wrapper .customer-box {
    margin-top: 20px;
}

/* Fix for category labels on mobile/iOS */
.categories-list .checkbox-input {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.categories-list .checkbox-input label {
    flex: 1 1 auto !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.5 !important;
    max-width: calc(100% - 30px) !important;
    min-width: 0 !important;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

.categories-list .checkbox-input input[type="radio"] {
    flex-shrink: 0 !important;
    margin-top: 3px !important;
    width: 20px !important;
    height: 20px !important;
}

/* Additional mobile fixes for iOS Safari */
@media (max-width: 767px) {
    .categories-list .checkbox-input label {
        font-size: 14px !important;
    }

    .sidebar-box .card-body {
        overflow: visible !important;
    }

    .categories-list ul {
        overflow: visible !important;
        width: 100% !important;
    }

    .categories-list ul li {
        overflow: visible !important;
        width: 100% !important;
    }
}

/* Desktop and tablet search styling */
@media (min-width: 768px) {
    .search-bar-input.select-option {
        position: relative !important;
        min-width: 300px !important; /* Make category field wider */
    }

    .search-box-single {
        flex: 1;
        min-width: 250px;
    }

    .search-box-single.search-box {
        flex: 1.5; /* Give category field more space */
        min-width: 300px;
    }
}

/* Mobile - no extra width for category field */
.search-bar-input.select-option {
    position: relative !important;
}

/* Mobile search and category styling */
@media (max-width: 767px) {
    .search-box-single,
    .search-box-single.search-box {
        flex: 1;
        min-width: auto;
    }

    .banner-search-wrapper .customer-box {
        margin-top: 15px;
    }

    /* Mobile category display adjustments */
    .category-parent-display {
        font-size: 7px;
        margin-bottom: 0px;
        letter-spacing: 0.1px;
    }

    .category-sub-display {
        font-size: 11px;
    }

    .category-display-overlay {
        padding: 2px 6px;
        top: 15px;
        bottom: 3px;
        height: 44px;
        line-height: 1.5;
    }
}

/* Mobile Bootstrap row spacing fixes */
@media (max-width: 767px) {
    .banner-section-two .container > .row {
        margin-bottom: 15px;
    }

    .banner-section-two .container > .row:last-child {
        margin-bottom: 0;
    }
}

/* Postcode validation styling */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Toast customization */
.toast {
    max-width: 350px;
}

.toast-header {
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.text-bg-danger .toast-header {
    background-color: rgba(220, 53, 69, 0.1);
    border-bottom-color: rgba(220, 53, 69, 0.25);
}

.text-bg-success .toast-header {
    background-color: rgba(25, 135, 84, 0.1);
    border-bottom-color: rgba(25, 135, 84, 0.25);
}

/* Make the entire search box wrapper more flexible */
.search-box-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Category selection display overlay */
.category-display-overlay {
    position: absolute;
    top: 16px;
    left: 50px;
    right: 45px;
    bottom: 4px;
    background: transparent;
    pointer-events: none;
    z-index: 5;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 3px 8px;
    overflow: hidden;
}

.category-parent-display {
    font-size: 8px;
    color: #555;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
}

.category-sub-display {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide input placeholder when overlay is shown */
.category-selected::placeholder {
    opacity: 0 !important;
}

.category-selected {
    color: transparent !important;
}

/* Reset button styling */
.category-reset-btn {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
    transition: color 0.3s ease;
}

.category-reset-btn:hover {
    color: #dc3545;
}

.category-reset-btn i {
    font-size: 14px;
}

/* ========== QUOTE PAGE STYLING ========== */

/* Quote banner section - minimal height */
.quote-banner-section {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
}

.quote-banner-content {
    text-align: center;
    margin-bottom: 15px;
}

.quote-banner-content h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--black-color);
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.quote-banner-content p {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-color-1);
    opacity: 1 !important;
    transform: translateX(0) !important;
    margin-bottom: 0;
}

/* Quote search wrapper */
.quote-search-wrapper {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 0px;
}

.quote-search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0px;
}

.quote-search-box {
    flex: 1;
    min-width: 280px;
}

.quote-search-box .search-bar-input {
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.quote-search-box .search-bar-input label {
    position: absolute;
    top: 8px;
    left: 50px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
    z-index: 2;
}

.quote-search-box .search-bar-input input {
    width: 100%;
    height: 100%;
    padding: 20px 50px 8px 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: white;
}

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

.quote-search-box .search-bar-input .search-bar-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 2;
}

.quote-search-box-full {
    width: 100%;
}

.quote-service-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Quote page category dropdown styling */
.quote-search-box .search-bar-input.select-option .header-search-btn {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
    z-index: 5;
}

.quote-search-box .search-bar-input.select-option .category-reset-btn {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
    transition: color 0.3s ease;
}

.quote-search-box .search-bar-input.select-option .category-reset-btn:hover {
    color: #dc3545;
}

.quote-search-box .category-display-overlay {
    position: absolute;
    top: 22px;
    left: 50px;
    right: 75px;
    bottom: 8px;
    background: transparent;
    pointer-events: none;
    z-index: 5;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 2px 8px;
    overflow: hidden;
}

.quote-search-box .category-parent-display {
    font-size: 8px;
    color: #888;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
}

.quote-search-box .category-sub-display {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quote-service-select {
    width: 100%;
    padding: 20px 50px 8px 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #333;
    height: 60px;
}

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

.quote-search-box-full .search-bar-input {
    height: 60px;
    position: relative;
}

.quote-search-box-full .search-bar-input label {
    position: absolute;
    top: 8px;
    left: 15px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
    z-index: 2;
}

/* Quote form section */
.quote-form-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.quote-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Responsive adjustments for quote page */
@media (max-width: 767px) {
    .quote-banner-section {
        padding: 15px 0;
    }

    .quote-banner-content {
        margin-bottom: 10px;
    }

    .quote-banner-content h1 {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .quote-banner-content p {
        font-size: 12px;
    }

    .quote-search-wrapper {
        padding: 15px;
        margin: 0 -15px 15px -15px;
        border-radius: 0;
    }

    .quote-search-row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 0;
    }

    .quote-search-box {
        min-width: auto;
    }

    .quote-search-box .search-bar-input {
        height: 50px;
    }

    .quote-search-box .search-bar-input input {
        padding: 18px 40px 8px 40px;
        font-size: 13px;
    }

    .quote-search-box .search-bar-input label {
        left: 40px;
        font-size: 10px;
    }

    .quote-search-box .search-bar-input .search-bar-icon {
        left: 12px;
    }

    .quote-search-box .category-display-overlay {
        top: 18px;
        left: 40px;
        right: 65px;
    }

    .quote-search-box .category-parent-display {
        font-size: 7px;
    }

    .quote-search-box .category-sub-display {
        font-size: 11px;
    }

    .quote-service-select {
        height: 50px;
        padding: 18px 40px 8px 15px;
    }

    .quote-form-container {
        padding: 25px 15px;
        margin: 0 -15px;
        border-radius: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .quote-banner-section {
        padding: 18px 0;
    }

    .quote-banner-content h1 {
        font-size: 28px;
    }

    .quote-search-wrapper {
        padding: 20px;
    }

    .quote-search-box {
        min-width: 250px;
    }
}

/* Style h2 to look like h6 in common-title sections */
.common-title h2.h6-style {
    position: relative;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 38px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 1.44px;
    margin-bottom: 7px;
}

/* Style h2 to look like h3 in common-title sections */
.common-title h2.h3-style {
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
}
.rewards-left-container-inner .common-title h2.h3-style {
    color: #fff;
}

p.paragraph-heading{
    color: var(--white-color);
    font-size: 20px;
    font-weight: 600;
    line-height: 32px;
    margin: 0 auto;
    text-align: center;
}

div.service-tow-single-img img {
	height: auto;
}

/* Add right margin to search button in banner - only on larger screens */
@media only screen and (min-width: 1541px) {
    .search-bar-submit {
        margin-left: 10px;
    }

    .banner-search-wrapper .search-box-wrapper {
        padding-right: 15px;
    }
}

/* ========== GLOBAL MODAL Z-INDEX FIX ========== */
/* Fix modal z-index issues across the entire site */
.modal {
    z-index: 9999 !important;
}

.modal .modal-dialog {
    z-index: 10000 !important;
}

.modal + .modal-backdrop {
    z-index: 9998 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}

.modal-open .modal {
    z-index: 9999 !important;
}

/* ========== GLOBAL FORM INPUT TEXT VISIBILITY FIX ========== */
/* Ensure text is always visible in input fields and textareas */
.modal input[type="text"],
.modal input[type="email"],
.modal input[type="password"],
.modal input[type="number"],
.modal input[type="tel"],
.modal textarea,
.modal .form-control {
    color: #212529 !important;
    background-color: #fff !important;
}

.modal input::placeholder,
.modal textarea::placeholder,
.modal .form-control::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

/* ========== BUSINESS REVIEW FORM STYLING ========== */
/* Fix input text visibility and border colors in review forms */
#reviewForm input[type="text"],
#reviewForm input[type="email"],
#reviewForm textarea,
#reviewForm .form-control {
    color: #212529 !important;
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
}

#reviewForm input:focus,
#reviewForm textarea:focus,
#reviewForm .form-control:focus {
    color: #212529 !important;
    background-color: #fff !important;
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

#reviewForm input::placeholder,
#reviewForm textarea::placeholder,
#reviewForm .form-control::placeholder {
    color: #6c757d !important;
    opacity: 0.65 !important;
}

#reviewForm .form-label {
    color: #333 !important;
    font-weight: 500;
    margin-bottom: 8px;
}

/* ========== SERVICE DESCRIPTION & STATIC PAGE LIST STYLING ========== */
/* Add bullet points and proper styling for lists in service descriptions and static pages */
.service-description ul,
.static-page-content ul {
    list-style-type: disc !important;
    list-style: disc !important;
    padding-left: 30px !important;
    margin: 15px 0 !important;
}

.service-description ol,
.static-page-content ol {
    list-style-type: decimal !important;
    list-style: decimal !important;
    padding-left: 30px !important;
    margin: 15px 0 !important;
}

.service-description ul li,
.service-description ol li,
.static-page-content ul li,
.static-page-content ol li {
    display: list-item !important;
    list-style: inherit !important;
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
}

.service-description ul ul,
.static-page-content ul ul {
    list-style-type: circle !important;
    list-style: circle !important;
    margin: 8px 0 !important;
}

.service-description ul ul ul,
.static-page-content ul ul ul {
    list-style-type: square !important;
    list-style: square !important;
}

.service-description ol ol,
.static-page-content ol ol {
    list-style-type: lower-alpha !important;
    list-style: lower-alpha !important;
    margin: 8px 0 !important;
}

.service-description ol ol ol,
.static-page-content ol ol ol {
    list-style-type: lower-roman !important;
    list-style: lower-roman !important;
}

