﻿body {
}
/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap");

*,
*::after *::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter Tight", sans-serif;
    background: #fff;
    color: #20262e;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
}

html {
    font-family: "Inter Tight", sans-serif;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body {
    height: 100%;
    margin: 0;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}
.is-invalid {
    border-color: red;
}
/* Main CSS Start  */
.bg-overlay {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
    display: flex; /* Use flexbox */
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
    overflow-x: auto;
    overflow-y: auto;
    background-color: #151616;
}

.otp-input > .is-invalid {
    border-color: red;
}

/* Auth Card  */
.auth-card {
    width: 425px;
    min-width: 384px;
    background: #fff;
    border-radius: 16px;
    padding: 12px 20px 24px 20px;
}

.auth-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 130%;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9e9ea;
}

    .auth-card-title::before {
        position: absolute;
        content: "";
        width: 64px;
        height: 4px;
        bottom: 0;
        left: 0;
        background-color: #1ac906;
        clip-path: polygon(0 0, 100% 0, 87.5% 100%, 0 100%);
    }

.auth-card-icon {
    text-align: center;
    margin-top: 24px;
}

.auth-card-head-content {
    text-align: center;
    margin-top: 8px;
}

    .auth-card-head-content h3 {
        font-size: 25px;
        font-weight: 700;
        line-height: 120%;
        margin: 0;
        margin-bottom: 8px;
    }

    .auth-card-head-content p {
        margin: 0;
        font-size: 14px;
        font-weight: 500;
        line-height: 120%;
        color: #2c3333;
    }

.auth-card-form-body {
    margin-top: 24px;
}

.auth-card-form .form-group label {
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    margin-bottom: 8px;
    display: block;
}

.auth-card-form .form-group input {
    width: 100%;
    height: 48px;
    padding: 12px;
    border: 2px solid #e9e9ea;
    border-radius: 8px;
    font-size: 16px;
    font-family: "Inter Tight", sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

    .auth-card-form .form-group input:focus {
        border: 2px solid #10480a;
    }

.auth-card-btn {
    margin-top: 12px;
}

.primary-btn {
    font-family: "Inter Tight", sans-serif;
    display: block;
    width: 100%;
    background: #10480a;
    color: #fff;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    height: 48px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .primary-btn:hover {
        background: #20262e;
    }

/* Verify OTP  */
.otp-input {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

    .otp-input input {
        text-align: center;
    }

.verifyOTP-card button {
    outline: none;
}

    .verifyOTP-card button[disabled] {
        cursor: no-drop;
        opacity: 0.8;
        background: #10480a !important;
    }

#verification-result {
    margin: 0;
}

/* Payment  */
.payment-container {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    gap: 28px;
    max-width: 1000px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
}

.payment-info {
    width: 86%;
}

.account-info {
    width: 100%;
    margin-bottom: 20px;
}

    .account-info h2 {
        display: flex;
        align-items: center;
        margin: 0;
        gap: 4px;
        font-size: 18px;
        font-weight: 600;
        line-height: 150%;
        margin-bottom: 12px;
    }

.info-grid {
    display: grid;
    grid-template-columns: 185px 1fr;
    gap: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e9e9ea;
    background: #fcfcfc;
    padding: 16px;
}

.info-label {
    color: #767a7a;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    line-height: 150%;
}

.subscription-invoice {
    width: 100%;
}

    .subscription-invoice h2 {
        display: flex;
        align-items: center;
        font-size: 18px;
        margin: 0;
        gap: 4px;
        font-weight: 600;
        line-height: 150%;
        margin-bottom: 12px;
    }

.invoice-span {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.invoice-list {
    border-radius: 8px;
    border: 1px solid #e9e9ea;
    background: #fcfcfc;
    padding: 12px;
    max-height: 50vh;
    overflow: auto;
}

.invoice-item {
    display: grid;
    grid-template-columns: 30px 1fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    align-items: center;
    transition: background-color 0.2s;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    background: #f3f3f3;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    font-size: 14px;
    font-weight: 700;
    line-height: 120%;
}

    .invoice-item:last-child {
        margin: 0;
    }

    .invoice-item span {
        font-size: 12px;
        font-weight: 500;
        line-height: 120%;
        display: block;
        color: #767a7a;
        margin-bottom: 4px;
    }

.payment-container .invoice-item input[type="radio"]:checked + .custom-radio {
    border-color: #20262e;
}

    .payment-container
    .invoice-item
    input[type="radio"]:checked + .custom-radio::after {
        background-color: #20262e;
    }

.payment-container .invoice-item .custom-radio {
    width: 24px;
    height: 24px;
}

.payment-container
.invoice-item
input[type="radio"]:checked + .custom-radio::after {
    width: 12px;
    height: 12px;
}

.invoice-item.selected {
    border: 1px solid #282840;
}

.invoice-item .custom-radio {
    border: 2px solid #20262e;
    margin: 0;
}

.item-radio {
    display: flex;
    align-items: center;
}

/* JavaScript to make selection work */
.radio-container {
    display: flex;
    align-items: center;
}

.custom-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    display: inline-block;
}

.payment-container input[type="radio"] {
    display: none;
}

    .payment-container input[type="radio"]:checked + .custom-radio {
        border-color: #fff;
    }

        .payment-container input[type="radio"]:checked + .custom-radio::after {
            content: "";
            position: absolute;
            width: 10px;
            height: 10px;
            background-color: #fff;
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

.payment-section {
    width: 46%;
    background-color: #12121f;
    border-radius: 16px;
    padding: 20px;
}

.total-amount {
    background-color: #2d2d47;
    color: #fff;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    margin-bottom: 72px;
    display: flex;
    justify-content: space-between;
}

.total-amount-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
}

.total-amount-value {
    line-height: 150%;
    font-size: 16px;
    font-weight: 600;
}

.payment-option-title {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    color: #ededff;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.payment-option {
    background-color: #2d2d47;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    color: white;
    cursor: pointer;
    border: 2px solid transparent;
    height: 45px;
}

    .payment-option.selected {
        border: 2px solid #6c6cb4;
    }

.payment-icon {
    max-width: 100%;
    height: 24px;
    object-fit: contain;
}

.pay-button {
    background: #3249b9;
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
    font-family: "Inter Tight", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    cursor: pointer;
}

    .pay-button:hover {
        background-color: #2546b5;
    }

@media (max-width: 768px) {
    .payment-container {
        flex-direction: column;
    }

    .subscription-invoice,
    .payment-section {
        width: auto;
    }

    .subscription-invoice {
        margin-bottom: 0px;
    }

    .payment-info {
        width: 100%;
    }

    .payment-container {
        max-width: 100%;
        overflow-y: scroll;
        height: 100%;
        position: relative;
        top: 24px;
    }

    .payment-options {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .invoice-item {
        grid-template-columns: repeat(2, 1fr);
        position: relative;
        padding-left: 56px;
    }

    .item-radio {
        position: absolute;
        left: 12px;
    }

    .subscription-invoice h2,
    .account-info h2 {
        font-size: 16px;
    }

    .total-amount {
        margin-bottom: 16px;
    }
}

@media only screen and (max-width: 480px) {
    .auth-card {
        width: 80%;
        min-width: 80%;
    }

    .otp-input {
        gap: 8px;
    }

    .auth-card-form .form-group input {
        height: 14px;
    }
}
