
.ui-datepicker,
#start-date-display, #end-date-display,
.date-label,
.artwork-label-text,
.artwork-price,
.ui-datepicker-calendar {
    font-family: 'montserrat', sans-serif;
}

.ui-datepicker-inline.ui-datepicker.ui-widget.ui-widget-content.ui-helper-clearfix.ui-corner-all {
    display: flex;
    flex-direction: column;
}

form#coder-booking-form {
    background: #000214;
    padding: 24px;
}

/* Quantity Info Tooltip */

.qty-info-container {
    display: flex;
}

  /* Mode Selection Tabs Styles */
.mode-selection-tabs h3 {
            color: #fff;
            font-size: 18px;
            font-weight: 600;
            margin: 0 0 20px 0;
            text-align: center;
        }
        
        .mode-tabs {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 12px;
        }
        
        .mode-tab {
            flex: 1;
            max-width: 200px;
            cursor: pointer;
        }
        
        .mode-tab input[type="radio"] {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }
        
        .tab-content#booking {
            border: solid 2px #e1001b;
            background: #e1001b;
        }

         .tab-content#quote {
            border: solid 2px #FFFFFF1A;
            background: #FFFFFF1A;
        }

        .tab-content {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            border-radius: 99px;
            transition: all 0.3s ease;
            justify-content: center;
        }
        
        .mode-tab:hover .tab-content#booking{
            border-color: #e1001acb;
            background: #e1001acb;
        }

        .mode-tab:hover .tab-content#quote{
            border-color: #cec2c278;
            background: #cec2c278;
        }
        
        .mode-tab:has(input:checked) .tab-content#booking {
            border-color: #fff;
        }

        .mode-tab:has(input:checked) .tab-content#quote {
            border-color: #fff;
        }
        
        .tab-content .info-icon {
            margin-left: 0px;
        }
        
        .tab-title {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
        }
        
        .tab-desc {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
        }
        
        /* Booking calendar disabled state */
        .booking-calendar-container.disabled {
            pointer-events: none;
            opacity: 0.4;
            filter: grayscale(50%);
        }
        
        .booking-calendar-container.enabled {
            pointer-events: auto;
            opacity: 1;
            filter: none;
        }
        
        @media (max-width: 600px) {
            .mode-tabs {
                flex-direction: column;
                align-items: center;
            }
            
            .mode-tab {
                max-width: 100%;
                width: 100%;
            }
        }


/* Units Remaining Counter */
.units-remaining-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0 15px 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.units-remaining-counter.high {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
}

.units-remaining-counter.medium {
    background: #fff3e0;
    border: 2px solid #ff9800;
    color: #e65100;
}

.units-remaining-counter.low {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
}

.units-remaining-counter.limit-reached {
    background: #ffebee;
    border: 2px solid #d32f2f;
    color: #b71c1c;
    font-weight: 700;
}

.counter-icon {
    font-size: 20px;
}

.counter-text strong {
    font-size: 18px;
    font-weight: 700;
}

.counter-limit {
    color: #666;
    font-size: 12px;
}

/* Disabled quantity button */
.qty-inc.disabled,
.qty-dec.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Limit message */
.limit-message {
    margin-top: 10px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    font-size: 13px;
    color: #856404;
}

.limit-message a {
    color: #e1001b;
    text-decoration: underline;
    font-weight: 600;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 0 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-item:not(:last-child) .step-line {
    position: absolute;
    top: 5px;
    left: 20%;
    width: 160%;
    height: 6px;
    background: #000738;
    z-index: 0;
    border-radius: 99px;
}

.step-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #e1001b;
    opacity: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-item.active .step-circle, .step-item.completed .step-circle {
    background: #e1001b;
    opacity: 1;
}

.step-label {
    margin-top: 10px;
    text-align: center;
    opacity: 0.4;
}

.step-item.active .step-label, .step-item.completed .step-label {
    opacity: 1;
}

.step-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 0px;
}

.step-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.14px;
    color: #fff;
}

.step-item.active .step-description {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .step-indicator {
        padding: 0 ;
    }

    .form-grid.step-1-fields {
    padding: 0 !important;
}

    .summary-qty {
    align-items: center !important;
}
}

#coder-booking-form h3 {
    text-align: center;
    color: #fff;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    margin: 0;
    flex-grow: 1;
}

.help-link {
    width: 25%;
    visibility: hidden;
}

#coder-booking-form path {
    stroke: #fff !important;
}

.coder-pixel-booking-container {
    margin: 0 auto;

}

button.next-button {
    width: 100%;
    background: #e1001b;
    color: #fff;
}

button.next-button:hover, button.next-button:focus {
    background: #c1001b;
}

button.back-button {
    border: solid 2px #fff !important;
    color: #fff;
}

button.back-button:hover, button.back-button:focus {
    background: none;
}

.calendar-header h2 {
    font-size: 28px;
    margin-bottom: 5px;
    text-align: center;
    font-weight: bold;
}

.calendar-header p {
    text-align: center;
    margin: 5px 0;
    font-weight: bold;
    font-size: 16px;
}

.calendar-header .sub-text {
    font-size: 12px;
    color: #666;
    margin-top: 0;
    font-weight: normal;
}

#coder-booking-form .form-group.checkbox {
    display: flex;
    margin: 30px 0 20px;
    font-size: 14px;
    flex-direction: row;
    justify-content: center;
}

#coder-booking-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Custom artwork help checkbox styling */
.artwork-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-weight: bold !important;
    position: relative;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.custom-checkbox input {
    opacity: 0;
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: white;
    border: 1px solid #000;
    border-radius: 2px;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #fff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.artwork-label-text {
    font-weight: bold;
}

.artwork-price {
    font-weight: normal;
    color: #666;
    margin-left: 5px;
}

