/* ASP Custom Enhancements (Lucide Icons, Modal, Lightbox & Slider Smoothness) */

/* 1. Lucide Icons Alignment */
svg.lucide {
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

/* 2. Responsive Helpers */
@media (max-width: 760px) {
    .desktop-only {
        display: none !important;
    }
}

/* 3. Smooth Header Shadow on Scroll */
.header {
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

/* 4. Trailer Load Options Buttons */
.load-options > button {
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.load-options > button:hover:not(.selected) {
    background: #f0e9d6 !important;
    border-color: #baa474 !important;
    transform: translateY(-1px);
}
.load-options > button.selected {
    background: var(--gold, #e6be69) !important;
    border-color: #bfa04e !important;
    color: #123c2f !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(190, 150, 60, 0.25) !important;
}

/* 5. Smooth Trailer Fill Transition */
.trailer-fill {
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 6. Item Grid Selection */
.item-grid button {
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.item-grid button:hover:not(.selected) {
    background: #ecefe3;
    transform: translateY(-1px);
}
.item-grid button.selected {
    border-color: var(--gold, #e6be69) !important;
    background: #fdfaf3 !important;
    box-shadow: 0 4px 14px rgba(230, 190, 105, 0.25) !important;
}
.item-grid button.selected h3 {
    color: #123c2f;
}

/* 7. FAQ Accordion Animation */
.faq-grid summary svg {
    transition: transform 0.25s ease;
}
.faq-grid details[open] summary svg {
    transform: rotate(45deg);
}

/* 8. Text Action Buttons Hover Polish */
.text-action {
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.text-action:hover {
    color: #0c291f;
    border-color: #0c291f;
    transform: translateX(2px);
}

/* 9. Booking Modal Popup */
.asp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(12, 41, 31, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.asp-modal-dialog {
    position: relative;
    background: #faf7ef;
    border: 2px solid #e6be69;
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    padding: 30px 26px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    color: #1a352b;
    font-family: "DM Sans", Arial, sans-serif;
    animation: modalSlideIn 0.25s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.asp-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #657067;
    cursor: pointer;
    transition: color 0.2s;
}

.asp-modal-close:hover {
    color: #123c2f;
}

.asp-modal-badge {
    display: inline-block;
    background: #e6be69;
    color: #0c291f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.asp-modal-title {
    margin: 0 0 6px 0;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 25px;
    color: #123c2f;
}

.asp-modal-sub {
    margin: 0 0 18px 0;
    font-size: 13px;
    color: #657067;
    line-height: 1.4;
}

.asp-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asp-form-row {
    display: flex;
    gap: 10px;
}

.asp-form-row .asp-form-group {
    flex: 1;
}

.asp-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.asp-form-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #234f3e;
}

.asp-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #dcded1;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    color: #1a352b;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.asp-input:focus {
    border-color: #123c2f;
    box-shadow: 0 0 0 3px rgba(18, 60, 47, 0.12);
}

.asp-textarea {
    min-height: 65px;
    resize: vertical;
}

.asp-form-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

/* 10. Lightbox Overlay */
.asp-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: zoom-out;
    padding: 24px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.asp-lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid #e6be69;
}

.asp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}
.asp-lightbox-close:hover {
    transform: scale(1.15);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 11. Junk Removal Finale Celebration (When Trailer Departs) */
.haul-paper {
    position: relative;
}

.junk-finale {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 285px;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 8;
    text-align: center;
    padding-bottom: 22px;
    opacity: 0;
}

.is-cleared .junk-finale {
    display: flex;
    opacity: 0;
    animation: 0.6s ease-out 1.5s forwards finale-in;
}

.finale-content {
    position: relative;
    display: inline-block;
    padding: 12px 36px;
    user-select: none;
}

.finale-title {
    font-family: var(--serif, 'DM Serif Display', Georgia, serif);
    font-size: clamp(36px, 5.2vw, 52px);
    color: #244b39;
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 0;
    padding: 0 4px;
}

.finale-sub {
    font-family: Georgia, serif;
    font-style: normal;
    font-size: 15px;
    color: #728065;
    letter-spacing: 0.01em;
    margin: 8px 0 0 0;
}

.finale-star {
    position: absolute;
    pointer-events: none;
    stroke: #d5a52b;
}

.f-star-top {
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
}

.f-star-left {
    left: 4px;
    top: 18px;
}

.f-star-right-top {
    right: 6px;
    top: -14px;
}

.f-star-right-mid {
    right: -2px;
    top: 30px;
}

.f-star-bottom {
    bottom: -22px;
    left: 54%;
    transform: translateX(-50%);
}

/* 12. Request Dialog Stepper Modal Polish */
dialog.request-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    z-index: 10000;
}

dialog.request-dialog:not([open]) {
    display: none;
}

dialog.request-dialog[open] {
    display: block;
    animation: dialogPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogPopIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.dialog-close {
    cursor: pointer;
    transition: background-color 0.15s, transform 0.15s;
}

.dialog-close:hover {
    background: #d8decd;
    transform: scale(1.08);
}

.form-progress > span {
    cursor: pointer;
    transition: color 0.15s;
}

.form-progress > span:hover:not(.current) {
    color: var(--forest);
}

.select-items > button {
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}

.select-items > button:hover:not(.selected) {
    background: #f4f6ef;
    border-color: #aebca3;
}

.select-items > button svg {
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    color: #496c3e;
}

.select-items > button.selected svg {
    opacity: 1;
    transform: scale(1.1);
}

.timing-select > button {
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.timing-select > button:hover:not(.selected) {
    background: #f4f6ef;
}

.calendar-grid > button {
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.calendar-grid > button:hover:not(.selected):not(:disabled) {
    background: #e9edde;
    transform: translateY(-1px);
}

.back {
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}

.back:hover {
    color: var(--forest);
    transform: translateX(-3px);
}

/* 13. Submit Button Loading State */
.btn-submit-request.loading {
    opacity: 0.82;
    cursor: wait;
    pointer-events: none;
}

/* 14. Single Service Layout & Sidebar */
.service-single-hero {
    background: radial-gradient(at 100% 0, #285641, #103b2d 75%);
    color: #fff5df;
    padding: 50px 0 40px;
}
.service-single-hero h1 {
    font-size: clamp(36px, 4.8vw, 58px);
    margin: 10px 0 14px;
    color: #fffbee;
}
.service-single-hero p {
    color: #d7e4d2;
    max-width: 680px;
    font-size: 16px;
    line-height: 1.6;
}
.service-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 12px;
    color: #a4bfa8;
}
.service-breadcrumbs a {
    color: #dfcfab;
    text-decoration: none;
    transition: color 0.15s;
}
.service-breadcrumbs a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.service-breadcrumbs span.current {
    color: #fff;
    font-weight: 600;
}
.service-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 48px 0 70px;
}
@media (max-width: 900px) {
    .service-single-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 30px 0 50px;
    }
}
.service-single-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 28px;
    border: 1px solid #d5decb;
    box-shadow: 0 10px 30px rgba(18, 60, 47, 0.08);
}
.service-single-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink);
}
.service-single-content p {
    margin-bottom: 20px;
    color: #384d41;
}
.service-single-content h2, .service-single-content h3 {
    margin: 32px 0 14px;
    color: var(--forest);
}
.service-single-cta {
    margin-top: 40px;
    background: linear-gradient(135deg, #fbf7ee, #f3ebd4);
    border: 1px solid #e1d6b8;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 28px rgba(22, 62, 46, 0.06);
}
.service-single-cta h3 {
    font-size: 28px;
    color: var(--forest);
    margin-bottom: 10px;
}
.service-single-cta p {
    font-size: 14px;
    color: #5d6d5c;
    margin-bottom: 22px;
    max-width: 600px;
}
.service-sidebar-card {
    background: #fffdf6;
    border: 1px solid #e2ddce;
    border-radius: 22px;
    padding: 26px;
    margin-bottom: 24px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.03);
}
.service-sidebar-card h4 {
    font-size: 20px;
    font-family: var(--serif);
    color: var(--forest);
    margin: 0 0 16px;
}
.service-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.service-sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    background: #faf7ef;
    border: 1px solid #e5e0d2;
    color: var(--forest);
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.2s ease;
}
.service-sidebar-list a:hover {
    background: #f0ebd9;
    border-color: #d1c7ae;
    transform: translateX(2px);
}
.service-sidebar-list a.active {
    background: var(--forest);
    color: var(--cream);
    border-color: var(--forest);
}
.service-sidebar-list a svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.promise-checklist {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.promise-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #43594b;
    line-height: 1.45;
}
.promise-checklist li svg {
    color: #5c8449;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 15. Form Validation Feedback */
.input-error {
    border-color: #d63638 !important;
    background-color: #fff8f7 !important;
    box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.2) !important;
}
#itemsError, #contactError {
    color: #c92a2a;
    background: #fff5f5;
    border: 1px solid #ffc9c9;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 12px;
    font-weight: 500;
}

/* ==================================================
   16. COMPREHENSIVE RESPONSIVENESS POLISH
   Supports Mobile (< 768px), Tablet (768px - 1024px), Desktop (> 1024px)
================================================== */

/* Mobile Bottom Offset for Fixed Actions Bar */
@media (max-width: 760px) {
    body {
        padding-bottom: 74px !important;
    }
    
    .brand-logo {
        height: 54px !important;
        width: 54px !important;
    }
    
    .wrap {
        width: min(1280px, calc(100% - 28px)) !important;
    }
    
    /* Ensure pricing tables scroll horizontally on small devices */
    .pricing-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-inline: -8px;
        padding-inline: 8px;
    }
    
    /* Interactive Sliders Touch Optimization */
    .haul-range-shell input {
        touch-action: manipulation;
    }
    
    /* Gallery Filter Buttons Touch Spacing */
    .gallery-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin-bottom: 24px;
    }
    .gallery-filters .filter-btn {
        padding: 9px 16px;
        font-size: 13px;
        border-radius: 999px;
    }
    
    /* Modal Dialog Mobile Viewport Fit */
    dialog.request-dialog, .asp-modal-dialog {
        width: calc(100vw - 20px) !important;
        max-width: 500px !important;
        padding: 22px 18px !important;
        margin: auto !important;
        border-radius: 18px !important;
    }
    
    .asp-form-row {
        flex-direction: column !important;
        gap: 10px !important;
    }
}

/* Extra Small Devices (< 400px) */
@media (max-width: 400px) {
    .header .always-open-nav {
        gap: 0 6px !important;
        font-size: 11px !important;
    }
    
    .header .always-open-nav > a:not(.desktop-phone) {
        padding: 8px 1px !important;
    }
    
    .haul-contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .landscape-direct-contact {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .landscape-direct-contact .btn {
        max-width: none !important;
        width: 100% !important;
    }
}



