/* General Reset */

@media only screen and (max-width:767px){
.ceb-three-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 20px;
}

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Form Container */
.ceb-modern-wizard {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: #F8F8F8 !important; /* Primary: Light gray */
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important; /* Lighter shadow */
    font-family: 'Poppins', sans-serif;
    border: 2px solid #333232 !important; /* Dark gray border */
    overflow: visible;
}

/* Form Title */
h2.formtitle {
    color: #333232 !important; /* Dark gray for form title */
    font-weight: 800;
    text-align: center;
}

/* Progress Container */
.ceb-progress-container {
    position: relative;
    margin-bottom: 50px;
}

.ceb-progress-line {
    height: 6px;
    background: #27AE60 !important; /* Green accent for progress line */
    width: 0;
    transition: width 0.5s ease-in-out;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 3px;
}

.ceb-step-nav {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.ceb-step-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ceb-step-item span {
    display: inline-block;
    padding: 10px 25px;
    background: #D0D0D0; /* Light gray for inactive steps */
    color: #333232; /* Dark gray text */
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Lighter shadow */
}

.ceb-step-item.active span {
    background: #27AE60 !important; /* Green accent for active step */
    color: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(39, 174, 96, 0.2) !important; /* Lighter green shadow */
}

/* Step Panels */
.ceb-step-panel {
    display: none;
}

.ceb-step-panel.active {
    display: block;
    animation: fadeSlideIn 0.5s ease-in-out;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.ceb-step-panel h2 {
    font-size: 32px;
    color: #333232; /* Dark gray text */
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #333232, #555555) !important; /* Dark gray gradient */
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Form Fields */
.ceb-form {
    display: grid;
    gap: 25px;
}

.ceb-field {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.ceb-field label {
    font-size: 16px;
    color: #333232 !important; /* Dark gray for labels */
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ceb-field input,
.ceb-field select {
    width: 100% !important;
    padding: 15px 20px !important;
    border: 2px solid #D0D0D0 !important; /* Light gray border */
    border-radius: 10px !important;
    font-size: 16px !important;
    background: #F8F8F8 !important; /* Light gray background for inputs */
    color: #333232 !important; /* Dark gray text */
    transition: all 0.3s ease !important;
    font-family: 'Poppins', sans-serif !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important; /* Lighter shadow */
}

.ceb-field input:focus,
.ceb-field select:focus {
    border-color: #333232 !important; /* Dark gray on focus */
    background: #F8F8F8 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important; /* Lighter shadow */
    outline: none;
}

.ceb-field input::placeholder,
.ceb-field select:invalid {
    color: #888888 !important; /* Lighter gray for placeholders */
}

/* Error Styling */
.ceb-field input:invalid.error,
.ceb-field .error {
    border: 2px solid #E74C3C !important; /* Red for errors */
}

span.ceb-error-message {
    display: none !important;
}

/* Three Column Grid for Step 4 */
.ceb-three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.ceb-three-column-grid .ceb-field {
    margin-bottom: 0;
}

.ceb-three-column-grid .ceb-full-width {
    grid-column: span 2;
}

/* Navigation Buttons */
.ceb-nav-buttons {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 40px !important;
}

.ceb-prev-btn,
.ceb-next-btn,
.ceb-submit-btn {
    padding: 15px 30px !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important; /* Lighter shadow */
}

.ceb-prev-btn {
    background: #D0D0D0 !important; /* Light gray for previous button */
    color: #333232 !important; /* Dark gray text */
}

.ceb-prev-btn:hover {
    background: #B0B0B0 !important; /* Slightly darker gray on hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15) !important; /* Lighter shadow */
}

.ceb-next-btn,
.ceb-submit-btn {
    background: #333232 !important; /* Dark gray for next/submit buttons */
    color: #FFFFFF !important;
}

.ceb-next-btn:hover,
.ceb-submit-btn:hover {
    background: #4A4A4A !important; /* Slightly lighter gray on hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15) !important; /* Lighter shadow */
}

/* Success Message */
.ceb-modern-wizard .ceb-success {
    text-align: center;
    color: #333232; /* Dark gray for success message */
    font-size: 22px;
    font-weight: 700;
    padding: 30px;
    animation: fadeIn 0.5s ease-in-out;
    background: #FFFFFF;
    border-radius: 10px;
    border: 2px solid #333232;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Calendar (Unchanged as per request) */
.ceb-calendar {
    display: none;
    background: #1e1e2f;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    width: 300px;
    position: absolute;
    z-index: 1000;
    margin-top: 5px;
    border: 1px solid #75b319 !important;
}

.ceb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    padding: 10px 0;
}

.ceb-calendar-header span {
    font-weight: 600;
    font-size: 16px;
}

.ceb-calendar-nav {
    cursor: pointer;
    font-size: 20px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.ceb-calendar-nav:hover {
    background: rgba(117, 179, 25, 0.2) !important;
    border-radius: 50%;
}

.ceb-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.ceb-calendar-day {
    padding: 8px;
    text-align: center;
    color: #d1d1e0;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #252534;
}

.ceb-calendar-day.empty {
    background: transparent;
}

.ceb-calendar-day.past,
.ceb-calendar-day.weekend,
.ceb-calendar-day.disabled,
.ceb-calendar-day.beyond-range,
.ceb-calendar-day.outside-range {
    color: #666;
    cursor: not-allowed;
    background: #2a2a3d;
}

.ceb-calendar-day:not(.past):not(.weekend):not(.empty):not(.disabled) {
    cursor: pointer;
}

.ceb-calendar-day:not(.past):not(.weekend):not(.empty):not(.disabled):hover,
.ceb-calendar-day.selected {
    background: #75b319 !important;
    color: #0d1404;
}

.ceb-calendar-day .day-number {
    display: block;
    font-size: 14px;
    color: #fff;
}

.ceb-calendar-day:not(.past):not(.weekend):not(.empty):not(.disabled):hover .day-number,
.ceb-calendar-day.selected .day-number {
    color: #0d1404;
}

.ceb-calendar-day .price-display {
    display: block !important;
    font-size: 12px;
    color: #00b894;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1;
    visibility: visible !important;
}

.ceb-calendar-day .price-display del {
    color: #88889e;
    margin-right: 5px;
}

.ceb-calendar-day:not(.past):not(.weekend):not(.empty):not(.disabled):hover .price-display,
.ceb-calendar-day.selected .price-display {
    color: #0d1404;
}

.ceb-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    color: #d1d1e0;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
}

.ceb-calendar-weekdays div {
    text-align: center;
}

/* Checkboxes */
.ceb-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    padding: 0;
}

.ceb-checkbox {
    position: relative;
    width: 23%;
    margin-right: 2%;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #333232; /* Dark gray text */
    font-family: 'Poppins', sans-serif;
}

.ceb-checkbox:nth-child(4n) {
    margin-right: 0;
}

.ceb-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.ceb-checkbox span {
    padding: 10px 20px 10px 40px;
    background: #FFFFFF;
    border: 2px solid #D0D0D0;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Lighter shadow */
    text-align: left;
    width: 100%;
}

.ceb-checkbox span:before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #333232 !important; /* Dark gray border */
    border-radius: 4px;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.ceb-checkbox input[type="checkbox"]:checked + span {
    background: #333232 !important; /* Dark gray for checked */
    border-color: #4A4A4A !important;
    color: #FFFFFF;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important; /* Lighter shadow */
}

.ceb-checkbox input[type="checkbox"]:checked + span:before {
    background: #FFFFFF;
    border-color: #FFFFFF;
}

.ceb-checkbox input[type="checkbox"]:checked + span:after {
    content: '\2713';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #333232 !important; /* Dark gray checkmark */
    font-weight: bold;
}

/* Appliances */
.ceb-appliances {
    margin-top: 20px;
}

.ceb-appliances label {
    font-size: 16px;
    font-weight: 600;
    color: #333232 !important; /* Dark gray for appliance labels */
    margin-bottom: 15px;
    display: block;
    font-family: 'Poppins', sans-serif;
}

.ceb-appliance-item {
    margin-right: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.ceb-quantity-box {
    display: flex;
    align-items: center;
    margin-right: 20px;
    border: none;
    background: transparent;
}

.ceb-quantity-btn {
    background: #333232 !important; /* Dark gray for quantity buttons */
    color: #FFFFFF !important;
    border: none;
    padding: 5px 10px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important; /* Lighter shadow */
    border-radius: 4px;
}

.ceb-quantity-btn:hover {
    background: #4A4A4A !important; /* Slightly lighter gray on hover */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important; /* Lighter shadow */
}

.ceb-quantity-btn:focus {
    outline: none;
}

.ceb-quantity-value {
    min-width: 30px;
    text-align: center;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #333232; /* Dark gray text */
    padding: 5px 8px;
    border: none;
    background: transparent;
}

.appliance-quantity {
    padding: 5px;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    font-size: 14px;
}

/* Address Suggestions */
#address-suggestions[style*="display: block"] {
    display: block !important;
}

#address-suggestions div,
#postal_code-suggestions div,
#company_address-suggestions div {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #D0D0D0;
    font-size: 14px;
    color: #333232; /* Dark gray text */
    transition: background-color 0.3s;
}

#address-suggestions div:hover,
#postal_code-suggestions div:hover,
#company_address-suggestions div:hover {
    background-color: #F8F8F8; /* Light gray background on hover */
}

div#address-suggestions,
div#postal_code-suggestions,
div#company_address-suggestions {
    width: 100% !important;
    top: 91px !important;
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Lighter shadow */
}

/* Payment Modal */
.ceb-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ceb-payment-modal-content {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Lighter shadow */
}

.ceb-payment-modal-content h3 {
    margin-top: 0;
    color: #333232 !important; /* Dark gray for payment modal heading */
}

#card-element {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
}

