.rate-main {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.odc-container {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 25px;
}

.odc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.odc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.odc-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .5s;
    border-radius: 30px;
}

.odc-switch-slider:after {
    content: "NO";
    position: absolute;
    color: white;
    font-size: 10px;
    font-weight: bold;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    transition: .5s;
}

.odc-switch-slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 5px;
    bottom: 5px;
    background-color: white;
    transition: .5s;
    border-radius: 100%;
}

#lwh_container{
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.rate-main input:checked+.odc-switch-slider {
    background-color: #194769;
}

.rate-main input:checked+.odc-switch-slider:after {
    content: "YES";
    left: 6px;
}

.rate-main input:checked+.odc-switch-slider:before {
    transform: translateX(25px);
}

.rate-main input.error {
    border: 1px solid red;
}

.error-msg {
    color: red;
    font-size: 12px;
    margin-top: 2px;
    display: none;
}

.rate-main-container {
    display: flex;
    width: 100%;
    /* height: 100vh; */
}

.vehicle-type-dropdown {
    position: relative;
    width: 100%;
    margin-top: 5px;
}

.vehicle-type-dropdown-button {
    width: 96%;
    padding: 8px 12px;
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
    min-height: 20px;
}

.vehicle-type-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.vehicle-type-dropdown-menu.show {
    display: block;
}

.vehicle-type-dropdown-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vehicle-type-dropdown-option:hover {
    background-color: #e6f3ff;
}

.vehicle-type-dropdown-option.selected {
    background-color: #d4edda;
}

.vehicle-type-dropdown-option-image {
    width: 50px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.vehicle-type-dropdown-option-text {
    flex: 1;
}

.vehicle-type-dropdown-selected-value {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.vehicle-type-dropdown-selected-image {
    width: 50px;
    height: auto;
    object-fit: contain;
}


#part_1 {
    width: 50%;
    padding: 20px 40px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rate-main label {
    font-weight: bold;
    margin-top: 6px;
    color: #194769;
}

.rate-main input, select {
    padding: 8px;
    margin-top: 4px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.rate-main button {
    background-color: #194769;
    color: #fff;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.rate-main button:hover {
    background-color: #12314d;
}

#part_2 {
    width: 50%;
    padding: 30px;
    background-color: #f0f6fc;
    display: flex;
    justify-content: center;
    align-items: center;
}

#popup_box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 100%;
    text-align: center;
    display: none;
}

#popup_box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #194769;
}

#popup_box input {
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

#popup_box button {
    width: auto;
    padding: 10px 20px;
    background-color: #194769;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    margin: 8px;
}

#popup_box button:hover {
    background-color: #12314d;
}

#final_rate {
    font-size: 26px;
    font-weight: bold;
    color: red;
    margin-top: 15px;
}

.rate-main hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

.circular-progress-indicator {
    width: 24px;
    height: 24px;
    border: 3px solid #e3f2fd;
    border-top: 3px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Media Queries for Mobile/Tablet */
@media (max-width: 900px) {
    .rate-main-container {
        flex-direction: column; /* Stack the two parts vertically */
    }

    #part_1,
    #part_2 {
        width: 100%; /* Take full width */
        height: auto; /* Let the height adjust as needed */
        padding: 20px; /* Ensure some space on all sides */
        box-sizing: border-box; /* Ensure padding doesn't affect the layout */
    }

    #part_2 {
        background-color: #f9f9f9; /* Slight change in background color for better contrast */
    }

    .vehicle-type-dropdown-button {
        width: 100%; /* Full width for the dropdown */
    }

    .vehicle-type-dropdown-option {
        font-size: 12px; /* Smaller font for smaller screens */
    }

    .rate-main h1 {
        font-size: 24px; /* Slightly smaller title for smaller screens */
    }

    .rate-main button {
        width: 100%; /* Full-width button */
        padding: 12px; /* More padding for better tap target on mobile */
    }

    /* Fix overlapping of switch by adjusting width and margin */
    .odc-container {
        width: 100%; /* Ensure the switch container takes full width */
        flex-wrap: wrap; /* Allow items to wrap if necessary */
        gap: 20px; /* Add some spacing between items */
    }

    .odc-switch {
        margin-top: 10px; /* Ensure space above the switch */
    }
}

