/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f5f7fb;
    color: #172033;
    line-height: 1.6;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}


/* =========================================================
   PAGE
========================================================= */

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.top-header {
    background: #ffffff;
    border-bottom: 1px solid #e7ebf2;
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;

    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #0f766e;
    color: #ffffff;

    font-size: 20px;
    font-weight: 800;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 17px;
    font-weight: 800;
}

.brand-text span {
    margin-top: 4px;

    color: #7b8495;

    font-size: 11px;
    font-weight: 500;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 13px;
}

.header-contact span {
    color: #7b8495;
}

.header-contact a {
    color: #0f766e;
    font-weight: 750;
    text-decoration: none;
}

.header-contact a:hover {
    text-decoration: underline;
}


/* =========================================================
   MAIN
========================================================= */

.main-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;

    padding: 54px 0 70px;

    flex: 1;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;

    align-items: start;
}


/* =========================================================
   HERO
========================================================= */

.hero-content {
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;

    padding: 7px 12px;

    border-radius: 999px;

    background: #e6f6f3;
    color: #0f766e;

    font-size: 12px;
    font-weight: 750;

    margin-bottom: 16px;
}

.hero-content h1 {
    max-width: 700px;

    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.12;

    letter-spacing: -1.8px;

    font-weight: 850;
}

.hero-content h1 span {
    color: #0f766e;
}

.hero-description {
    max-width: 700px;

    margin-top: 18px;

    color: #657084;

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   ERROR
========================================================= */

.error-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 14px 16px;

    margin-bottom: 20px;

    border: 1px solid #fecaca;
    border-radius: 12px;

    background: #fff5f5;
    color: #991b1b;
}

.error-icon {
    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dc2626;
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}

.error-message strong {
    display: block;
    margin-bottom: 2px;
}

.error-message p {
    font-size: 13px;
}


/* =========================================================
   PROGRESS
========================================================= */

.payment-progress {
    display: flex;
    align-items: center;

    margin-bottom: 18px;

    max-width: 640px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #a0a8b7;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.step-number {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e8ecf2;
    color: #7d8797;

    font-size: 12px;
}

.progress-step.active {
    color: #0f766e;
}

.progress-step.active .step-number {
    background: #0f766e;
    color: #ffffff;
}

.progress-line {
    height: 1px;
    flex: 1;

    margin: 0 9px;

    background: #dce1e8;
}


/* =========================================================
   FORM CARD
========================================================= */

.form-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e9f0;
    border-radius: 20px;

    box-shadow:
        0 12px 40px rgba(25, 40, 70, 0.06);
}

.form-section {
    padding: 28px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 24px;
}

.section-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eef9f7;

    font-size: 19px;
}

.section-heading h2 {
    font-size: 18px;
    font-weight: 800;
}

.section-heading p {
    margin-top: 2px;

    color: #8a93a2;

    font-size: 12px;
}


/* =========================================================
   FORM
========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    min-width: 0;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #354052;

    font-size: 13px;
    font-weight: 750;
}

.form-group small {
    display: block;

    margin-top: 7px;

    color: #98a1b0;

    font-size: 11px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 16px;

    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 50px;

    padding: 0 14px 0 43px;

    border: 1px solid #dce2ea;
    border-radius: 11px;

    background: #ffffff;

    color: #172033;

    outline: none;

    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.input-wrapper input::placeholder {
    color: #b0b7c3;
}

.input-wrapper input:focus {
    border-color: #0f766e;

    box-shadow:
        0 0 0 3px rgba(15, 118, 110, 0.09);
}

.amount-wrapper {
    position: relative;
}

.amount-wrapper .currency {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #0f766e;

    font-size: 18px;
    font-weight: 800;

    z-index: 2;
}

.amount-input {
    padding-left: 42px !important;
}


/* =========================================================
   SERVICE CHARGE
========================================================= */

.charge-row {
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 15px;

    border: 1px solid #e4e8ef;
    border-radius: 11px;

    background: #f8fafc;

    color: #697386;

    font-size: 13px;
}

.charge-row strong {
    color: #172033;
    font-size: 14px;
}


/* =========================================================
   TOTAL
========================================================= */

.total-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 25px;
    padding: 19px 20px;

    border-radius: 15px;

    background: #f1faf8;

    border: 1px solid #d9f0ec;
}

.total-label {
    display: flex;
    flex-direction: column;
}

.total-label span {
    color: #334155;

    font-size: 14px;
    font-weight: 800;
}

.total-label small {
    margin-top: 2px;

    color: #849092;

    font-size: 11px;
}

.total-amount {
    color: #0f766e;

    font-size: 27px;
    font-weight: 850;

    white-space: nowrap;
}


/* =========================================================
   PAY BUTTON
========================================================= */

.pay-button {
    width: 100%;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 18px;

    border: 0;
    border-radius: 12px;

    background: #0f766e;
    color: #ffffff;

    cursor: pointer;

    font-size: 15px;
    font-weight: 800;

    transition:
        transform .15s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.pay-button:hover {
    background: #0b625b;

    box-shadow:
        0 8px 20px rgba(15, 118, 110, 0.18);

    transform: translateY(-1px);
}

.pay-button:active {
    transform: translateY(0);
}

.pay-button-icon {
    font-size: 17px;
}

.pay-button-text {
    flex: 0 0 auto;
}

.pay-arrow {
    font-size: 20px;
    line-height: 1;
}


/* =========================================================
   SECURITY
========================================================= */

.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 13px;

    color: #8993a2;

    font-size: 11px;
}


