/* ======================================================
   MILSERVE PORTAL
   MAKE PAYMENT PAGE
   ====================================================== */

:root {

    --army-green: #3f4f2f;
    --army-green-dark: #28351e;
    --army-green-deep: #1d2817;
    --army-green-light: #65764d;

    --gold: #c5a45a;
    --gold-light: #d9bd78;

    --cream: #f4f1e8;
    --white: #ffffff;

    --text-dark: #20251d;
    --text-muted: #697064;

    --border: #dfe2d8;

    --success: #58733d;

    --shadow:
        0 15px 40px rgba(24, 32, 19, 0.10);

    --radius: 14px;
}


/* ======================================================
   RESET
   ====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        #eef0e9;

    color: var(--text-dark);

    min-height: 100vh;
}


/* ======================================================
   HEADER
   ====================================================== */

.payment-header {

    background:
        var(--army-green-dark);

    border-bottom:
        3px solid var(--gold);

    min-height: 78px;

    display: flex;

    align-items: center;
}


.header-inner {

    width: min(1180px, 92%);

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

    color: white;
}


.brand-emblem {

    width: 43px;

    height: 43px;

    border:
        2px solid var(--gold);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;

    font-size: 13px;

    color: var(--gold);

    letter-spacing: 1px;
}


.brand-text {

    display: flex;

    flex-direction: column;
}


.brand-name {

    font-size: 19px;

    font-weight: 800;

    letter-spacing: 2px;
}


.brand-subtitle {

    font-size: 9px;

    letter-spacing: 4px;

    color: var(--gold);
}


.back-link {

    color: #e4e8dc;

    text-decoration: none;

    font-size: 14px;

    transition: 0.2s;
}


.back-link:hover {

    color: var(--gold-light);
}


/* ======================================================
   MAIN
   ====================================================== */

.payment-page {

    padding:
        55px 0 70px;
}


.payment-container {

    width: min(1050px, 92%);

    margin: auto;
}


/* ======================================================
   HEADING
   ====================================================== */

.page-heading {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 35px;
}


.heading-icon {

    width: 62px;

    height: 62px;

    border-radius: 14px;

    background:
        var(--army-green);

    color: var(--gold-light);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 30px;

    font-weight: 700;

    box-shadow: var(--shadow);
}


.section-label {

    display: block;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    color: var(--army-green-light);

    margin-bottom: 7px;
}


.page-heading h1 {

    font-size: 34px;

    color: var(--army-green-deep);

    margin-bottom: 7px;
}


.page-heading p {

    color: var(--text-muted);

    font-size: 15px;

    line-height: 1.6;
}


/* ======================================================
   SEARCH CARD
   ====================================================== */

.search-card {

    background: white;

    border-radius: var(--radius);

    padding: 30px;

    box-shadow: var(--shadow);

    border:
        1px solid var(--border);

    margin-bottom: 25px;
}


.card-title {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 25px;
}


.title-icon {

    width: 42px;

    height: 42px;

    border-radius: 10px;

    background: #e8ecdf;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;
}


.card-title h2 {

    font-size: 19px;

    color: var(--army-green-deep);

    margin-bottom: 4px;
}


.card-title p {

    font-size: 13px;

    color: var(--text-muted);
}


/* ======================================================
   SEARCH FORM
   ====================================================== */

.input-wrapper label {

    display: block;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 8px;

    color: #3c4437;
}


.input-row {

    display: flex;

    gap: 12px;
}


.input-row input {

    flex: 1;

    height: 52px;

    border:
        1px solid #ccd2c4;

    border-radius: 9px;

    padding:
        0 16px;

    font-size: 15px;

    color: var(--text-dark);

    outline: none;

    text-transform: uppercase;

    transition:
        border 0.2s,
        box-shadow 0.2s;
}


.input-row input:focus {

    border-color:
        var(--army-green);

    box-shadow:
        0 0 0 3px rgba(63, 79, 47, 0.10);
}


.input-row button {

    width: 145px;

    border: none;

    border-radius: 9px;

    background:
        var(--army-green);

    color: white;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s;
}


.input-row button:hover {

    background:
        var(--army-green-dark);

    transform:
        translateY(-1px);
}


.input-row button:disabled {

    opacity: 0.6;

    cursor: wait;

    transform: none;
}


