/* =========================================
   MILSERVE PORTAL
   BITCOIN PAYMENT PAGE
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================
   ROOT VARIABLES
   ========================================= */

:root {
    --army-green: #263a28;
    --dark-green: #18271a;
    --medium-green: #354d38;
    --gold: #c6a15b;

    --background: #eef1eb;
    --card: #ffffff;

    --text: #202720;
    --muted: #707970;

    --border: #d8ded5;

    --warning-bg: #faf6ea;
    --warning-border: #dfd1ae;
}


/* =========================================
   BODY
   ========================================= */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
    height: 82px;
    background: var(--army-green);
    border-bottom: 3px solid var(--gold);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: white;
}

.brand-mark {
    width: 43px;
    height: 43px;

    border: 1px solid var(--gold);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gold);
    font-size: 20px;
}

.brand h1 {
    font-size: 20px;
    letter-spacing: .7px;
}

.brand p {
    color: #c9d0c8;
    font-size: 11px;
    margin-top: 4px;
}

.back-button {
    text-decoration: none;
    color: white;

    border: 1px solid rgba(255,255,255,.3);

    padding: 10px 17px;
    border-radius: 4px;

    font-size: 13px;
    transition: .2s;
}

.back-button:hover {
    background: rgba(255,255,255,.1);
}


/* =========================================
   MAIN
   ========================================= */

.page-container {
    width: 100%;
    max-width: 920px;

    margin: 42px auto;
    padding: 0 20px;
}


/* =========================================
   PAGE INTRO
   ========================================= */

.page-intro {
    display: flex;
    align-items: center;
    gap: 17px;

    margin-bottom: 25px;
}

.bitcoin-symbol {
    width: 58px;
    height: 58px;

    min-width: 58px;

    border-radius: 50%;

    background: var(--army-green);
    color: var(--gold);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 29px;
    font-weight: bold;
}

.eyebrow {
    display: block;

    color: var(--gold);

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 1.5px;

    margin-bottom: 4px;
}

.page-intro h2 {
    color: var(--army-green);
    font-size: 26px;
}

.page-intro p {
    color: var(--muted);
    font-size: 13px;

    margin-top: 4px;
}


/* =========================================
   CARD
   ========================================= */

.card {
    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 6px;

    padding: 25px;
    margin-bottom: 20px;

    box-shadow: 0 5px 20px rgba(20,35,22,.045);
}

.section-heading {
    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--army-green);

    font-size: 14px;
    font-weight: bold;

    margin-bottom: 19px;
}

.section-heading span {
    width: 4px;
    height: 17px;

    background: var(--gold);
}

.description {
    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;

    margin-bottom: 18px;
}


/* =========================================
   APPLICATION SUMMARY
   ========================================= */

.summary-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    background: #f7f8f5;

    padding: 20px;

    border: 1px solid var(--border);

    border-radius: 4px;
}

.summary-item label {
    display: block;

    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: .6px;

    color: var(--muted);

    margin-bottom: 5px;
}

.summary-item strong {
    color: #242b24;

    font-size: 14px;
}


/* =========================================
   AMOUNT
   ========================================= */

.amount-card {
    background: var(--army-green);

    color: white;

    text-align: center;

    border-left: 5px solid var(--gold);

    border-radius: 6px;

    padding: 28px;

    margin-bottom: 20px;
}

.amount-card > p {
    color: #cbd1ca;

    font-size: 10px;

    letter-spacing: 1.5px;

    font-weight: bold;
}

.amount {
    display: flex;

    justify-content: center;
    align-items: baseline;

    gap: 5px;

    margin: 7px 0;
}

.amount span {
    color: var(--gold);
    font-size: 22px;
}

.amount strong {
    font-size: 38px;
}

.amount small {
    color: #cbd1ca;
    font-size: 11px;
}

.amount-note {
    color: #cbd1ca;
    font-size: 11px;
}


/* =========================================
   WALLET SECTION
   ========================================= */

.wallet-area {
    display: grid;

    grid-template-columns: 200px minmax(0, 1fr);

    gap: 28px;

    align-items: center;

    background: #f7f8f5;

    border: 1px solid var(--border);

    padding: 22px;

    border-radius: 5px;

    overflow: hidden;
}

/* =========================================================
   MILSERVE PORTAL
   BITCOIN QR CODE
   ========================================================= */

/* QR CODE SECTION */
.qr-section {
    width: 100%;
    margin-top: 28px;
}

.qr-section h3 {
    margin-bottom: 10px;
}