.info-icon {
    margin-left: 8px;
    cursor: help;
    display: flex;
    align-items: center;
}

.info-icon img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}
button.submit-button {
    border-radius: 0px !important;
    padding: 12px 0px !important;
}

/* Step 1 Actions - Quote and Book buttons */
.step-1-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.step-1-actions .quote-button,
.step-1-actions .book-button {
    flex: 1;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    transition: all 0.2s;
}

.step-1-actions .quote-button {
    background: #1a1c38;
    color: #fff;
}

.step-1-actions .quote-button:hover {
    background: #0f1020;
}

.step-1-actions .book-button {
    background: #e1001b;
    color: #fff;
}

.step-1-actions .book-button:hover {
    background: #c00016;
}

/* Book button wrapper with info icon */
.book-button-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-button-wrapper .book-button {
    flex: 1;
}

/* Info icon and tooltip */
.info-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.info-icon {
    color: #fff;
    transition: color 0.2s;
}

.info-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 0;
    border-radius: 8px;
    padding: 16px;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-family: 'Montserrat';
    font-weight: 500;
}

.info-tooltip a {
    text-decoration: underline !important;
    color:#e1001b;
    font-weight: 700;
}

/* Unit Limit Exceeded Popup Styling */
#unit-limit-exceeded-popup .popup-header svg circle {
    fill: #ff9800;
}

#unit-limit-exceeded-popup .limit-message-content {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

#unit-limit-exceeded-popup .limit-message-content p {
    margin: 10px 0;
    color: #333;
    line-height: 1.6;
}

#unit-limit-exceeded-popup .limit-message-content strong {
    color: #e65100;
    font-size: 16px;
}

#unit-limit-exceeded-popup .limit-message-content span {
    font-weight: 600;
    color: #e65100;
}

#unit-limit-exceeded-popup .contact-info-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#unit-limit-exceeded-popup .contact-info-box h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

#unit-limit-exceeded-popup .contact-info-box > p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

#unit-limit-exceeded-popup .contact-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

#unit-limit-exceeded-popup .contact-methods li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

#unit-limit-exceeded-popup .contact-methods li:last-child {
    border-bottom: none;
}

#unit-limit-exceeded-popup .contact-methods svg {
    flex-shrink: 0;
    color: #e1001b;
}

#unit-limit-exceeded-popup .contact-methods span {
    color: #333;
    font-size: 14px;
}

#unit-limit-exceeded-popup .contact-methods a {
    color: #e1001b;
    text-decoration: none;
    font-weight: 600;
}

#unit-limit-exceeded-popup .contact-methods a:hover {
    text-decoration: underline;
}

.info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 10px;
    border: 8px solid transparent;
    border-top-color: #000c5e;
}

.info-tooltip strong {
    color: #000c5e;
    display: block;
    margin-bottom: 5px;
}

.info-icon-wrapper:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Hide/show buttons based on booking mode */
.quote-mode-only {
    display: block;
}

.book-mode-only {
    display: none;
}

div#postcode-error a {
    color: #e1001b;
    text-decoration: underline;
}

#coder-booking-form .checkbox label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
}

#coder-booking-form input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Date picker styles */
.date-selection-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 15px;
}

.form-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.booking-duration {
    background-color: #f8f8f8;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 3px solid #0073aa;
}

/* .step-2 .form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
} */

.duration-display {
    font-weight: 600;
    color: #0073aa;
}
/* Apply Montserrat to booking elements */
.ui-datepicker,
#start-date-display, #end-date-display,
.date-label,
.artwork-label-text,
.artwork-price,
.ui-datepicker-calendar {
    font-family: 'montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}


/* Calendar styling */
.booking-calendar-container {
    text-align: center;
    background-color: #000214;
    max-width: 100%;
    border: none;
    padding: 0 80px;
}

@media (max-width:1366px){
    .booking-calendar-container, .step-1-fields {
        padding: 0 20px !important;
    }

    .hire-disclaimer {
        margin: 20px !important;
    }
}

.calendar-tabs {
    display: none;
}

.calendar-header {
    text-align: center;
    margin-bottom: 30px;
}

.calendar-header h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px;
    text-transform: uppercase;
}

.calendar-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
    text-transform: uppercase;
}

/* Selection mode indicator */
.selection-mode-indicator {
    display: none; /* Hide this as it's not in the screenshot */
}

/* Calendar removed tabs styles */

/* Override jQuery UI Calendar styles */
.ui-datepicker {
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    background-color: white !important;
}

.ui-datepicker-multi .ui-datepicker-group {
    width: 100% !important;
    margin: 0 !important;
}

.ui-datepicker-header {
    border: none !important;
    background: transparent !important;
    padding-top: 0 !important;
}

.ui-datepicker-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 130%; /* 20.8px */
    text-transform: uppercase;
}

.ui-datepicker-calendar thead th {
    font-size: 16px !important;
    padding: 10px 0 !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    border: solid 4px #000214;
    background: #000738;
}

.ui-datepicker-calendar td {
    padding: 1px !important;
    text-align: center !important;
    border: 4px solid #000214 !important;
}

.ui-datepicker-calendar td a {
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    display: block !important;
    font-size: 13px !important;
}

.ui-datepicker-multi .ui-datepicker-group-first {
    padding-right: 10px;
}

.ui-datepicker-multi .ui-datepicker-group-last {
    padding-left: 10px;
}

.ui-datepicker-header {
    border: none !important;
    background: #000214 !important;
    font-weight: bold;
}

.ui-datepicker-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

table.ui-datepicker-calendar thead {
    width: 48px;
    height: 48px;
}

.ui-datepicker-calendar th {
    color: #717171 !important;
    font-weight: normal !important;
    font-size: 12px !important;
}

