@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Ensure that the input group is aligned and styled properly */
.input-group {
    display: flex;
    align-items: center;
}

#VehicleReg {
    text-transform: uppercase;
    font-size: 18px;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px; /* Rounded corners for input */
    width: calc(100% - 50px); /* Adjust width to account for button */
    background-color: white;
    color: black;
    font-weight: bold;
    height: 40px; /* Set a fixed height for consistency */
}

#vehicle-form input[type="text"]::placeholder {
    color: black;
    opacity: 0.75;
}

button.action.submit.primary {
    background-color: #006bb4;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 0 4px 4px 0; /* Rounded corners for button */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px; /* Match the height of the input field */
    width: auto;
}

button.action.submit.primary i {
    color: white;
    font-size: 18px;
}

.vehicle-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.vehicle-info,
.vehicle-details {
    flex: 1 1 50%;
    box-sizing: border-box;
}

.vehicle-details {
    background-color: #1d1d1d;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.vehicle-details h2 {
    text-align: center;
    color: white;
}

.vehicle-details p {
    color: white;
}

.existing-parts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.part-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.part-item p {
    color: black;
}

.part-item:hover {
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

.item-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 10px;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .existing-parts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.vrm-category-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.vrm-category-item {
    display: flex;
    flex-direction: column;
}

.vrm-category-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 10px;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .vrm-category-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.vehicle-error {
    color: white;
    background-color: #ff0033;
    padding: 10px;
}

.vrm-form-container {
    background-color: #1d1d1d;
    color: white;
    padding: 20px;
}

#vehicle-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.actions {
    margin-top: 5px;
    margin-bottom: 5px;
}

.vrm-main-category {
    color: white;
    padding: 5px;
}

.vrm-sub-category {
    background-color: #1d1d1d;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid white;
    padding: 5px;
}

.vrm-sub-category:hover {
    color: white;
    text-decoration: none;
}

.change-vehicle-btn button {
    width: 100px !important;
    border-radius: 0% !important;
}