/* QR CODE WRAPPER */
.qr-code-container,
.qr-wrapper,
.qr-code {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* ACTUAL QR IMAGE */
.qr-code-container img,
.qr-wrapper img,
.qr-code img,
#qrCode,
#qrCode img,
.qr-image {
    display: block !important;

    /* KEEP QR SQUARE */
    width: 220px !important;
    height: 220px !important;

    min-width: 220px !important;
    min-height: 220px !important;

    max-width: 220px !important;
    max-height: 220px !important;

    aspect-ratio: 1 / 1 !important;

    object-fit: contain !important;

    margin: 0 auto !important;

    padding: 12px;
    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #d8ddd5;
    border-radius: 8px;
}

/* QR CARD */
.qr-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 28px 20px;

    box-sizing: border-box;
}

/* QR DESCRIPTION */
.qr-description {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

/* =========================================================
   WALLET ADDRESS
   ========================================================= */

.wallet-address-container {
    width: 100%;
    box-sizing: border-box;
}

.wallet-address-row {
    width: 100%;

    display: flex;
    align-items: stretch;
    gap: 10px;

    box-sizing: border-box;
}

.wallet-address-row input,
.wallet-address-row textarea,
.wallet-address {
    flex: 1;
    min-width: 0;

    height: 48px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #d3d9d0;
    border-radius: 5px;

    background: #ffffff;

    color: #263c2a;

    font-size: 14px;
}

/* COPY BUTTON */
.copy-address-button,
#copyAddressButton {
    flex-shrink: 0;

    height: 48px;

    padding: 0 22px;

    border: none;
    border-radius: 5px;

    background: #233d29;
    color: #ffffff;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.copy-address-button:hover,
#copyAddressButton:hover {
    background: #304f35;
}

.copy-address-button:active,
#copyAddressButton:active {
    transform: scale(0.98);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .qr-card {
        padding: 24px 15px;
    }

    .qr-code-container img,
    .qr-wrapper img,
    .qr-code img,
    #qrCode,
    #qrCode img,
    .qr-image {
        width: 190px !important;
        height: 190px !important;

        min-width: 190px !important;
        min-height: 190px !important;

        max-width: 190px !important;
        max-height: 190px !important;

        padding: 10px;
    }

    .wallet-address-row {
        flex-direction: column;
    }

    .wallet-address-row input,
    .wallet-address-row textarea,
    .wallet-address {
        width: 100%;
    }

    .copy-address-button,
    #copyAddressButton {
        width: 100%;
    }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .qr-code-container img,
    .qr-wrapper img,
    .qr-code img,
    #qrCode,
    #qrCode img,
    .qr-image {
        width: 170px !important;
        height: 170px !important;

        min-width: 170px !important;
        min-height: 170px !important;

        max-width: 170px !important;
        max-height: 170px !important;
    }
}

/* =========================================
   WALLET DETAILS
   ========================================= */

.wallet-details {
    width: 100%;
    min-width: 0;
}

.wallet-details label {
    display: block;

    font-size: 10px;

    text-transform: uppercase;

    color: var(--muted);

    margin-bottom: 8px;
}

.wallet-input-row {
    display: flex;

    gap: 8px;

    width: 100%;
}

.wallet-input-row input {
    flex: 1;

    min-width: 0;

    width: 100%;

    padding: 13px;

    border: 1px solid #cbd2c9;

    border-radius: 4px;

    background: white;

    color: #333;

    font-size: 12px;

    outline: none;
}

.wallet-input-row input:focus {
    border-color: var(--gold);

    box-shadow: 0 0 0 2px rgba(198,161,91,.12);
}

.wallet-input-row button {
    flex-shrink: 0;

    border: none;

    background: var(--army-green);

    color: white;

    padding: 0 19px;

    border-radius: 4px;

    cursor: pointer;

    font-weight: bold;

    font-size: 12px;

    transition: .2s;
}

.wallet-input-row button:hover {
    background: var(--dark-green);
}

.copy-message {
    min-height: 16px;

    color: #536b54;

    font-size: 11px;

    margin-top: 7px;
}


/* =========================================
   INSTRUCTIONS
   ========================================= */

.instructions {
    display: flex;

    flex-direction: column;

    gap: 17px;
}

.instruction {
    display: flex;

    gap: 14px;
}

.number {
    width: 29px;
    height: 29px;

    min-width: 29px;

    background: var(--army-green);

    color: var(--gold);

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 11px;

    font-weight: bold;
}

.instruction strong {
    color: var(--army-green);

    font-size: 13px;
}

.instruction p {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;

    margin-top: 3px;
}


/* =========================================
   BUY OPTIONS
   ========================================= */