.ui-datepicker-calendar td {
    padding: 0px !important;
}

.ui-datepicker-calendar table {
    background-color: #000214;
}

.ui-datepicker-calendar td a {
    text-align: center !important;
    border: none !important;
    background: none !important;
    color: #fff !important;
    font-size: 16px !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 0% !important;
    padding: 0 !important;
    font-weight: 600 !important;
}

table thead:first-child tr:first-child th {
    border-block-start: solid 4px #000214 !important;
}


/* Date states */
.ui-datepicker-calendar td a.ui-state-active,
.ui-datepicker-calendar td.start-date-selected a,
.ui-datepicker-calendar td.end-date-selected a,
.ui-datepicker-calendar td a.ui-state-active.ui-state-highlight {
    background-color: #000 !important;
    color: #fff !important;
    font-weight: bold !important;
    border-radius: 0 !important;
}

.ui-datepicker-calendar td.ui-datepicker-current-day a {
    background-color: #000 !important;
    color: #fff !important;
}

.ui-datepicker-calendar td a.ui-state-hover:not(.ui-state-active):not(.ui-state-highlight) {
    background-color: #eaeaea !important;
}

.ui-datepicker-calendar td.in-range a {
    color: #fff !important;
    background: rgba(225, 0, 27, 0.50) !important;
}

/* Disabled dates within selected range should still show highlighted background */
.in-range span.ui-state-default {
    color:#ffffff1a !important;
    background: rgba(225, 0, 27, 0.50) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

/* Disabled dates */
.ui-datepicker-calendar .ui-state-disabled {
    opacity: 1 !important;
}

.ui-datepicker-calendar td.not-monday a {
    color: #aaa !important;
    cursor: not-allowed !important;
}
button.submit-button {
    border-radius: 0px;
}
.ui-datepicker-calendar td.too-late-to-book a {
    color: #ddd !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

/* Selected date input styles */
.summary-blocks {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.summary-block {
    flex: 1;
    text-align: center;
    margin: 0 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header section of summary block */
.summary-block h4 {
    margin: 0;
    padding: 10px;
    background-color: #000;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

/* Value section of summary block */
.summary-block p {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    padding: 15px 10px;
    background-color: #f3f4f7;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Notes below value */
.rate-note,
.total-note {
    display: block;
    font-size: 12px;
    font-weight: normal;
    margin-top: 5px;
    color: #666;
}

.date-display-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.date-display {
    text-align: left;
    flex: 1;
}

.date-display label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.date-display-value {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.ui-datepicker-calendar td.ui-datepicker-unselectable span {
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    display: block !important;
    text-align: center !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer !important;
    top: 12px !important;
    width: 32px !important;
    height: 32px !important;
    background: transparent !important;
    border: none !important;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    background-image: none !important;
    overflow: visible !important;
    text-indent: 0 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    position: relative !important;
}

.ui-datepicker-prev span:before {
    content: '←';
    font-size: 20px;
}

.ui-datepicker-next span:before {
    content: '→';
    font-size: 20px;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    display: block;
    margin: 0 auto;
}

/* Date inputs styling */
#start-date, #end-date {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    cursor: pointer;
    background: #fff;
}

#start-date:focus, #end-date:focus {
    outline: none;
    border-color: #222;
}

/* Removed flexible date selection button styles */

.duration-note {
    font-size: 0.9em;
    color: #666;
    margin-left: 5px;
}

.date-picker-group {
    flex: 1;
    min-width: 200px;
}

.date-picker-wrapper {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
}

.date-picker-wrapper:hover {
    border-color: #0073aa;
}

/* Date display formatting */
.date-selection-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 30px auto;
    width: 100%;
    max-width: 300px;
}

.date-display {
    flex: 1;
    margin: 0 12px;
    text-align: left;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    color: #fff;
}

/* Vertical divider between Start and End */
.date-selection-wrapper .date-display:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 12px;
    height: 28px;
}

.date-label {
    font-weight: 600;
    text-transform: uppercase;
}

#start-date-display,
#end-date-display {
    font-size: 20px;
    font-weight: 700;
}

/* Style the jQuery datepicker */
.ui-datepicker {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    box-shadow: none;
    padding: 15px;
    width: auto;
    font-family: inherit;
    font-size: 14px;
}

.ui-datepicker .ui-datepicker-header {
    padding: 0 0 10px 0;
    position: relative;
    margin-bottom: 0px;
    background: #000214;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    cursor: pointer;
    height: 30px;
    position: absolute;
    top: 5px;
    width: 30px;
    border: none;
    background: none;
}

.ui-datepicker .ui-datepicker-prev {
    left: 10px;
}

.ui-datepicker .ui-datepicker-next {
    right: 10px;
}

.ui-datepicker .ui-datepicker-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 30px;
    margin: 0 40px;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Montserrat';
    padding-top: 8px;
}

.ui-datepicker .ui-datepicker-calendar {
    border-collapse: collapse;
    margin: 0;
    width: 100%;
}

.ui-datepicker .ui-datepicker-calendar th {
    color: #666;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 0;
    text-align: center;
    text-transform: uppercase;
}

.ui-datepicker .ui-datepicker-calendar td {
    border: 0;
    padding: 0;
    text-align: center;
    width: 48px !important;
    height: 48px !important;
    box-sizing: border-box;
}

.ui-datepicker .ui-datepicker-calendar td {
    background-color: #000322;
}

.ui-datepicker .ui-datepicker-calendar td a,
.ui-datepicker .ui-datepicker-calendar td span {
    color: rgba(0, 0, 0, 0.6); /* More faded black */
    display: block;
    font-size: 14px;
    line-height: 48px;
    padding: 0;
    text-align: center;
    text-decoration: none;
    border-radius: 0;
    background: transparent;
    font-weight: normal;
}

.ui-datepicker .ui-datepicker-calendar .ui-state-default {
    background: transparent;
    border: none;
    height: 48px !important;
    line-height: 48px !important;
    margin: 0;
    position: relative;
    width: 100% !important;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.6); /* More faded black */
}

