/**
 * Payment modal styles.
 *
 * Extracted from blueprint.html so /blueprint and /quick-builds share one
 * stylesheet instead of maintaining divergent copies.
 */

/* RAZORPAY MODAL */
.rp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease
}

.rp-overlay.active {
    opacity: 1;
    visibility: visible
}

.rp-modal {
    background: linear-gradient(160deg, rgba(20, 20, 35, .98), rgba(12, 12, 20, .98));
    border: 1px solid rgba(99, 102, 241, .2);
    border-radius: 24px;
    padding: 44px 40px;
    max-width: 460px;
    width: 90%;
    position: relative;
    transform: translateY(20px) scale(.97);
    transition: transform .4s var(--ease);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(99, 102, 241, .1)
}

.rp-overlay.active .rp-modal {
    transform: translateY(0) scale(1)
}

.rp-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--txt3);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all .2s
}

.rp-close:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff
}

.rp-modal h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -.02em
}

.rp-modal .rp-sub {
    color: var(--txt3);
    font-size: .85rem;
    margin-bottom: 28px
}

.rp-modal .rp-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--pill);
    background: rgba(99, 102, 241, .08);
    border: 1px solid rgba(99, 102, 241, .15);
    font-size: .82rem;
    font-weight: 600;
    color: #818cf8;
    margin-bottom: 24px
}

.rp-field {
    margin-bottom: 16px
}

.rp-field label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--txt2);
    margin-bottom: 6px;
    letter-spacing: .03em
}

.rp-field input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    color: #fff;
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s
}

.rp-field input:focus {
    border-color: rgba(99, 102, 241, .4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1)
}

.rp-field input::placeholder {
    color: rgba(255, 255, 255, .2)
}

.rp-field .rp-error {
    color: #EA4335;
    font-size: .72rem;
    margin-top: 4px;
    display: none
}

.rp-field.has-error input {
    border-color: rgba(234, 67, 53, .5)
}

.rp-field.has-error .rp-error {
    display: block
}

.rp-pay-btn {
    width: 100%;
    padding: 15px 32px;
    background: #6366f1;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all .3s var(--ease);
    box-shadow: 0 0 24px rgba(99, 102, 241, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    position: relative;
    overflow: hidden
}

.rp-pay-btn:hover:not(:disabled) {
    background: #818cf8;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, .35)
}

.rp-pay-btn:disabled {
    opacity: .6;
    cursor: not-allowed
}

.rp-pay-btn .rp-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rpSpin .6s linear infinite
}

.rp-pay-btn.loading .rp-spinner {
    display: block
}

.rp-pay-btn.loading .rp-btn-text {
    display: none
}

@keyframes rpSpin {
    to {
        transform: rotate(360deg)
    }
}

.rp-secure {
    text-align: center;
    margin-top: 14px;
    font-size: .72rem;
    color: var(--txt3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px
}

/* SUCCESS STATE */
.rp-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease
}

.rp-success-overlay.active {
    opacity: 1;
    visibility: visible
}

.rp-success-card {
    background: linear-gradient(160deg, rgba(20, 20, 35, .98), rgba(12, 12, 20, .98));
    border: 1px solid rgba(52, 168, 83, .25);
    border-radius: 24px;
    padding: 52px 44px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .5);
    transform: scale(.9);
    transition: transform .5s var(--ease)
}

.rp-success-overlay.active .rp-success-card {
    transform: scale(1)
}

.rp-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(52, 168, 83, .12);
    border: 2px solid rgba(52, 168, 83, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: rpPop .5s var(--ease) .2s both
}

.rp-success-icon svg {
    width: 32px;
    height: 32px;
    stroke: #34A853;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

@keyframes rpPop {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.rp-success-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff
}

.rp-success-card p {
    color: var(--txt2);
    font-size: .92rem;
    line-height: 1.65;
    margin-bottom: 20px
}

.rp-success-card .rp-details {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: left;
    margin-bottom: 28px;
    font-size: .82rem;
    color: var(--txt3)
}

.rp-success-card .rp-details span {
    color: var(--txt);
    font-weight: 600
}

.rp-success-done {
    padding: 13px 36px;
    background: #34A853;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 0 20px rgba(52, 168, 83, .25)
}

.rp-success-done:hover {
    background: #3dbd5d;
    transform: translateY(-2px)
}