.buy-options {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.buy-option {
    display: flex;

    gap: 17px;

    padding: 18px;

    border: 1px solid var(--border);

    border-radius: 5px;

    transition: .2s;
}

.buy-option:hover {
    background: #f8f9f6;

    border-color: #b9c3b8;
}

.option-number {
    color: var(--gold);

    font-size: 13px;

    font-weight: bold;

    padding-top: 2px;
}

.option-content {
    flex: 1;

    min-width: 0;
}

.option-content h3 {
    color: var(--army-green);

    font-size: 15px;

    margin-bottom: 5px;
}

.option-content p {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.55;

    margin-bottom: 8px;
}

.option-content a {
    color: var(--army-green);

    font-size: 11px;

    font-weight: bold;

    text-decoration: none;
}

.option-content a:hover {
    text-decoration: underline;
}


/* =========================================
   WARNING
   ========================================= */

.warning {
    display: flex;

    gap: 13px;

    background: var(--warning-bg);

    border: 1px solid var(--warning-border);

    padding: 17px;

    border-radius: 5px;

    margin-bottom: 20px;
}

.warning-icon {
    width: 26px;
    height: 26px;

    min-width: 26px;

    border-radius: 50%;

    background: var(--gold);

    color: white;

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: bold;
}

.warning strong {
    color: #5c4a28;

    font-size: 13px;
}

.warning p {
    color: #766b53;

    font-size: 11px;

    line-height: 1.55;

    margin-top: 4px;
}


/* =========================================
   CONFIRMATION
   ========================================= */

.confirmation-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 6px;

    padding: 22px 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    box-shadow: 0 5px 20px rgba(20,35,22,.045);
}

.confirmation-label {
    display: block;

    color: var(--gold);

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 1px;

    margin-bottom: 4px;
}

.confirmation-card h3 {
    color: var(--army-green);

    font-size: 15px;
}

.confirmation-card p {
    color: var(--muted);

    font-size: 11px;

    margin-top: 4px;
}

.payment-button {
    border: none;

    background: var(--army-green);

    color: white;

    padding: 14px 20px;

    border-radius: 4px;

    font-weight: bold;

    font-size: 12px;

    cursor: pointer;

    white-space: nowrap;

    transition: .2s;
}

.payment-button:hover {
    background: var(--dark-green);
}

.payment-button:disabled {
    opacity: .65;

    cursor: default;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    text-align: center;

    padding: 25px;

    color: #7a8279;

    font-size: 10px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 700px) {

    .site-header {
        padding: 0 20px;
    }


    .brand h1 {
        font-size: 17px;
    }


    .page-container {
        margin-top: 25px;

        padding-left: 15px;
        padding-right: 15px;
    }


    .summary-grid {
        grid-template-columns: 1fr;
    }


    /*
       QR and wallet details stack
       neatly on mobile.
    */

    .wallet-area {
        grid-template-columns: 1fr;

        gap: 22px;

        justify-items: center;
    }


    .qr-container {
        width: 100%;
    }


    .wallet-details {
        width: 100%;
    }


    .wallet-input-row {
        flex-direction: column;
    }


    .wallet-input-row input {
        width: 100%;
    }


    .wallet-input-row button {
        width: 100%;

        padding: 12px;
    }


    .confirmation-card {
        flex-direction: column;

        align-items: stretch;
    }


    .payment-button {
        width: 100%;
    }
}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 450px) {

    .site-header {
        height: auto;

        min-height: 75px;

        padding-top: 12px;
        padding-bottom: 12px;
    }


    .brand {
        gap: 9px;
    }


    .brand-mark {
        width: 38px;
        height: 38px;

        min-width: 38px;
    }


    .brand h1 {
        font-size: 16px;
    }


    .brand p {
        font-size: 9px;
    }


    .back-button {
        padding: 8px 11px;

        font-size: 11px;
    }


    .page-intro {
        gap: 11px;
    }


    .bitcoin-symbol {
        width: 48px;
        height: 48px;

        min-width: 48px;

        font-size: 23px;
    }


    .page-intro h2 {
        font-size: 21px;
    }


    .page-intro p {
        font-size: 11px;
    }


    .card {
        padding: 20px;
    }


    .amount-card {
        padding: 23px 15px;
    }


    .amount strong {
        font-size: 32px;
    }


    .amount span {
        font-size: 19px;
    }


    .wallet-area {
        padding: 18px;
    }


    /*
       Keep the QR code exactly the same
       size on small phones instead of
       allowing it to expand.
    */

    .qr-code,
    .qr-placeholder {
        width: 150px;
        height: 150px;

        min-width: 150px;
        min-height: 150px;

        max-width: 150px;
        max-height: 150px;
    }


    .buy-option {
        padding: 15px;

        gap: 12px;
    }


    .warning {
        padding: 14px;
    }


    .confirmation-card {
        padding: 20px;
    }
}


/* =========================================
   VERY SMALL PHONES
   ========================================= */

@media (max-width: 360px) {

    .page-container {
        padding-left: 10px;
        padding-right: 10px;
    }


    .card {
        padding: 16px;
    }


    .wallet-area {
        padding: 15px;
    }


    .wallet-input-row input {
        font-size: 11px;

        padding: 12px 10px;
    }


    .qr-code,
    .qr-placeholder {
        width: 140px;
        height: 140px;

        min-width: 140px;
        min-height: 140px;

        max-width: 140px;
        max-height: 140px;
    }
}