.ui-datepicker .ui-datepicker-calendar .ui-state-hover {
    background: #f7f7f7;
    border-color: #e1e1e1;
}

.ui-datepicker .ui-datepicker-calendar .ui-state-active,
.ui-datepicker .ui-datepicker-calendar .ui-state-active.ui-state-hover {
    background: #000;
    border-color: #000;
    color: #fff;
    font-weight: 500;
}

/* Range highlighting - all dates between start and end */
.ui-datepicker .ui-datepicker-calendar .in-range {
    background: #f7f7f7;
}

/* Make sure ALL dates in range are highlighted */
.ui-datepicker .ui-datepicker-calendar td.in-range {
    background: #000322 !important;
    color: #fff !important;
}

/* Ensure all days in range are visible, including other month dates */
.ui-datepicker .ui-datepicker-other-month.in-range {
    opacity: 1;
}

/* Make sure other month dates are visible but slightly faded */
.ui-datepicker .ui-datepicker-other-month .ui-state-default {
    opacity: 0.4;
    visibility: visible !important;
    display: block !important;
}

/* Start date */
.ui-datepicker .ui-datepicker-calendar .selected-start-date a, .ui-datepicker .ui-datepicker-calendar .ui-datepicker-current-day a {
    background: #e1001b !important;
    color: #fff !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 48px !important;
    box-sizing: border-box;
}

.ui-datepicker .ui-datepicker-calendar .ui-state-disabled,
.ui-datepicker .ui-datepicker-calendar .ui-datepicker-unselectable .ui-state-default {
    opacity: 0.4;
    cursor: default;
}

/* Style for dates that don't meet minimum duration */
.ui-datepicker .ui-datepicker-calendar .invalid-duration .ui-state-default {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
}

/* Show a tooltip on hover for invalid duration dates */
.ui-datepicker .ui-datepicker-calendar .invalid-duration .ui-state-default:hover::after {
    content: "Minimum 4 weeks";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}

/* End date */
.ui-datepicker .ui-datepicker-calendar .selected-end-date a {
    background: #e1001b !important;
    color: #fff !important;
    height: 100% !important;
    width: 100% !important;
}

/* Range between start and end dates */
.ui-datepicker .ui-datepicker-calendar .in-range:not(.selected-start-date):not(.selected-end-date) {
    color: rgba(0,0,0,0.6);
    border-color: #f0f0f0;
    
    background-color:#F3F4F7;
}

/* Hover state for selectable dates */
.ui-datepicker .ui-datepicker-calendar .ui-state-default:not(.ui-state-disabled):hover {
    background: #e1001b !important;
    border-color: #e0e0e0;
    color: #fff !important;

}

.ui-datepicker .ui-datepicker-calendar .ui-state-disabled, .ui-datepicker .ui-datepicker-calendar .ui-state-disabled .ui-state-default {
    color: #ffffff1a;
    cursor: default;
    opacity: 1;
    font-size: 16px;
    font-weight: 600;
}

/* Navigation arrows */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    cursor: pointer;
    position: absolute;
    top: 0;
    width: 30px;
    height: 30px;
}

/* Custom SVG chevron styling */
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 12px;
    margin-left: -4px;
    margin-top: -6px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ui-datepicker .ui-datepicker-prev span {
    background-image: url('../images/prev-chevron.svg');
}

.ui-datepicker .ui-datepicker-next span {
    background-image: url('../images/next-chevron.svg');
}

/* Hide the text for Next/Previous */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    font-size: 0;
    color: transparent;
}

/* Make the calendar wider to show two months */
.ui-datepicker.ui-datepicker-multi {
    width: auto;
    display: flex;
}

/* Remove row break to allow proper centering */
.ui-datepicker-row-break {
    display: none !important;
    clear: none !important;
}

.ui-datepicker-multi .ui-datepicker-group {
    width: 300px;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Clearfix for multi-month calendar */
.ui-datepicker-multi:after {
    content: "";
    display: table;
    clear: both;
}
input#artwork-help {
    margin-right: 5px;
}
/* Booking summary in blocks style */
.booking-summary {
    margin: 25px 0;
}

.summary-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0;
    margin: 15px 0;
}

.summary-block {
    background: #f9f9f9;
    text-align: center;
    border: none;
}



.summary-block h3 {
    background-color: #000;
    text-transform: uppercase;
    font-weight: bold;
    margin:0px;
    color: #fff;
    font-size: 32px !important;
    padding:8px 0px;
}

.summary-block h2 {
    margin: 0;
    color: #000 !important;
    font-size: 54px !important;
    display: flex;
    column-gap:8px;
    align-items: flex-end;
    justify-content: center;
    font-family: 'Host Grotesk' !important;
    padding: 32px 24px;
}

.rate-note, .total-note {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    display: block;
    text-align: left;
    line-height: 12px;
    margin-top: 3px;
}

.booking-summary h3 {
    color: #000 !important;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.pricing-summary {
    width: 100%;
    border-collapse: collapse;
}

.pricing-summary tr td {
    padding: 8px 0;
}

.pricing-summary tr td:first-child {
    font-weight: 500;
}

.pricing-summary tr td:last-child {
    text-align: right;
}

.pricing-summary tr.subtotal {
    border-top: 1px solid #ddd;
    font-weight: 500;
}

.pricing-summary tr.total {
    font-weight: 700;
    font-size: 1.1em;
    border-top: 1px solid #ddd;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.form-grid label {
    color: #fff;
    font-family: 'Montserrat';
    font-size: 16px;
    font-weight: 600 !important;
    text-transform: uppercase;
}

