p {
    font-size: 18px !important;
}

    p.small-text {
        font-size: 14px !important;
    }

@media (min-width: 768px) {
    h1 {
        font-size: 48px !important;
    }

    span.custom-text {
        font-size: 18px !important;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 36px !important;
    }

    span.custom-text {
        font-size: 14px !important;
    }
}

.continue-margin-top {
    margin-top: calc(68 * (100vw / 2020));
}

@media only screen and (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
}
@media(min-width: 768px) {
    .hide-on-desktop {
        display: none;
    }
}


.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 5px solid #000;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.standard-separator {
    width: auto;
    height: 0px;
    border: 1px solid #91919A;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    margin-top: 25px;
    margin-bottom: 25px;
}

.first-name-width {
    width: 61.44%;
}

.last-name-width {
    width: 61.5%;
}

.email-width {
    width: 73.1%;
}

.address1-width {
    width: 100%;
}

.address2-width {
    width: 100%;
}

.postalcode-width {
    width: 43.47%;
}

.city-width {
    width: 61.44%;
}

.country-width {
    width: 49.31%;
}


.btn-group-style-lg .btn:hover,
.btn-group-style-sm .btn:hover {
    transform: none !important;
    transition: transform 0.3s ease-in-out !important;
}

.btn-group-style-lg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 110px));
    grid-row-gap: 0px;
    grid-column-gap: 20px;
}

.btn-group-style-sm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 85px));
    grid-row-gap: 0px;
    grid-column-gap: 10px;
}

    .btn-group-style-sm .btn {
        margin-top: 0.2rem !important;
        width: 80px !important;
        height: 80px !important;
        font-size: 1.5rem !important;
        line-height: 74px !important;
        margin-right: 1rem !important;
        justify-content: space-between;
    }

@media(max-width:400px) {
    .btn-group-style-sm {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(70px, 75px));
        grid-row-gap: 0px;
        grid-column-gap: 5px;
        justify-content: space-between;
    }

        .btn-group-style-sm .btn {
            margin-top: 0.2rem !important;
            width: 70px !important;
            height: 70px !important;
            font-size: 1.35rem !important;
            line-height: 64px !important;
            margin-right: 0.8rem !important;
        }
}

.continue-button {
    width: auto;
    max-width: none;
    display: block;
}

.alternate-continue-button {
    width: 100% !important;
    max-width: 400px !important;
    display: block;
}

@media(max-width: 768px){
    .continue-button {
        width: 100% !important;
        max-width: 400px !important;
    }
    .form-control{
        width: 100% !important;
    }

    .address1-width,
    .address2-width,
    .postalcode-width,
    .city-width,
    .country-width,
    .first-name-width,
    .last-name-width,
    .email-width {
        width: 100% !important;
    }
}

@media(min-width: 768px) {
    .second-row {
        margin-top: 20px;
    }
    .pay-now-button {
        width: 277px !important;
    }
}

@media (min-width: 575px) and (max-width: 767px) {
    .continue-button {
        width: 100% !important;
    }
    .pay-now-button {
        width: 100% !important;
    }
}

/* Bank Authorization Modal Styles */
.bank-auth-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.bank-auth-modal.show {
    display: flex;
}

.bank-auth-content {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.payment-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
}

.mastercard-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mastercard-circles {
    position: relative;
    width: 40px;
    height: 25px;
}

.circle {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.circle.red {
    background-color: #EB001B;
    left: 0;
    z-index: 1;
}

.circle.orange {
    background-color: #F79E1B;
    right: 0;
    z-index: 2;
}

.logo-text {
    text-align: left;
}

.mastercard-text {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    line-height: 1;
}

.securecode-text {
    font-size: 12px;
    color: #666;
    line-height: 1;
    margin-top: 2px;
}

.divider {
    width: 1px;
    height: 30px;
    background-color: #ddd;
}

.visa-logo {
    text-align: left;
}

.verified-text {
    font-size: 12px;
    color: #666;
    line-height: 1;
}

.visa-text {
    font-size: 18px;
    font-weight: 700;
    color: #1A1F71;
    line-height: 1;
    margin-top: 2px;
}

.countdown-timer {
    margin-bottom: 30px;
}

.timer-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: #007bff;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

.auth-instruction {
    margin-bottom: 20px;
}

.auth-instruction h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

.time-display {
    margin-bottom: 30px;
}

.time-box {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 12px 16px;
    display: inline-block;
}

.time-box span {
    font-size: 14px;
    color: #666;
}

.cancel-link {
    margin-top: 20px;
}

.cancel-link a {
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.cancel-link a:hover {
    text-decoration: underline;
}

/* Animation for timer */
@keyframes countdown {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 283;
    }
}

.timer-progress.animating {
    animation: countdown 210s linear forwards;
}

/* Responsive design */
@media (max-width: 480px) {
    .bank-auth-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .payment-logos {
        gap: 15px;
    }
    
    .mastercard-circles {
        width: 35px;
        height: 22px;
    }
    
    .circle {
        width: 22px;
        height: 22px;
    }
    
    .mastercard-text {
        font-size: 14px;
    }
    
    .visa-text {
        font-size: 16px;
    }
    
    .timer-circle {
        width: 100px;
        height: 100px;
    }
    
    .timer-text {
        font-size: 20px;
    }
    
    .auth-instruction h3 {
        font-size: 16px;
    }
}