/* Your original styles - unchanged */
#ymm-container #maincon .dropdown-group {
    display: flex !important;
	width: 100%;
}

.dropdown-group {
    display: flex;
    width: 100%;
    gap: 10px; /* use this if supported by your browsers */
    flex-wrap: nowrap;
}

.dropdown-item {
    flex: 1 1 0;
    min-width: 0;
}

    .dropdown-item select {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

.store-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 10px 30px 10px !important;
    border-radius: 5px;
    cursor: pointer;
}

    .store-item input[type="radio"] {
        display: none;
    }

.radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    margin-top: 5px;
    margin-bottom: 20px;
    position: relative;
}

.store-item input[type="radio"]:checked + .radio-circle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.store-details {
    line-height: 1.4;
}

.divider-with-or {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px 0;
    text-align: center;
}

    .divider-with-or .line {
        flex-grow: 1;
        height: 1px;
        background-color: #fff;
    }

    .divider-with-or .or-text {
        margin: 0 10px;
        font-weight: bold;
        color: #fff;
    }

.message-container #callbutton-container button {
    margin-top: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
    display: flex;
    padding: 25px 60px !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    background-color: #3b3c3b !important;
}

#callbutton-container {
    margin: auto !important;
}

.totalColumn {
    flex-direction: column;
}

#date-message-container {
    justify-content: center;
    display: flex;
}

#fitment-container {
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
}

.extra-input {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: normal;
}

.dropdown-item label {
    font-weight: 300;
    font-size: 16px;
    margin-bottom: 5px;
    color: #fff;
}

.dropdown-item select {
    width: 100%;
    padding: 11px !important;
    border: 1px solid #fff;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 14px;
}

.dropdown-group-input {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 15px;
}

.dropdown-item-input {
    flex: 1 1 0;
    min-width: 0;
}

    .dropdown-item-input label {
        display: none !important
    }

#mobile-form {
    display: flex;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.dropdown-group-input-start {
    display: flex;
    flex-direction: row;
    justify-content: left;
    margin-bottom: 5px;
    flex-wrap: nowrap;
    width: 100%;
    flex: 1 1 24% !important;
    box-sizing: border-box !important;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap;
}

.button-group-second {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap;
}

.submit-order {
    margin-top: 10px;
    padding: 15px 35px;
    background-color: #ffd816;
    border: 1px solid #ffd816;
    color: #333;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    font-weight: 600;
}

    .submit-order:disabled {
        margin-top: 10px;
        padding: 10px 35px;
        border: 1px solid #ccc;
        background-color: #ccc;
        color: #fff;
        cursor: none;
        border-radius: 5px;
        font-size: 16px;
        width: 100%;
    }

.hidden {
    display: none;
}

#extra-input {
    margin-top: 10px;
}

input#zip-code {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 14px;
}

.pOrMiddle {
    text-align: center;
    font-size: 16;
    margin: 0;
}

.fitment-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 15px;
    padding: 10px 0;
    margin-top: 50px;
    margin-bottom: 50px;
    border-bottom: 1px solid #ddd;
}

.fitment-card:hover {
    border-color: #000000;
    border-width: 3px;
}

.fitment-card.darker {
    opacity: 0.5;
}

.fitment-card.selected {
    border-color: #000000;
    border-width: 3px;
    color: #000;
}

.fitment-card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.fitment-card .price {
    font-size: 16px;
    font-weight: bold;
    margin-top: 5px;
}

.fitment-card .freq {
    font-size: 16px;
    font-weight: 400;
    margin-right: 5px;
}

.fitment-card input[type="checkbox"] {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.prev-button {
    background-color: transparent;
    border: none;
    font-size: 34px;
    margin-right: 10px;
    color: #fff;
}

.next-button {
    background-color: transparent;
    border: none;
    font-size: 34px;
    margin-left: 10px;
    color: #fff;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    color: #fff;
    text-align: center;
}

.calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    height: 40px;
}

#calendar-container {
    flex: 1 1 40% !important;
}

#time-slot-container {
    flex: 1 1 60% !important;
}

.calendar-container {
    display: flex;
    gap: 2rem; /* spacing between calendar and time slots */
    padding: 1rem;
    align-items: flex-start; /* top-align both sections */
}

