body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f7f7f7 !important;
    font-family: Arial, sans-serif;
}

.checkout-container {
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 15px;
    border: 2px solid rgba(7, 180, 82, 0.351);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    position: relative;
}

.checkout-container-withoutcard {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 15px;
    border: 2px solid rgba(7, 180, 82, 0.351);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    position: relative;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: rgba(50, 50, 50, 0.85) !important;
}

h3 {
    text-align: center;
    margin-bottom: 20px;
    color: rgba(50, 50, 50, 0.85) !important;
}

.form-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.personal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 2px; /* Push card-info lower on desktop */
}

input {
    display: block;
    width: calc(100% - 20px);
    margin: 8px auto !important;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: white;
    color: black;
}

 select {
    display: block;
    width: calc(100% - 20px);
    margin: 8px auto !important;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: white;
    color: black;
}

select.half {
    display: block;
    width: calc(50% - 20px);
    margin: 8px auto !important;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: white;
    color: black;
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.row1 {
    display:flex;
    justify-content: space-between;
}

input#CCCode, input#CCCode2 {
    width: calc(50% - 5px);
    display: flex-start !important;
}

input#expiry-date, input#ccv {
    width: calc(50% - 5px);
    display: inline-block;
}

input.completed {
    border-color: rgba(7, 180, 82, 0.651);
}

input[type="text"].half-width {
    width: calc(50% - 20px);
    display: inline-block;
}

input[type="text"].half-less {
    width: calc(50% + 10px);
    display: inline-block;
}

input[type="text"].half-more {
    width: calc(50% - 30px);
    display: inline-block;
}

input[type="text"]:focus {
    outline: 1px solid rgba(7, 180, 82, 0.551);
    border-color: rgba(7, 180, 82, 0.551);
}

input.error {
    border: 2px solid red;
    outline: none;
    animation: shake 0.2s ease-in-out;
}

select:focus {
    outline: 1px solid rgba(7, 180, 82, 0.551);
    border-color: rgba(7, 180, 82, 0.551);
}

select option {
    color: black !important; /* Normal text color for other options */
}

select {
    color: grey !important; /* Default color for the placeholder */
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

button {
    display: inline-block;
    background: rgba(7, 180, 82, 0.851);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    width: 100%;
}

button:hover {
    background: rgba(7, 180, 82, 1);
}

button.back-button {
    background: none;
    color: grey;
    font-size: 30px;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 20px;
    padding: 0;
    width: 10%;
}

button.back-button:hover {
    color: black;
}

.logos {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logos img {
    width: 30px;
    height: auto;
    padding-left: 5px;
    padding-right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-columns {
        flex-direction: column; /* Stack columns on small screens */
        gap: 0; /* Remove gap for a cleaner look */
    }

    .card-info {
        margin-top: 0; /* Remove margin on smaller screens */
    }

    .checkout-container {
        max-width: 95%; /* Adjust width for smaller screens */
    }
}

.loading-overlay {
    align-items: center;
    background: hsla(0,0%,100%,.7);
    display: none;
    height: 100%;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 99999
}

.loadable.loading .loading-overlay {
    display: flex
}