#card-errors {
    color: #E74C3C; /* Red for errors */
    margin-top: 10px;
}

#ceb-pay-now-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #333232 !important; /* Dark gray for pay now button */
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#ceb-pay-now-btn:hover:not(:disabled) {
    background: #4A4A4A !important; /* Slightly lighter gray on hover */
}

#ceb-pay-now-btn:disabled {
    background: #D0D0D0;
    cursor: not-allowed;
}

#ceb-cancel-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: #D0D0D0;
    color: #333232; /* Dark gray text */
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Special Discount */
span.ceb-special-discount-badge {
    display: inline-block !important;
    background: #333232; /* Dark gray for discount badge */
    font-size: 14px;
    margin-top: 10px;
    border-radius: 20px;
    padding: 0px 7px;
    width: 180px;
    text-align: center;
    color: #FFFFFF;
}

.ceb-special-discount-ribbon {
    background: #E74C3C !important; /* Red for ribbon */
    color: #FFFFFF !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    padding: 1px 4px !important;
    border-radius: 2px !important;
    transform: rotate(45deg) !important;
    transform-origin: top right !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important; /* Lighter shadow */
    z-index: 10 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.ceb-calendar-day {
    position: relative !important;
    overflow: visible !important;
}

.ceb-calendar-day .day-number {
    position: relative !important;
    z-index: 1 !important;
}

/* Booking Time */
#booking_time option.booked {
    color: #888888;
    background-color: #D0D0D0;
}