.button-icon {

    margin-right: 5px;
}


/* ======================================================
   MESSAGE
   ====================================================== */

.message {

    margin-top: 15px;

    padding: 13px 15px;

    border-radius: 8px;

    font-size: 13px;

    line-height: 1.5;
}


.message.error {

    background: #f9e8e5;

    color: #8a3026;

    border:
        1px solid #edc6c0;
}


.message.success {

    background: #e9efe2;

    color: #3e5b2b;

    border:
        1px solid #cdd9c1;
}


/* ======================================================
   APPLICATION RESULT
   ====================================================== */

.application-result {

    display: flex;

    flex-direction: column;

    gap: 22px;
}


.personnel-card {

    background:
        var(--army-green-dark);

    color: white;

    border-radius:
        var(--radius);

    padding: 25px;

    display: flex;

    align-items: center;

    gap: 20px;

    position: relative;

    overflow: hidden;
}


.personnel-card::after {

    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    border:
        1px solid rgba(197, 164, 90, 0.18);

    border-radius: 50%;

    right: -60px;

    top: -70px;
}


.personnel-photo-wrapper {

    width: 76px;

    height: 76px;

    flex-shrink: 0;

    position: relative;
}


.personnel-photo,
.photo-fallback {

    width: 100%;

    height: 100%;

    border-radius: 50%;

    object-fit: cover;

    border:
        3px solid var(--gold);

    background:
        var(--army-green);

}


.photo-fallback {

    display: none;

    align-items: center;

    justify-content: center;

    color: var(--gold-light);

    font-size: 20px;

    font-weight: 800;
}


.result-label {

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

    color: var(--gold-light);

    display: block;

    margin-bottom: 5px;
}


.personnel-information h2 {

    font-size: 23px;

    margin-bottom: 9px;
}


.personnel-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 8px 20px;

    font-size: 12px;

    color: #d3d8cc;
}


.personnel-meta strong {

    color: white;
}


.status-badge {

    margin-left: auto;

    background:
        rgba(197, 164, 90, 0.15);

    border:
        1px solid rgba(197, 164, 90, 0.5);

    color:
        var(--gold-light);

    padding:
        8px 12px;

    border-radius: 30px;

    font-size: 10px;

    font-weight: 700;

    white-space: nowrap;
}


/* ======================================================
   APPLICATION CARD
   ====================================================== */

.application-card {

    background: white;

    border-radius:
        var(--radius);

    border:
        1px solid var(--border);

    box-shadow:
        var(--shadow);

    overflow: hidden;
}


.application-header {

    padding:
        25px 28px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom:
        1px solid var(--border);
}


.application-header h2 {

    color:
        var(--army-green-deep);

    font-size: 22px;
}


.application-status {

    background:
        #edf2e8;

    color:
        var(--army-green);

    border:
        1px solid #ced9c4;

    padding:
        7px 11px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 700;
}