#calendar-container,
#time-slot-container {
	margin-top: 10px;
	margin-bottom: 10px;
    flex: 1 1 50%; /* make both take equal space */
    min-width: 300px; /* ensure they don’t shrink too small */
}


.past-date {
    color: gray;
}

.future-date {
    color: black;
}

.time-slot {
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #ccc;
    margin: 5px 0;
    border-radius: 4px;
}

    .time-slot:hover {
        background-color: #f0f0f0;
    }

.fitment-card-full {
    min-height: 230px;
    flex-direction: column !important;
    display: flex !important;
    justify-content: center;
}

#time-selection-container {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: none;
}

@media screen and (min-width: 1100px) {

    #ymm-container {
        margin: 20px;
        padding: 10px;
        min-width: 1000px;
    }

        #ymm-container .dropdown-group {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            margin-bottom: 15px;
        }

    .fitment-card {
        display: inline-block;
        flex-shrink: 0;
        align-items: center;
        border: 1px solid #ddd;
        border-radius: 5px;
        flex: 1;
        flex-direction: column;
        min-width: 215px;
        max-width: 48%;
        padding: 0px;
        margin: 10px;
        background-color: #f9f9f9;
        position: relative;
        transition: background-color 0.3s ease, border-color 0.3s ease;
        cursor: pointer;
        text-align: center;
    }

    .button-group-second {
        display: flex;
        gap: 10px;
        margin-top: 40px;
        margin-bottom: 30px;
        justify-content: center;
        width: 100%;
        flex-wrap: nowrap;
    }

    .radio-button {
        padding: 15px 30px;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        cursor: pointer;
        border-radius: 5px;
        font-size: 16px;
        font-weight: 600;
    }

    .radio-button-call {
        padding: 10px 60px;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        cursor: pointer;
        border-radius: 5px;
        font-size: 16px;
    }

    #toggle-service-btn {
        padding: 20px 80px;
        border: 1px solid #3b3c3b;
        background-color: #3b3c3b;
        color: #fff;
    }

    .radio-button.selected {
        background-color: #ffd816;
        border: 1px solid #ffd816;
        color: #333;
    }

    .radio-button-call.selected {
        background-color: #ffd816;
        border: 1px solid #ffd816;
        color: #333;
        font-weight: 600;
    }

    .radio-button:disabled {
        background-color: #cccccc;
        border: 1px solid #ccc;
        color: #666666;
        cursor: not-allowed;
    }

    .radio-button.disabled {
        opacity: 0.5;
    }

    .radio-button-call:disabled {
        background-color: #cccccc;
        border: 1px solid #ccc;
        color: #666666;
        cursor: not-allowed;
    }

    .radio-button-call.disabled {
        opacity: 0.5;
    }

    .dropdown-group-input {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        margin-bottom: 15px;
    }

    .dropdown-group-input-start {
        display: flex;
        flex-direction: row;
        justify-content: left;
        margin-bottom: 5px;
    }

    .message-container {
        flex-direction: row;
        display: flex;
        width: auto;
    }

    .saveOrderWidth {
        width: 100%;
    }

    .saveOrderTitle {
        text-align: center;
        margin: 10px 0;
        color: #fff;
    }

    .dropdown-item-input {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

        .dropdown-item-input input {
            width: 100%;
            margin-bottom: 10px !important;
            padding: 5px !important;
            border: 1px solid #ddd !important;
            border-radius: 4px;
            background-color: #f9f9f9 !important;
            font-size: 14px;
            height: 38px;
        }

    #subtotal-container {
        flex-direction: column;
        justify-content: space-between;
        display: flex;
        width: 100%;
    }

    .subRow {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        color: #fff;
    }

    .calendar-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    #calendar-container {
        display: flex;
        flex-direction: column;
        width: 600px;
    }

    /*     #time-slot-container {
        display: block;
        flex: 1 1 0%;
        margin-left: 10px;
		margin-top: 30px;
        width: 400px;
    } */

    #subtotal-schedule-container {
        flex-direction: column;
        justify-content: space-between;
        display: flex;
        margin-top: 20px;
        width: 100%;
    }
}

