* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loader Styles (Unchanged) */
.loader {
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
}
.truckWrapper {
    width: 200px;
    height: 100px;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: flex-end;
    overflow-x: hidden;
}
.truckBody {
    width: 130px;
    height: fit-content;
    margin-bottom: 6px;
    animation: motion 1s linear infinite;
}
@keyframes motion {
    0% { transform: translateY(0px); }
    50% { transform: translateY(3px); }
    100% { transform: translateY(0px); }
}
.truckTires {
    width: 130px;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 10px 0px 15px;
    position: absolute;
    bottom: 0;
}
.truckTires svg {
    width: 24px;
}
.road {
    width: 100%;
    height: 1.5px;
    background-color: #282828;
    position: relative;
    bottom: 0;
    align-self: flex-end;
    border-radius: 3px;
}
.road::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 100%;
    background-color: #282828;
    right: -50%;
    border-radius: 3px;
    animation: roadAnimation 1.4s linear infinite;
    border-left: 10px solid white;
}
.road::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 100%;
    background-color: #282828;
    right: -65%;
    border-radius: 3px;
    animation: roadAnimation 1.4s linear infinite;
    border-left: 4px solid white;
}
.lampPost {
    position: absolute;
    bottom: 0;
    right: -90%;
    height: 90px;
    animation: roadAnimation 1.4s linear infinite;
}
@keyframes roadAnimation {
    0% { transform: translateX(0px); }
    100% { transform: translateX(-350px); }
}

/* Modern UI Styles (Scaled Down) */
body {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}
.container {
    max-width: 900px; /* Reduced from 1200px */
    margin: 1rem auto; /* Reduced from 2rem */
    padding: 0.5rem; /* Reduced from 1rem */
    opacity: 0;
    transition: opacity 0.5s ease;
}
.container.visible {
    opacity: 1;
}
.title {
    font-size: 1.25rem; /* Reduced from 1.875rem */
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    position: relative;
    display: inline-block;
}
.title::after {
    content: '';
    position: absolute;
    bottom: -0.3rem; /* Adjusted for smaller scale */
    left: 0;
    width: 50%;
    height: 2px; /* Reduced from 3px */
    background: #dc2626;
    animation: underline 1s ease-in-out infinite alternate;
}
@keyframes underline {
    0% { width: 50%; }
    100% { width: 100%; }
}
.input-box {
    margin-bottom: 0.75rem; /* Reduced from 1.25rem */
    position: relative;
}
.input-box span {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.3rem; /* Reduced from 0.5rem */
    font-size: 0.9rem; /* Reduced from 1.1rem */
}
.input-box input, .input-box select {
    width: 100%;
    padding: 0.5rem; /* Reduced from 0.875rem */
    border: none;
    border-bottom: 1.5px solid #d1d5db; /* Reduced from 2px */
    border-radius: 0.15rem 0.15rem 0 0; /* Reduced from 0.25rem */
    font-size: 0.875rem; /* Reduced from 1rem */
    color: #1f2937;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Reduced shadow */
}
.input-box input:focus, .input-box select:focus {
    border-bottom-color: #dc2626;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.2); /* Reduced shadow */
    outline: none;
    transform: translateY(-1px); /* Reduced from -2px */
}
.flex {
    display: flex;
    gap: 1rem; /* Reduced from 1.5rem */
    flex-wrap: wrap;
}
.flex .input-box {
    flex: 1 1 100%;
}
.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Reduced from 1rem */
    padding: 0.75rem; /* Reduced from 1rem */
    border-radius: 0.3rem; /* Reduced from 0.5rem */
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); /* Reduced shadow */
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
}
.payment-option:hover {
    transform: translateY(-2px); /* Reduced from -3px */
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.2); /* Reduced shadow */
    background: linear-gradient(to right, #dc2626, #b91c1c);
    color: white;
}
.payment-option:hover i, .payment-option:hover span {
    color: white;
}
.payment-option i {
    font-size: 1.25rem; /* Reduced from 1.75rem */
    color: #dc2626;
    transition: color 0.3s ease;
}
.payment-option span {
    font-size: 1rem; /* Reduced from 1.25rem */
    font-weight: 500;
    color: #1f2937;
}
#card-details img {
    max-width: 120px; /* Reduced from 180px */
    margin: 0.5rem 0; /* Reduced from 1rem */
    border-radius: 0.15rem; /* Reduced from 0.25rem */
}
#card-errors {
    color: #dc2626;
    margin-top: 0.3rem; /* Reduced from 0.5rem */
    font-weight: 500;
    font-size: 0.875rem; /* Added for consistency */
}
.btn {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    color: white;
    padding: 0.75rem 1.5rem; /* Reduced from 1rem 2rem */
    font-size: 0.875rem; /* Reduced from 1.125rem */
    font-weight: 600;
    border: none;
    border-radius: 0.3rem; /* Reduced from 0.5rem */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3); /* Reduced shadow */
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn:hover::before {
    width: 200%;
    height: 200%;
}
.btn:hover {
    transform: translateY(-2px); /* Reduced from -3px */
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5); /* Reduced shadow */
}
#discountMessage {
    color: #16a34a;
    margin-top: 0.3rem; /* Reduced from 0.5rem */
    font-weight: 500;
    font-size: 0.875rem; /* Added for consistency */
}
.hidden {
    display: none;
}

/* Responsive Design (Adjusted) */
@media (min-width: 768px) {
    .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem; /* Reduced from 2rem */
    }
    .flex .input-box {
        flex: 1 1 45%;
    }
    .btn {
        width: auto;
        max-width: 200px; /* Reduced from 300px */
    }
    #card-details .flex .input-box {
        flex: 1 1 30%;
    }
}
@media (max-width: 640px) {
    .payment-option {
        padding: 0.5rem; /* Reduced from 0.75rem */
    }
    .payment-option i {
        font-size: 1rem; /* Reduced from 1.5rem */
    }
    .payment-option span {
        font-size: 0.875rem; /* Reduced from 1rem */
    }
    .btn {
        padding: 0.5rem 1rem; /* Reduced from 0.875rem 1.5rem */
        font-size: 0.875rem; /* Reduced from 1rem */
    }
    #card-details .flex .input-box {
        flex: 1 1 100%;
    }
}