.application-reference {

    margin:
        20px 28px;

    padding:
        15px 17px;

    background:
        #f5f6f1;

    border-left:
        4px solid var(--army-green);

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.application-reference span {

    font-size: 12px;

    color: var(--text-muted);
}


.application-reference strong {

    color:
        var(--army-green-deep);

    font-size: 14px;

    letter-spacing: 1px;
}


.application-details {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1px;

    background:
        var(--border);

    border-top:
        1px solid var(--border);
}


.detail-item {

    background:
        white;

    padding:
        20px 28px;
}


.detail-item span {

    display: block;

    font-size: 11px;

    color: var(--text-muted);

    margin-bottom: 7px;
}


.detail-item strong {

    font-size: 14px;

    color:
        var(--text-dark);

    line-height: 1.5;
}


/* ======================================================
   PAYMENT AMOUNT
   ====================================================== */

.payment-amount {

    background:
        var(--army-green);

    color: white;

    padding:
        23px 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.payment-amount span {

    display: block;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

    color:
        var(--gold-light);

    margin-bottom: 6px;
}


.payment-amount strong {

    font-size: 32px;

    color: white;
}


.fee-note {

    font-size: 11px;

    color:
        #d5dacd;

    text-align: right;
}


/* ======================================================
   BITCOIN CARD
   ====================================================== */

.bitcoin-card {

    background: white;

    border-radius:
        var(--radius);

    border:
        1px solid var(--border);

    box-shadow:
        var(--shadow);

    padding:
        30px;
}


.bitcoin-header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 22px;
}


.bitcoin-symbol {

    width: 48px;

    height: 48px;

    border-radius: 50%;

    background:
        #f0ead9;

    color:
        #8d7130;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

    font-weight: 800;

    border:
        1px solid #d9c99c;
}


.bitcoin-header h2 {

    color:
        var(--army-green-deep);

    font-size: 21px;
}


.bitcoin-notice {

    padding:
        17px;

    border-radius:
        9px;

    background:
        #f5f6f1;

    border:
        1px solid var(--border);

    margin-bottom: 25px;
}


.bitcoin-notice strong {

    font-size: 13px;

    color:
        var(--army-green-deep);
}


.bitcoin-notice p {

    margin-top: 5px;

    color:
        var(--text-muted);

    font-size: 12px;

    line-height: 1.5;
}


/* ======================================================
   PAYMENT INSTRUCTIONS
   ====================================================== */

.payment-instructions {

    display: flex;

    flex-direction: column;

    gap: 18px;

    margin-bottom: 25px;
}


.instruction {

    display: flex;

    gap: 15px;

    align-items: flex-start;
}


.instruction-number {

    min-width: 35px;

    height: 35px;

    border-radius: 50%;

    background:
        var(--army-green);

    color:
        var(--gold-light);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 10px;

    font-weight: 800;
}


.instruction h3 {

    font-size: 14px;

    color:
        var(--army-green-deep);

    margin-bottom: 4px;
}


.instruction p {

    font-size: 12px;

    line-height: 1.5;

    color:
        var(--text-muted);
}


/* ======================================================
   CONTINUE BUTTON
   ====================================================== */

.continue-payment-button {

    width: 100%;

    height: 54px;

    border: none;

    border-radius: 9px;

    background:
        var(--army-green);

    color: white;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s;
}


.continue-payment-button:hover {

    background:
        var(--army-green-dark);

    transform:
        translateY(-1px);
}


.continue-payment-button span {

    margin-left: 8px;

    color:
        var(--gold-light);

    font-size: 18px;
}


/* ======================================================
   EMPTY STATE
   ====================================================== */

.empty-state {

    background: white;

    border:
        1px dashed #cbd1c3;

    border-radius:
        var(--radius);

    padding:
        60px 30px;

    text-align: center;
}


.empty-icon {

    width: 60px;

    height: 60px;

    margin:
        0 auto 15px;

    border-radius: 50%;

    background:
        #e8ecdf;

    color:
        var(--army-green);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 27px;

    font-weight: 800;
}


.empty-state h2 {

    font-size: 19px;

    color:
        var(--army-green-deep);

    margin-bottom: 8px;
}


.empty-state p {

    max-width: 500px;

    margin: auto;

    color:
        var(--text-muted);

    font-size: 13px;

    line-height: 1.6;
}


/* ======================================================
   FOOTER
   ====================================================== */

.payment-footer {

    background:
        var(--army-green-deep);

    color:
        #bdc5b5;

    min-height: 80px;

    padding:
        20px 5%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    font-size: 11px;
}


/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 700px) {

    .payment-page {

        padding-top: 35px;
    }


    .page-heading {

        align-items: flex-start;
    }


    .heading-icon {

        width: 50px;

        height: 50px;

        font-size: 24px;
    }


    .page-heading h1 {

        font-size: 28px;
    }


    .search-card,
    .bitcoin-card {

        padding: 20px;
    }


    .input-row {

        flex-direction: column;
    }


    .input-row button {

        width: 100%;

        height: 50px;
    }


    .personnel-card {

        align-items: flex-start;

        flex-wrap: wrap;

        padding: 20px;
    }


    .status-badge {

        margin-left: 0;
    }


    .application-details {

        grid-template-columns: 1fr;
    }


    .application-header {

        align-items: flex-start;

        gap: 12px;

        flex-direction: column;
    }


    .application-reference {

        flex-direction: column;

        align-items: flex-start;

        gap: 7px;
    }


    .payment-amount {

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }


    .fee-note {

        text-align: left;
    }


    .payment-footer {

        flex-direction: column;

        gap: 8px;

        text-align: center;
    }

}