/* Price Display */
span.price-display {
    font-size: 16px !important;
    background-color: #333232; /* Dark gray background */
    border-radius: 30px;
    padding: 3px 3px;
}

span.price-display strong {
    color: #FFFFFF; /* White for contrast */
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .ceb-three-column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ceb-three-column-grid .ceb-full-width {
        grid-column: span 1;
    }
}

@media screen and (max-width: 768px) {
    .ceb-modern-wizard {
        max-width: 100%;
        margin: 20px 10px;
        padding: 20px;
        border-radius: 15px;
    }

    .ceb-step-nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .ceb-step-item {
        flex: 1 1 45%;
        min-width: 0;
        padding: 5px 0;
    }

    .ceb-step-item span {
        padding: 8px 15px;
        font-size: 14px;
        border-radius: 20px;
    }

    .ceb-step-item.active span {
        transform: scale(1.05);
    }

    .ceb-progress-line {
        height: 4px;
    }

    .ceb-step-panel h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .ceb-form {
        gap: 20px;
    }

    .ceb-field label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .ceb-field input,
    .ceb-field select {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 8px;
    }

    .ceb-nav-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .ceb-prev-btn,
    .ceb-next-btn,
    .ceb-submit-btn {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .ceb-modern-wizard .ceb-success {
        font-size: 18px;
        padding: 20px;
    }

    .ceb-calendar {
        width: 100%;
        max-width: none;
        padding: 15px;
        border-radius: 10px;
    }

    .ceb-calendar-header span {
        font-size: 14px;
    }

    .ceb-calendar-nav {
        font-size: 18px;
        width: 25px;
        height: 25px;
        line-height: 25px;
    }

    .ceb-calendar-days {
        gap: 3px;
    }

    .ceb-calendar-day {
        padding: 6px;
        font-size: 12px;
    }

    .ceb-calendar-day .price-display {
        font-size: 10px;
    }

    .ceb-calendar-weekdays {
        font-size: 12px;
    }

    .ceb-three-column-grid {
        grid-template-columns: 1fr;
    }

    .ceb-checkbox {
        width: 48%;
        margin-right: 4%;
    }

    .ceb-checkbox:nth-child(2n) {
        margin-right: 0;
    }

    .ceb-checkbox:nth-child(4n) {
        margin-right: 4%;
    }

    .ceb-checkbox span {
        padding: 8px 15px 8px 35px;
        font-size: 14px;
    }

    .ceb-checkbox span:before {
        width: 14px;
        height: 14px;
        left: 10px;
    }

    .ceb-checkbox input[type="checkbox"]:checked + span:after {
        left: 13px;
        font-size: 10px;
    }

    .ceb-appliance-item {
        flex-wrap: wrap;
    }

    .ceb-quantity-box {
        margin-bottom: 8px;
        margin-right: 0;
    }
}

@media screen and (max-width: 480px) {
    .ceb-modern-wizard {
        padding: 15px;
        margin: 10px 5px;
    }

    .ceb-step-item {
        flex: 1 1 45%;
    }

    .ceb-step-item span {
        padding: 6px 10px;
        font-size: 12px;
    }

    .ceb-step-panel h2 {
        font-size: 20px;
    }

    .ceb-field label {
        font-size: 12px;
    }

    .ceb-field input,
    .ceb-field select {
        padding: 10px 12px;
        font-size: 12px;
    }

    .ceb-prev-btn,
    .ceb-next-btn,
    .ceb-submit-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .ceb-calendar {
        padding: 10px;
    }

    .ceb-calendar-day {
        padding: 4px;
        font-size: 10px;
    }

    .ceb-calendar-day .price-display {
        font-size: 8px;
    }

    .ceb-calendar-weekdays {
        font-size: 10px;
    }

    .ceb-checkbox {
        width: 100%;
        margin-right: 0;
    }

    .ceb-checkbox span {
        padding: 6px 12px 6px 30px;
        font-size: 12px;
    }

    .ceb-checkbox span:before {
        width: 12px;
        height: 12px;
        left: 8px;
    }

    .ceb-checkbox input[type="checkbox"]:checked + span:after {
        left: 11px;
        font-size: 8px;
    }

    .ceb-special-discount-ribbon {
        font-size: 6px !important;
        padding: 1px 2px !important;
    }
}

@media screen and (max-width: 600px) {
    .ceb-modern-wizard {
        padding: 20px;
        margin: 20px;
    }

    .ceb-step-item span {
        padding: 8px 15px;
        font-size: 14px;
    }

    .ceb-field input,
    .ceb-field select {
        padding: 12px 15px;
    }

    .ceb-prev-btn,
    .ceb-next-btn,
    .ceb-submit-btn {
        padding: 12px 20px;
        font-size: 16px;
    }

    .ceb-step-panel h2 {
        font-size: 24px;
    }

    .ceb-calendar {
        width: 280px;
        padding: 10px;
    }

    .ceb-calendar-day {
        padding: 6px;
    }

    .ceb-calendar-day .price-display {
        font-size: 10px;
    }
}

@media screen and (max-width: 768px) {
    .ceb-calendar {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        border-radius: 10px;
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 5px;
        max-height: 300px;
        overflow-y: auto;
        overflow-x: auto;
        box-sizing: border-box;
        z-index: 1000;
    }

    .ceb-calendar-header {
        font-size: 14px;
        padding: 8px 0;
    }

    .ceb-calendar-nav {
        font-size: 18px;
        width: 25px;
        height: 25px;
        line-height: 25px;
    }

    .ceb-calendar-days {
        gap: 3px;
        padding-bottom: 10px;
    }

    .ceb-calendar-day {
        padding: 6px;
        font-size: 12px;
    }

    .ceb-calendar-day .price-display {
        font-size: 10px;
    }

    .ceb-calendar-weekdays {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .ceb-calendar {
        padding: 10px;
        max-height: 250px;
    }

    .ceb-calendar-header span {
        font-size: 12px;
    }

    .ceb-calendar-nav {
        font-size: 16px;
        width: 20px;
        height: 20px;
        line-height: 20px;
    }

    .ceb-calendar-days {
        gap: 2px;
    }

    .ceb-calendar-day {
        padding: 4px;
        font-size: 10px;
    }

    .ceb-calendar-day .price-display {
        font-size: 8px;
    }

    .ceb-calendar-weekdays {
        font-size: 10px;
    }
}

@media screen and (max-width: 768px) {
    .ceb-special-discount-ribbon {
        font-size: 7px !important;
        padding: 1px 3px !important;
    }
}