/* =========================================================
   FEATURES
========================================================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;

    margin-top: 18px;
}

.feature-card {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    padding: 17px;

    background: #ffffff;

    border: 1px solid #e5e9f0;
    border-radius: 15px;
}

.feature-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eef9f7;

    font-size: 17px;
}

.feature-card h3 {
    margin-bottom: 3px;

    color: #263244;

    font-size: 13px;
    font-weight: 800;
}

.feature-card p {
    color: #8791a0;

    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;

    position: sticky;
    top: 20px;
}

.side-card {
    padding: 21px;

    background: #ffffff;

    border: 1px solid #e5e9f0;
    border-radius: 17px;

    box-shadow:
        0 8px 30px rgba(25, 40, 70, 0.04);
}


/* =========================================================
   CONTACT CARD
========================================================= */

.contact-card {
    display: flex;
    align-items: center;

    gap: 14px;

    background: #f8fafc;
}

.contact-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #e6f6f3;

    font-size: 20px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-content span {
    color: #7a8494;

    font-size: 11px;
    font-weight: 650;
}

.contact-content a {
    color: #172033;

    font-size: 18px;
    font-weight: 850;

    text-decoration: none;
}

.contact-content a:hover {
    color: #0f766e;
}

.contact-content small {
    color: #99a2af;

    font-size: 10px;
}


/* =========================================================
   SIDEBAR HEADING
========================================================= */

.side-card-heading {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 20px;
}

.side-heading-icon {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eef9f7;

    font-size: 17px;
}

.side-card-heading h2 {
    color: #253043;

    font-size: 15px;
    font-weight: 800;
}

.side-card-heading p {
    color: #929baa;

    font-size: 10px;
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.how-steps {
    display: flex;
    flex-direction: column;
}

.how-step {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 11px;

    padding-bottom: 19px;
}

.how-step:last-child {
    padding-bottom: 0;
}

.how-number {
    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eef9f7;
    color: #0f766e;

    font-size: 11px;
    font-weight: 850;
}

.how-step:not(:last-child)::after {
    content: "";

    position: absolute;

    left: 13px;
    top: 27px;
    bottom: 0;

    width: 1px;

    background: #e2e7ed;
}

.how-step strong {
    display: block;

    margin-bottom: 2px;

    color: #334155;

    font-size: 12px;
    font-weight: 800;
}

.how-step p {
    color: #929baa;

    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   RECEIPT CARD
========================================================= */

.receipt-card {
    background: #f8fafc;
}

.receipt-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 11px;

    border-radius: 11px;

    background: #ffffff;

    font-size: 18px;
}

.receipt-card h3 {
    margin-bottom: 4px;

    font-size: 14px;
    font-weight: 800;
}

.receipt-card p {
    color: #8993a1;

    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   HELP CARD
========================================================= */

.help-card {
    display: flex;
    flex-direction: column;

    gap: 4px;

    background: #0f766e;
    color: #ffffff;

    border-color: #0f766e;
}

.help-label {
    opacity: .72;

    font-size: 10px;
    font-weight: 600;
}

.help-card strong {
    font-size: 14px;
}

.help-card a {
    margin-top: 3px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;
}

.help-card a:hover {
    text-decoration: underline;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #ffffff;

    border-top: 1px solid #e7ebf2;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.footer-inner > div:first-child {
    display: flex;
    flex-direction: column;
}

.footer-inner strong {
    color: #334155;

    font-size: 12px;
}

.footer-inner span {
    color: #9aa2af;

    font-size: 10px;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-contact span {
    color: #9aa2af;
}

.footer-contact a {
    color: #0f766e;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .payment-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-card,
    .help-card {
        grid-column: span 1;
    }

}


@media (max-width: 680px) {

    .header-inner {
        min-height: 68px;
    }

    .header-contact span {
        display: none;
    }

    .brand-text span {
        display: none;
    }

    .main-content {
        width: min(100% - 22px, 600px);

        padding-top: 30px;
        padding-bottom: 45px;
    }

    .hero-content h1 {
        font-size: 36px;
        letter-spacing: -1.2px;
    }

    .hero-description {
        font-size: 14px;
    }

    .payment-progress {
        width: 100%;
    }

    .progress-step span {
        display: none;
    }

    .progress-line {
        margin: 0 6px;
    }

    .form-section {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .form-group-full {
        grid-column: auto;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: flex;
    }

    .footer-inner {
        padding: 18px 0;

        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 420px) {

    .header-inner {
        width: calc(100% - 22px);
    }

    .brand-mark {
        width: 38px;
        height: 38px;

        font-size: 18px;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .header-contact a {
        font-size: 12px;
    }

    .hero-content h1 {
        font-size: 31px;
    }

    .form-section {
        padding: 17px;
    }

    .total-card {
        padding: 16px;

        align-items: flex-start;
        flex-direction: column;
    }

    .total-amount {
        font-size: 25px;
    }

}