:root {
    --primary-color: #0054a1;
    --secondary-color: #FFD600;
    --input-border-color: #ced4da;
}

.form-wrapper {
    max-width: 768px;
    margin: 0 auto;
    padding: 20px;
}

form {
    background-color: #ffffff;
    padding: 20px;
}

form h1 {
    text-align: center;
}

.form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 40px 0px;
    width: 100%;
}

.radio-group {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

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

.radio-group label {
    display: flex;
    flex-direction: column;
    width: 40%;
    flex-basis: 100%;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 15px;
}

.radio-group input[type="radio"]:checked + label {
    border-width: 2px;
    border-style: solid;
    border-image-slice: 1;
    border-color: var(--primary-color);
}

#summary {
    margin-top: 40px;
}

#summary p {
    margin: 5px 0;
}

@media (min-width: 768px) {
    .radio-group label {
        flex-basis: auto;
    }
}


  
/* CSS for Billing section */
#billing {
    margin-top: 30px;
    margin-bottom: 0px;
}
  
#billing h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.new-input-group {
    margin: 10px 0px;
    width: 100%;
    border-radius: 0px;
}

.new-input-group label {
    font-weight: bold;
}

.floating-input {
    width: 100%;
    border-radius: 15px;
}

.new-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-group input::placeholder {
    color: #999;
}

.input-group input[type="text"][name="cardNumber"] {
    font-family: "Credit Card Icons";
    padding-left: 40px;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 25px auto;
}

.input-group input[type="text"][name="expiryDate"],
.input-group input[type="text"][name="cvv"] {
    width: 60px;
}
  
.company-input-group, .additional-address-input-group {
    display: none;
}

.form-switch {
    margin: 20px 0px;
}


#additional-address {
    margin: 0px;
}


.checkout-payment-icon {
    width: 50%;
}

#paymentMethod {
    margin-bottom: 40px;
}

#payment-radio-group {
    display: flex;
    justify-content: space-evenly;
}

#payment-radio-group label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30%;
}


#summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.summary-row {
    width: 30%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}



.ind-section {
    width: 80%;
    margin: 30px auto;
}


/* Bootstrap modifications */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}




/* Stripe CSS */


.stripe-payment-form-wrapper {
    justify-content: center;
    width: 80%;
}

#stripe-payment-form {
    width: 100%;
    align-self: center;
    box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
        0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
    border-radius: 7px;
    padding: 40px;
}

@media screen and (max-width: 768px) {
    .stripe-payment-form-wrapper {
        width: 100%;
    }

    #stripe-payment-form {
        width: 100%;
        min-width: initial;
    }
}
    
.hidden {
    display: none;
}

#payment-message {
    color: rgb(105, 115, 134);
    font-size: 16px;
    line-height: 20px;
    padding-top: 12px;
    text-align: center;
}

#payment-element {
    margin-bottom: 24px;
}

.payment-info {
    margin-top: 10px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
}

.payment-icons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.payment-icons > img {
    width: 40px;
    margin-right: 10px;
}

.payment-info-link {
    text-decoration: none;
    color: var(--primary-color);
    font-size: small;
}

.buy-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}


button {
    display: block;
    margin-top: 20px;
    padding: 20px 20px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    cursor: pointer;
    border: none;
    width: 100%;
    cursor: pointer;
    display: block;
    transition: all 0.2s ease;
}

button:hover {
    filter: contrast(115%);
}

button:disabled {
    opacity: 0.5;
    cursor: default;
}

/* spinner/processing state, errors */
.spinner,
.spinner:before,
.spinner:after {
    border-radius: 50%;
}

.spinner {
    color: #ffffff;
    font-size: 22px;
    text-indent: -9999px;
    margin: 0px auto;
    position: relative;
    width: 20px;
    height: 20px;
    box-shadow: inset 0 0 0 2px;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

.spinner:before,
.spinner:after {
    position: absolute;
    content: "";
}

.spinner:before {
    width: 10.4px;
    height: 20.4px;
    background: #5469d4;
    border-radius: 20.4px 0 0 20.4px;
    top: -0.2px;
    left: -0.2px;
    -webkit-transform-origin: 10.4px 10.2px;
    transform-origin: 10.4px 10.2px;
    -webkit-animation: loading 2s infinite ease 1.5s;
    animation: loading 2s infinite ease 1.5s;
}

.spinner:after {
    width: 10.4px;
    height: 10.2px;
    background: #5469d4;
    border-radius: 0 10.2px 10.2px 0;
    top: -0.1px;
    left: 10.2px;
    -webkit-transform-origin: 0px 10.2px;
    transform-origin: 0px 10.2px;
    -webkit-animation: loading 2s infinite ease;
    animation: loading 2s infinite ease;
}

@-webkit-keyframes loading {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes loading {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@media only screen and (max-width: 600px) {
    form {
        width: 100%;
        min-width: initial;
        background-color: transparent;
    }
}

