* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #111827;
    min-height: 100vh;
}


/* =========================
   MAIN PAGE
========================= */

.page {
    max-width: 600px;
    margin: 0 auto;
    padding: 70px 20px;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.hero p {
    color: #6b7280;
    font-size: 16px;
}


/* =========================
   PAYMENT AMOUNT BUTTONS
========================= */

.amount-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.amount-button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    background: #111827;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.amount-button:hover {
    opacity: 0.9;
}

.amount-button:active {
    transform: scale(0.98);
}


/* =========================
   PAYMENT FORM MODAL
========================= */

.modal {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 1000;

    background: rgba(0, 0, 0, 0.55);

    padding: 20px;

    align-items: center;
    justify-content: center;
}

.payment-card {
    width: 100%;
    max-width: 430px;

    background: white;

    border-radius: 20px;

    padding: 30px;

    position: relative;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.2);

    animation: cardIn 0.2s ease;
}

@keyframes cardIn {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================
   CLOSE BUTTON
========================= */

.close-button {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 35px;
    height: 35px;

    border: none;

    background: transparent;

    font-size: 28px;

    color: #6b7280;

    cursor: pointer;
}


/* =========================
   PAYMENT HEADER
========================= */

.payment-header {
    margin-bottom: 25px;
}

.payment-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

#selectedAmount {
    font-size: 18px;
    font-weight: 700;
}


/* =========================
   FORM
========================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;

    padding: 14px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    background: white;

    color: #111827;

    font-size: 16px;

    outline: none;

    transition: border 0.15s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #111827;
}

.form-group select {
    cursor: pointer;
}


/* =========================
   PAYMENT NOTICE
========================= */

.payment-notice {
    margin-bottom: 18px;

    padding: 12px;

    background: #f3f4f6;

    border-radius: 10px;
}

.payment-notice p {
    font-size: 13px;

    color: #6b7280;

    line-height: 1.5;
}

.payment-notice p + p {
    margin-top: 6px;
}


/* =========================
   PAY BUTTON
========================= */

.pay-button {
    width: 100%;

    margin-top: 5px;

    padding: 16px;

    border: none;

    border-radius: 10px;

    background: #16a34a;

    color: white;

    font-size: 17px;

    font-weight: 600;

    cursor: pointer;

    transition: opacity 0.15s ease;
}

.pay-button:hover {
    opacity: 0.9;
}

.pay-button:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}


/* =========================
   STATUS POPUP
========================= */

.status-modal {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 2000;

    background: rgba(0, 0, 0, 0.58);

    padding: 20px;

    align-items: center;

    justify-content: center;

    backdrop-filter: blur(3px);
}


/* =========================
   STATUS CARD
========================= */

.status-card {
    width: 100%;

    max-width: 390px;

    background: white;

    border-radius: 22px;

    padding: 35px 28px 28px;

    text-align: center;

    position: relative;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.25);

    animation: statusCardIn 0.25s ease;
}

@keyframes statusCardIn {

    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================
   STATUS CLOSE
========================= */

.status-close {
    position: absolute;

    top: 10px;
    right: 13px;

    width: 34px;
    height: 34px;

    border: none;

    background: transparent;

    color: #6b7280;

    font-size: 27px;

    cursor: pointer;
}


/* =========================
   STATUS ICON
========================= */

.status-icon {
    width: 68px;
    height: 68px;

    margin: 0 auto 18px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 32px;

    font-weight: bold;
}


/* =========================
   STATUS TEXT
========================= */

.status-card h2 {
    font-size: 24px;

    margin-bottom: 10px;
}

.status-message {
    color: #6b7280;

    font-size: 15px;

    line-height: 1.55;

    margin-bottom: 18px;
}


/* =========================
   REFERENCE
========================= */

.status-reference {
    background: #f3f4f6;

    border-radius: 10px;

    padding: 11px;

    margin-bottom: 20px;

    font-size: 12px;

    color: #4b5563;

    word-break: break-word;
}


/* =========================
   STATUS BUTTON
========================= */

.status-button {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 10px;

    background: #111827;

    color: white;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;
}

.status-button:hover {
    opacity: 0.9;
}


/* =========================
   SENT STATE
========================= */

.status-card.sent .status-icon {
    background: #fff7ed;

    color: #f97316;
}

.status-card.sent .status-button {
    background: #f97316;
}


/* =========================
   PENDING STATE
========================= */

.status-card.pending .status-icon {
    background: #eff6ff;

    color: #2563eb;
}

.status-card.pending .status-button {
    background: #2563eb;
}


/* =========================
   SUCCESS STATE
========================= */

.status-card.success .status-icon {
    background: #ecfdf5;

    color: #16a34a;
}

.status-card.success .status-button {
    background: #16a34a;
}


/* =========================
   ERROR STATE
========================= */

.status-card.error .status-icon {
    background: #fef2f2;

    color: #dc2626;
}

.status-card.error .status-button {
    background: #dc2626;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {

    .page {
        padding: 45px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .payment-card {
        padding: 25px 20px;
    }

    .status-card {
        padding: 32px 22px 24px;
    }

}