/* Mobile responsiveness - max-width 768px */
@media screen and (max-width: 1100px) {
    #ymm-container {
        padding: 0px;
        margin: 0px;
        min-width: 100%;
    }

    #mobile-form {
        display: flex;
        flex-wrap: wrap !important;
        gap: 15px !important;
    }

    .message-container #callbutton-container button {
        font-size: 18px !important;
    }

    .dropdown-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .subRow {
        color: #fff !important;
    }

    .dropdown-item {
        width: 100%;
        margin-right: 0;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown-item select,
    .dropdown-item input {
        width: 100%;
        padding: 10px;
    }

    .radio-button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    .submit-order {
        padding: 12px 30px;
        font-size: 18px;
    }

    .fitment-card {
        display: inline-block;
        flex-shrink: 0;
        align-items: center;
        border: 1px solid #ddd;
        border-radius: 5px;
        min-width: 100%;
        max-width: 225px;
        padding: 10px;
        margin: 0px;
		margin-bottom: 10px;
        background-color: #f9f9f9;
        position: relative;
        transition: background-color 0.3s ease, border-color 0.3s ease;
        cursor: pointer;
        text-align: center;
    }

    .button-group-second {
        display: flex;
        gap: 10px;
        margin-top: 40px;
        margin-bottom: 30px;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

    .radio-button {
        padding: 15px 30px;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        cursor: pointer;
        border-radius: 5px;
        font-size: 16px;
        font-weight: 600;
    }

    .radio-button-call {
        padding: 10px 40px;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        cursor: pointer;
        border-radius: 5px;
        font-size: 16px;
        font-weight: 600;
    }

    .radio-button.selected {
        background-color: #ffd816;
        border: 1px solid #ffd816;
        color: #fff;
    }

    .radio-button-call.selected {
        background-color: #ffd816;
        border: 1px solid #ffd816;
        color: #333;
        font-weight: 600;
    }

    .radio-button:disabled {
        background-color: #cccccc;
        border: 1px solid #ccc;
        color: #666666;
        cursor: not-allowed;
    }

    .radio-button.disabled {
        opacity: 0.5;
    }

    .radio-button-call:disabled {
        background-color: #cccccc;
        border: 1px solid #ccc;
        color: #666666;
        cursor: not-allowed;
    }

    .radio-button-call.disabled {
        opacity: 0.5;
    }

    .dropdown-group-input {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 15px;
    }

    .dropdown-group-input-start {
        display: flex;
        flex-direction: column;
        justify-content: left;
        margin-bottom: 5px;
    }

    .message-container {
        flex-direction: row;
        display: flex;
        width: 100%;
        max-width: 100%;
    }

    .saveOrderWidth {
        width: 100%;
    }

    .saveOrderTitle {
        width: 100%;
        text-align: center;
        margin: 10px 0;
        font-size: 18px;
        color: #fff;
    }

    .dropdown-item-input {
        display: flex;
        flex-direction: column;
    }

        .dropdown-item-input input {
            width: 100%;
            margin: 10px !important;
            padding: 20px 10px !important;
            border: 1px solid #ddd !important;
            border-radius: 4px;
            background-color: #f9f9f9 !important;
            font-size: 14px;
            height: 28px;
            margin-left: 0px !important;
        }

    #subtotal-container {
        flex-direction: column;
        justify-content: space-between;
        display: flex;
        margin-top: 20px;
        width: 100%;
    }

    .subRow {
        display: flex;
        flex-direction: row;
        margin-bottom: 10px;
        justify-content: space-between;
    }

    .calendar-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
		padding: 0px;
        flex-direction: column;
		align-items: center;
    }

    #calendar-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-left: -15px;
    }

    /*     #time-slot-container {
        display: block;
        flex: 1 1 0%;
        margin-left: 0px;
        width: 100%;
    } */

    #subtotal-schedule-container {
        flex-direction: column;
        justify-content: space-between;
        display: flex;
        margin-top: 20px;
        width: 100%;
    }
}

/* Extra small screens - max-width 480px */
@media screen and (max-width: 900px) {
    .dropdown-item select,
    .dropdown-item input {
        padding: 12px;
    }

    .dropdown-group {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-bottom: 15px;
    }

    .submit-order {
        padding: 12px 25px;
        font-size: 18px;
    }

    .radio-button {
        font-size: 18px;
    }

    .radio-button-call {
        padding: 12px 40px;
        border: 1px solid #3b3c3b;
        background-color: #3b3c3b;
        color: #fff !important;
        cursor: pointer;
        border-radius: 5px;
        font-size: 16px;
        font-weight: 600;
    }
}