.form-grid input[type=email],.form-grid input[type=text],.form-grid input[type=tel],.form-grid textarea {
    border: 2px solid #000738;
    background: #000738;
    color: #fff;
    font-family: 'Montserrat';
    font-size: 16px;
    font-weight: 600 !important;
}

.step-1-fields .form-grid input {
    height: 40px;
}

select#variation-selector,
select#occasion-selector {
    background: #000738;
    color: #fff;
    border: solid 2px #000738;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 12px !important;
    height: 40px;
}

/* Dynamic Step 1 Field Layouts */
/* Default: Stack all fields */
.step-1-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 30px 0;
    padding: 0 80px;
     align-items: center;
}

/* When Unit Type (variation) is present: Unit Type and Quantity inline, Postcode below */
.step-1-fields:has(#variation-selector-wrapper:not([style*="display: none"])) {
    grid-template-columns: 1fr 1fr;
}

.step-1-fields:has(#variation-selector-wrapper:not([style*="display: none"])) #variation-selector-wrapper {
    grid-column: 1;
}

.step-1-fields:has(#variation-selector-wrapper:not([style*="display: none"])) .summary-qty {
    grid-column: 2;
}

.step-1-fields:has(#variation-selector-wrapper:not([style*="display: none"])) .form-group[id*="step1_postcode"],
.step-1-fields:has(#variation-selector-wrapper:not([style*="display: none"])) .form-group:has(#step1_postcode) {
    grid-column: 1;
}

/* When Occasion is present (but no variation): Postcode and Occasion inline, Quantity below */
.step-1-fields:has(#occasion-selector-wrapper:not([style*="display: none"])):not(:has(#variation-selector-wrapper:not([style*="display: none"]))) {
    grid-template-columns: 1fr 1fr;
}

.step-1-fields:has(#occasion-selector-wrapper:not([style*="display: none"])):not(:has(#variation-selector-wrapper:not([style*="display: none"]))) .form-group:has(#step1_postcode) {
    grid-column: 1;
}

.step-1-fields:has(#occasion-selector-wrapper:not([style*="display: none"])):not(:has(#variation-selector-wrapper:not([style*="display: none"]))) #occasion-selector-wrapper {
    grid-column: 2;
}

.step-1-fields:has(#occasion-selector-wrapper:not([style*="display: none"])):not(:has(#variation-selector-wrapper:not([style*="display: none"]))) .summary-qty {
    grid-column: 1;
}

/* When only Postcode and Quantity (no variation, no occasion): Inline */
.step-1-fields:not(:has(#variation-selector-wrapper:not([style*="display: none"]))):not(:has(#occasion-selector-wrapper:not([style*="display: none"]))) {
    grid-template-columns: 1fr 1fr;
}

.step-1-fields:not(:has(#variation-selector-wrapper:not([style*="display: none"]))):not(:has(#occasion-selector-wrapper:not([style*="display: none"]))) .form-group:has(#step1_postcode) {
    grid-column: 1;
}

.step-1-fields:not(:has(#variation-selector-wrapper:not([style*="display: none"]))):not(:has(#occasion-selector-wrapper:not([style*="display: none"]))) .summary-qty {
    grid-column: 2;
}

/* Mobile: Stack all fields on small screens */
@media (max-width: 767px) {
    .step-1-fields,
    .step-1-fields:has(#variation-selector-wrapper:not([style*="display: none"])),
    .step-1-fields:has(#occasion-selector-wrapper:not([style*="display: none"])):not(:has(#variation-selector-wrapper:not([style*="display: none"]))),
    .step-1-fields:not(:has(#variation-selector-wrapper:not([style*="display: none"]))):not(:has(#occasion-selector-wrapper:not([style*="display: none"]))) {
        grid-template-columns: 1fr !important;
    }
    
    .step-1-fields .form-group,
    .step-1-fields .summary-qty,
    .step-1-fields #variation-selector-wrapper,
    .step-1-fields #occasion-selector-wrapper {
        grid-column: 1 / -1 !important;
    }
}

/* Step 2 Field Layouts - 2 per row except address lines */

.booking-step.step-2 h3, .booking-step.step-2-5 h3 {
    margin-bottom: 30px !important;
}

.step-2-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.step-2-fields .form-group.full {
    grid-column: 1 / -1;
}

/* Mobile: Stack all fields on small screens */
@media (max-width: 767px) {
    .step-2-fields {
        grid-template-columns: 1fr !important;
    }
    
    .step-2-fields .form-group {
        grid-column: 1 / -1 !important;
    }

    .hire-disclaimer {
        margin: 0 !important;
    }
}

/* Responsive styles for 1024px and below */
@media (max-width: 1024px) {
    /* Make calendar show only one month */
    .ui-datepicker.ui-datepicker-multi {
        width: auto !important;
        max-width: 100%;
    }
    
    .ui-datepicker-multi .ui-datepicker-group {
        width: 100% !important;
    }
    
    /* Hide second month */
    .ui-datepicker-multi .ui-datepicker-group:nth-child(2) {
        display: none;
    }
    
    /* Force both navigation arrows to be visible and correctly positioned */
    .ui-datepicker .ui-datepicker-prev,
    .ui-datepicker .ui-datepicker-next,
    .ui-datepicker-multi .ui-datepicker-group .ui-datepicker-prev,
    .ui-datepicker-multi .ui-datepicker-group .ui-datepicker-next,
    .ui-datepicker-multi .ui-datepicker-group-first .ui-datepicker-prev,
    .ui-datepicker-multi .ui-datepicker-group-first .ui-datepicker-next {
        display: block !important;
        position: absolute !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .ui-datepicker .ui-datepicker-prev,
    .ui-datepicker-multi .ui-datepicker-group .ui-datepicker-prev,
    .ui-datepicker-multi .ui-datepicker-group-first .ui-datepicker-prev {
        left: 2px !important;
    }
    
    .ui-datepicker .ui-datepicker-next,
    .ui-datepicker-multi .ui-datepicker-group .ui-datepicker-next,
    .ui-datepicker-multi .ui-datepicker-group-first .ui-datepicker-next {
        right: 2px !important;
    }
    
    /* Always ensure start and end date displays are stacked */
    .date-display-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .date-display-container > div {
        width: 100% !important;
    }
    
    /* Make summary blocks 2x2 grid */
    .summary-blocks {
        grid-template-columns: 1fr 1fr;
        gap: 1px;
    }
    
    /* Reduce text size in summary blocks */
    .summary-block h3 {
        font-size: 24px !important;
        padding: 6px 0;
    }
    
    .summary-block h2 {
        font-size: 36px !important;
        padding: 20px 12px;
    }
    
    .rate-note, .total-note {
        font-size: 10px;
        line-height: 10px;
    }
}

/* Additional responsive styles for 600px and below */
@media (max-width: 600px) {
    /* Make calendar full width */
    .ui-datepicker.ui-datepicker-multi,
    .ui-datepicker-multi .ui-datepicker-group,
    #booking-calendar-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .ui-datepicker table {
        width: 100% !important;
    }
}

/* Additional responsive styles for 500px and below */
@media (max-width: 500px) {
    /* Further reduce text size in summary blocks */
    .summary-block h3 {
        font-size: 18px !important;
        padding: 4px 0;
    }
    
    .summary-block h2 {
        font-size: 28px !important;
        padding: 15px 8px;
    }
    
    .rate-note, .total-note {
        font-size: 8px;
        line-height: 9px;
    }
    .ui-datepicker-multi .ui-datepicker-group-first {
        padding-right: 0px;
    }
    .ui-datepicker-multi .ui-datepicker-group{
        padding: 0px;
    }
    .booking-calendar-container {
        margin: 0px auto 20px;
    }
}

button.submit-button {
    background-color: #2AE1CD;
    color: black;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s;
    width: 100%;
    text-transform: uppercase;
    margin-top: 10px;
}

button.submit-button:hover {
    background-color: #1ec9b7;
}

.loading-spinner {
    margin-left: 15px;
    font-style: italic;
    color: #666;
}

.error-message {
    color: #d63638;
    margin-top: 15px;
    font-weight: 500;
}

/* ===== Step 3 Summary (Your Quote) ===== */
.booking-step.step-3 {
    color: #fff;
    font-family: 'Montserrat';
}

.summary-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

a.change-dates-link {
    width: 25%;
    display: flex;
    gap: 6px;
    align-items: center;
}

.summary-header .change-dates-link,
.summary-header .help-link,
.summary-header .help-link a {
    color: #fff;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}
.summary-header .help-link a:hover,
.summary-header .change-dates-link:hover { text-decoration: underline; }

.summary-dates {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 16px auto 30px;
}
.summary-date .label {
    color: #c9d1ff;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.summary-date .value {
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 20px;
}
.summary-date-divider {
    width: 1px;
    height: 29px;
    background: rgba(255, 255, 255, 0.20);
}

.summary-qty {
    display: flex;
    flex-direction: column;
    gap: 5px;
    line-height: 1;
    align-items: flex-end;
    width: 100%;
}

.summary-qty-labels {
    display: flex;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
    color: #fff;
    font-family: 'Montserrat';
}
.qty-controls {
    display: flex;
    gap: 18px;
    background: #000738;
    align-items: center;
    color: #fff;
    height: 40px;
}
.qty-controls .qty-dec, .qty-controls .qty-inc {
    width: 40px;
    height: 40px;
    border-radius: 0px;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 0;
}

button.qty-inc:hover,
button.qty-dec:hover {
    background-color: #e1001b;
}

.qty-controls #sum-units {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

/* Hide quantity selector for servicing units */
.step-1-quantity-wrapper.hide-for-servicing {
    display: none !important;
}

.summary-quote h3 {
    color: #fff !important;
    text-align: left !important;
}

.quote-list { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}
.quote-list li.summary-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border: 0;
    margin: 0;
    gap: 12px;
}
.quote-list li.summary-divider {
    height: 1px;
    background: #1A1C38;
    padding: 0;
    margin: 0;
    border: 0;
}
.quote-list li.summary-section .label {
    font-weight: 700;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}
.quote-list li.summary-section .value {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    text-align: end;
}
.quote-list li.summary-total {
    padding-top: 20px;
}
.quote-list li.summary-total .label,
.quote-list li.summary-total .value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;

}

/* Booking Notes Section */
.booking-notes-section {
    border-radius: 8px;
}

.booking-notes-section label {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px !important;
    font-family: 'Montserrat', sans-serif;
}

.booking-notes-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    background: #000738;
    border: 2px solid #000738;
    border-radius: 8px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.booking-notes-section textarea:focus {
    outline: none;
    border-color: #e1001b;
}

.booking-notes-section textarea::placeholder {
    color: #666;
}

.booking-notes-section .character-count {
    display: none;
    justify-content: flex-end;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    font-family: 'Montserrat', sans-serif;
}

.booking-notes-section .character-count span {
    color: #fff;
    font-weight: 600;
}

.booking-step.step-3 .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.booking-step.step-3 .back-button {
    flex: 0 0 auto;
}

.booking-step.step-3 .add-to-quote-step3-btn,
.booking-step.step-3 .submit-button {
    flex: 1;
    background: #e1001b;
    color: #fff;
    border-radius: 999px !important;
    margin-top: 0;
    padding: 14px 20px !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
}

.booking-step.step-3 .add-to-quote-step3-btn {
    background: #ffffff1a;
   
}

.booking-step.step-3 .submit-button:hover, 
.booking-step.step-3 .submit-button:focus
{ 
    transform: translateY(-2px);
}

.booking-step.step-3 .add-to-quote-step3-btn:hover,
.booking-step.step-3 .add-to-quote-step3-btn:focus
{
      transform: translateY(-2px);
}

@media (max-width: 767px) {
    .booking-step.step-3 .form-actions {
        flex-wrap: wrap;
    }
    
    .booking-step.step-3 .back-button {
        flex: 0 0 100%;
        order: 3;
    }
    
    .booking-step.step-3 .add-to-quote-step3-btn,
    .booking-step.step-3 .submit-button {
        flex: 1 1 calc(50% - 6px);
    }

    a.change-dates-link {
    width: 100%;
}

.summary-header h3, .help-link  {
    display: none;
}

}

@media (max-width: 640px) {
    .summary-dates { gap: 12px; }
    .summary-date .value { font-size: 22px; }
}

@media (max-width: 767px) {
    div#booking-calendar-container {
        padding: 0px !important;
    }
}

/* Blocked Dates Styling */
/* .ui-datepicker-calendar td.blocked-date a,
.ui-datepicker-calendar td.blocked-date span {
    background-color: #2a0005 !important;
    color: #ff4444 !important;
    text-decoration: line-through !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.ui-datepicker-calendar td.blocked-date:hover a,
.ui-datepicker-calendar td.blocked-date:hover span {
    background-color: #3a0008 !important;
}

.ui-datepicker-calendar td.blocked-date {
    background: #1a0003 !important;
} */

/* Before Minimum Period Styling - Faded but still selectable */
.ui-datepicker-calendar td.before-minimum-period a,
.ui-datepicker-calendar td.before-minimum-period span {
    opacity: 0.3 !important;
    color: #999;
}

/* Max Hire Period Exceeded - Disabled for short-term only units */
.ui-datepicker-calendar td.max-hire-exceeded a,
.ui-datepicker-calendar td.max-hire-exceeded span {
    color: #ffffff1a;
    cursor: not-allowed !important;
    opacity: 1;
    font-size: 16px;
    font-weight: 600;
    pointer-events: none !important;
}

.ui-datepicker-calendar td.before-minimum-period:hover a,
.ui-datepicker-calendar td.before-minimum-period:hover span {
    opacity: 0.5 !important;
}

/* Clear Dates Button */
.clear-dates-button {
    display: block;
    margin: 16px auto 0;
    padding: 10px 24px !important;
    background-color: transparent !important;
    border: 0;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.clear-dates-button:hover {
    background-color: #e1001b;
    color: #fff;
}

.clear-dates-button:active {
    transform: scale(0.98);
}

/* Availability Error Message */
.availability-error {
  
    padding: 16px;
    margin: 20px 100px;
    display: flex;
    align-items: flex-start;

}

.availability-error svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.availability-error p {
    margin: 0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
   text-align: center;
}

/* Hire Disclaimer Message */
.hire-disclaimer {
    background: #e1001b;
    padding: 12px;
    margin: 20px 80px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 4px;
}

.hire-disclaimer svg {
    flex-shrink: 0;
    color: #fff;
}

.hire-disclaimer p {
    margin: 0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Step 1 Fields Styling */

.step-1-fields .form-group {
    margin-bottom: 0;
}

.step-1-fields .form-group.full {
    grid-column: 1;
}

.step-1-fields input[type="number"],
.step-1-fields input[type="text"] {
    width: 100%;
    height: 40px;
}

/* Loading state for button */
button.next-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Availability Loading Overlay */
.availability-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 2, 20, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    gap: 20px;
}

.availability-loading p {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(225, 0, 27, 0.2);
    border-top-color: #e1001b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Override jQuery UI default icons with custom SVG arrows using CSS only */
.ui-datepicker-prev,
.ui-datepicker-next {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
}

/* Hide the default jQuery UI icon spans */
.ui-datepicker-prev .ui-icon,
.ui-datepicker-next .ui-icon {
    display: none !important;
}

/* Replace with custom SVG using ::before pseudo-element */
.ui-datepicker-prev::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 18L9 12L15 6" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ui-datepicker-next::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 6L15 12L9 18" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Handle disabled state */
.ui-datepicker-prev.ui-state-disabled::before,
.ui-datepicker-next.ui-state-disabled::before {
    opacity: 0.3;
}

.ui-datepicker-prev.ui-state-disabled,
.ui-datepicker-next.ui-state-disabled {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Success Actions Buttons */
.success-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 99px;
    text-transform: uppercase;
}

.call-button {
    background: #E1001B;
    color: #fff;
   
}

.call-button:hover {
    background: #BE0017;
    color: #fff;
}

.email-button {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.email-button:hover {
    background: #272C57;
    color: #fff;
}

.action-button svg {
    flex-shrink: 0;
}

.success-message {
    text-align: center;
    margin-top: 12px;
    font-weight: 600;
}

/* Booking Success Popup */
.booking-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 2, 20, 0.50);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.booking-popup-content {
    background: #000322;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat';
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.popup-header {
    text-align: center;
    margin-bottom: 32px;
}

.popup-header svg {
    margin-bottom: 20px;
}

.popup-header h2 {
    color: #fff;
    font-family: Montserrat;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

.popup-header p {
    color: rgba(255, 255, 255, 0.8);
    font-family: Montserrat;
    font-size: 16px;
    margin: 0;
}

.popup-summary h3 {
    color: #fff;
    font-family: Montserrat;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
}

.popup-summary-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.popup-summary-date {
    text-align: center;
}

.popup-summary-date .label {
    color: rgba(255, 255, 255, 0.6);
    font-family: Montserrat;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.popup-summary-date .value {
    color: #fff;
    font-family: Montserrat;
    font-size: 18px;
    font-weight: 700;
}

.popup-summary-divider {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.popup-quote-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-quote-list li.popup-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border: 0;
}

.popup-quote-list li.popup-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
    margin: 0;
    border: 0;
}

.popup-quote-list li.popup-total {
    padding-top: 20px;
}

.popup-quote-list .label {
    color: rgba(255, 255, 255, 0.7);
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 600;
}

.popup-quote-list .value {
    color: #fff;
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.popup-quote-list li.popup-total .label,
.popup-quote-list li.popup-total .value {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.popup-quote-list .value div {
    display: inline;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .success-actions {
        flex-direction: column;
    }
    
    .booking-popup-content {
        padding: 24px;
    }
    
    .popup-header h2 {
        font-size: 24px;
    }
    
    .popup-summary-dates {
        flex-direction: column;
        gap: 16px;
    }
    
    .popup-summary-divider {
        width: 40px;
        height: 2px;
    }
}

/* Servicing Multi-Date Picker Styles */
.selected-dates-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.selected-dates-display h4 {
    color: #fff;
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.selected-dates-list {
    min-height: 60px;
}

.no-dates-message {
    color: rgba(255, 255, 255, 0.5);
    font-family: Montserrat;
    font-size: 14px;
    font-style: italic;
    margin: 0;
    text-align: center;
}

.dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.date-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.date-number {
    color: #e1001b;
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 700;
    min-width: 24px;
}

.date-text {
    color: #fff;
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.remove-date {
    background: rgba(225, 0, 27, 0.2);
    border: 1px solid #e1001b;
    color: #e1001b;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-date:hover {
    background: #e1001b;
    color: #fff;
}

.dates-hint {
    color: rgba(255, 255, 255, 0.6);
    font-family: Montserrat;
    font-size: 12px;
    font-style: italic;
    margin: 12px 0 0 0;
    text-align: center;
}

.booking-calendar-container.servicing-mode {
    margin-top: 0;
}

/* Flatpickr disabled dates for servicing */
.flatpickr-day.flatpickr-disabled.servicing-unavailable {
    opacity: 0.3;
    cursor: not-allowed;
}

/* jQuery UI disabled dates for servicing */
.ui-datepicker td.ui-datepicker-unselectable.servicing-unavailable span {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Popup Actions Buttons */
.popup-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#warning-popup .popup-actions {
    border-top: 0;
    padding-top: 0;
}

#warning-message a {
    color: #fff;
    text-decoration: underline;
}


 
.popup-actions button {
    flex: 1;
    padding: 12px 24px !important;
    border: solid 2px #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
}

.popup-actions button:hover {
background: #E1001B;
}

.add-to-quote-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff !important;
}

.add-to-quote-btn:hover {
    background: #fff;
    color: #000214;
}

.submit-quote-btn {
    background: #e1001b;
    color: #fff;
}

.submit-quote-btn:hover {
    background: #c1001b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 0, 27, 0.3);
}

.popup-close-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff !important;
}

.popup-close-btn:hover {
    background: #fff;
    color: #000214;
}

/* Quote Popup Info Section */
.quote-popup-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(225, 0, 27, 0.1);
    border-left: 4px solid #e1001b;
    border-radius: 4px;
    margin-top: 20px;
}

.quote-popup-info svg {
    flex-shrink: 0;
}

.quote-popup-info p {
    margin: 0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.quote-popup-info strong {
    color: #e1001b;
    font-weight: 700;
}

@media (max-width: 767px) {
    .popup-actions {
        flex-direction: column;
    }
    
    .popup-actions button {
        width: 100%;
    }
}

/* T&C Acceptance Popup */
.tc-popup-overlay {
    z-index: 10001;
}

.tc-popup-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tc-popup-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

#tc-acceptance-popup .popup-header p, .tc-checkbox-label {
     color: #fff;
    font-family: Montserrat;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.tc-intro {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: none;
}

.tc-link-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.tc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 24px;
    border: 2px solid #ffffff;
    border-radius: 99px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.tc-link:hover {
    background: #E1001B;
    color: #fff;
}

.tc-link svg {
    flex-shrink: 0;
}

.tc-input-section {
   display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom:20px;
}


.tc-consumer-name-section,
.tc-company-name-section,
.tc-position-section,
.tc-signature-section {  
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
    text-align: center;
}

.tc-label {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.tc-label .required {
    color: #e1001b;
}

.tc-consumer-name-input,
.tc-company-name-input,
.tc-position-input,
.tc-signature-input {
    padding: 8px 12px !important;
    border-radius: 2px !important;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    background: #000738 !important;
    text-align: center;
    color: #fff;
}
.tc-consumer-name-input:focus,
.tc-company-name-input:focus,
.tc-position-input:focus,
.tc-signature-input:focus {
    outline: none;
    border-color: #000214;
}

.tc-consumer-name-input.error,
.tc-company-name-input.error,
.tc-position-input.error,
.tc-signature-input.error {
    border-color: #e1001b;
}

.tc-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: center;
}

.tc-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.tc-submit-btn {
    background: #e1001b !important;
    color: #fff !important;
    border: none !important;
    border-radius: 99px !important;
    text-transform: uppercase;
    width: fit-content;
}

.tc-submit-btn:hover:not(:disabled) {
    background: #e1001b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 2, 20, 0.3);
}

.tc-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.tc-error {
    display: block;
    margin-top: 5px;
}

@media (max-width: 767px) {
    .tc-popup-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .tc-popup-body {
        padding: 20px;
    }
    
    .tc-link {
        font-size: 14px;
        padding: 10px 16px;
    }
}
