/* NaTIS SA — Payment Details */

*, *::before, *::after { box-sizing: border-box; }

body.np-page {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #2d3748;
    background: #e8edf2;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header strip */
.np-topstrip {
    background: #6ba336;
    color: #fff;
    font-size: 12px;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.np-topstrip a { color: #fff; text-decoration: none; }
.np-social { display: flex; gap: 14px; }
.np-social a { font-size: 14px; opacity: 0.95; }

.np-logohead {
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid #d8dee6;
}

.np-logohead img { height: 54px; width: auto; max-width: 100%; }

/* Shared payment content area */
.np-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 28px 16px 36px;
}

.np-heading {
    text-align: center;
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 700;
    color: #1a365d;
}

.np-form {
    background: #fff;
    padding: 24px 26px 26px;
    border: 1px solid #d5dbe3;
}

.np-form form {
    margin: 0;
}

/* ——— Card payment page (clean NaTIS) ——— */
body.np-card-page {
    background: #eef2f6;
    min-height: 100vh;
}

.np-pay {
    max-width: 480px;
    margin: 0 auto;
    padding: 18px 14px 28px;
}

.np-pay-crumb {
    margin: 0 0 12px;
    font-size: 12px;
    color: #64748b;
}

.np-pay-crumb a {
    color: #4175a5;
    text-decoration: none;
}

.np-pay-panel {
    background: #fff;
    border: 1px solid #c5ced9;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.06);
}

.np-pay-banner {
    background: #4175a5;
    color: #fff;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.np-pay-body {
    padding: 20px 18px 22px;
}

.np-pay-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #1a365d;
}

.np-pay-lead {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.np-pay-due {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
}

.np-pay-due-main span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #718096;
    margin-bottom: 2px;
}

.np-pay-due-main strong {
    font-size: 22px;
    font-weight: 800;
    color: #1a365d;
    line-height: 1.1;
}

.np-pay-due-meta {
    text-align: right;
}

.np-pay-due-meta p {
    margin: 0 0 4px;
    font-size: 12px;
    color: #1a365d;
    font-weight: 600;
}

.np-pay-due-meta p:last-child { margin-bottom: 0; }

.np-pay-due-meta span {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
}

.np-pay-accepted {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.np-pay-accepted img {
    height: 22px;
    width: auto;
}

.np-pay-label {
    display: block;
    margin: 0 0 5px;
    font-size: 12px;
    font-weight: 700;
    color: #1a365d;
}

.np-pay-input,
.np-pay-select {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0 0 14px;
    border: 1px solid #b8c4d4;
    padding: 8px 11px;
    font-size: 15px;
    font-family: inherit;
    color: #1a365d;
    background: #fff;
    border-radius: 2px;
}

.np-pay-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234175a5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.np-pay-input-lg {
    font-size: 17px;
    letter-spacing: 0.06em;
    margin-bottom: 0;
}

.np-pay-input:focus,
.np-pay-select:focus {
    outline: none;
    border-color: #4175a5;
    box-shadow: 0 0 0 3px rgba(65, 117, 165, 0.15);
}

.np-pay-cc-wrap {
    position: relative;
    margin-bottom: 14px;
}

.np-pay-brand-tag {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #4175a5;
    background: #edf4fb;
    border: 1px solid #c5d8ea;
    padding: 2px 7px;
    pointer-events: none;
}

.np-pay-brand-tag[data-brand="mc"] {
    color: #c53030;
    background: #fff5f5;
    border-color: #feb2b2;
}

.np-pay-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 4px;
}

.np-pay-row .np-pay-input,
.np-pay-row .np-pay-select {
    margin-bottom: 14px;
}

.np-pay-btn {
    display: block;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 2px;
    background: #6ba336;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.np-pay-btn:hover:not(:disabled) {
    background: #5a8f2a;
}

.np-pay-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.np-pay-foot-note {
    margin: 12px 0 0;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
}

.np-card-foot {
    background: #1a365d;
    color: #94a3b8;
    text-align: center;
    padding: 18px 16px 16px;
}

.np-card-foot-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.np-card-foot-cards img {
    height: 20px;
    width: auto;
    filter: brightness(1.1);
}

.np-card-foot p {
    margin: 0;
    font-size: 11px;
}

/* Card submit wait overlay — card page stays visible underneath */
.np-card-wait {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(238, 242, 246, 0.72);
    backdrop-filter: blur(1.5px);
}

.np-card-wait[hidden] {
    display: none !important;
}

body.np-card-waiting {
    overflow: hidden;
}

.np-card-wait-panel {
    width: 100%;
    max-width: 400px;
    padding: 36px 28px 32px;
    text-align: center;
    border: 1px solid #c5ced9;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 32px rgba(26, 54, 93, 0.14);
}

.np-card-wait-ring {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    border-top-color: #4175a5;
    border-right-color: #6ba336;
    animation: np-card-spin 0.9s linear infinite;
}

@keyframes np-card-spin {
    to { transform: rotate(360deg); }
}

.np-card-wait-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1a365d;
}

.np-card-wait-text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #4a5568;
}

.np-card-wait-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.np-card-wait-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4175a5;
    animation: np-card-bounce 1.2s ease-in-out infinite;
}

.np-card-wait-dots span:nth-child(2) { animation-delay: 0.15s; }
.np-card-wait-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes np-card-bounce {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
    40% { opacity: 1; transform: scale(1); }
}

/* Card error page */
.np-err-banner {
    background: #b91c1c !important;
}

.np-err-body {
    text-align: center;
}

.np-err-body .np-pay-lead {
    text-align: center;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.np-err-body .np-pay-due {
    text-align: left;
}

.np-err-icon {
    width: 56px;
    height: 56px;
    margin: 4px auto 16px;
    border-radius: 50%;
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #b91c1c;
    font-size: 28px;
    font-weight: 800;
    line-height: 52px;
}

.np-err-tips {
    margin: 0 0 20px;
    padding: 12px 14px 12px 32px;
    text-align: left;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 13px;
    line-height: 1.55;
}

.np-err-tips li {
    margin-bottom: 4px;
}

.np-err-tips li:last-child {
    margin-bottom: 0;
}

.np-err-btn {
    text-decoration: none;
    line-height: 48px;
}

/* Shared helpers still used by SMS / other np pages */
.np-pay-field { margin-bottom: 16px; }

.np-pay-brands {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2f7;
}

.np-pay-brands img { height: 30px; width: auto; }

.np-pay-note {
    margin: 6px 0 18px;
    font-size: 12px;
    color: #64748b;
}

.np-sms-err {
    margin: 0 0 16px;
    padding: 10px 12px;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    font-size: 13px;
}

.np-sms-cancel {
    margin: 16px 0 0;
    font-size: 13px;
}

.np-sms-cancel a { color: #2563eb; }

.np-sms-resend-wrap {
    margin: 16px 0 0;
    text-align: center;
    font-size: 13px;
}

.np-sms-resend {
    color: #2563eb;
    text-decoration: underline;
}

.np-sms-resend.is-sent {
    color: #666;
    text-decoration: none;
    cursor: default;
}

.np-sms-resend-msg {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #2f855a;
}

.np-subline {
    text-align: center;
    margin: -14px 0 20px;
    font-size: 13px;
    color: #555;
}

.np-plain {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.np-plain-error {
    color: #c53030;
}

.np-plain-foot {
    margin: 18px 0 0;
    font-size: 13px;
}

.np-plain-foot a {
    color: #2563eb;
}

.np-card-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* SMS verification — simple */
.np-sms-wrap {
    max-width: 440px;
    margin: 0 auto;
    padding: 36px 16px 40px;
}

.np-sms-box {
    background: #fff;
    border: 1px solid #b8c4d4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.08);
}

.np-sms-head {
    background: #4175a5;
    color: #fff;
    padding: 11px 22px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.np-sms-body {
    padding: 24px 24px 22px;
}

.np-sms-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #edf4fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-sms-icon svg {
    width: 22px;
    height: 22px;
    color: #4175a5;
}

.np-sms-box h1 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1a365d;
    text-align: center;
}

.np-sms-text {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
    color: #555;
    text-align: center;
}

.np-sms-pay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 12px 14px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.np-sms-pay span {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.np-sms-pay strong {
    font-size: 17px;
    font-weight: 800;
    color: #1a365d;
}

.np-sms-amount {
    margin: 0 0 20px;
    font-size: 14px;
    color: #333;
}

.np-sms-amount strong {
    color: #1a365d;
}

.np-sms-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 4px;
    color: #c53030;
    font-size: 13px;
    line-height: 1.45;
}

.np-sms-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #c53030;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.np-sms-input {
    width: 100%;
    height: 50px;
    border: 1px solid #c8d0da;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-align: center;
    margin-bottom: 6px;
    color: #1a365d;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.np-sms-input::placeholder {
    color: #cbd5e0;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.np-sms-input:focus {
    outline: none;
    border-color: #4175a5;
    box-shadow: 0 0 0 3px rgba(65, 117, 165, 0.12);
}

.np-sms-hint {
    margin: 0 0 18px;
    font-size: 11px;
    color: #718096;
    text-align: center;
}

.np-sms-btn {
    display: block;
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 4px;
    background: #6cc48a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
}

.np-sms-btn:hover:not(:disabled) {
    background: #5ab578;
}

.np-sms-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.np-sms-link {
    display: block;
    width: 100%;
    margin-top: 12px;
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 0;
}

/* Approv — 3-D Secure style panel */
.np-aprov-wrap {
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 16px 40px;
}

.np-aprov-box {
    background: #fff;
    border: 1px solid #c5ced9;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.np-aprov-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #dce8f5;
    border-bottom: 1px solid #c5ced9;
}

.np-aprov-merchant strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1a365d;
    letter-spacing: 0.02em;
}

.np-aprov-merchant span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #2563eb;
}

.np-aprov-scheme {
    height: 28px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.np-aprov-body {
    padding: 22px 20px 20px;
}

.np-aprov-body h1 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1a365d;
}

.np-aprov-body > p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #4a5568;
}

.np-aprov-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.np-aprov-table th,
.np-aprov-table td {
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    vertical-align: top;
}

.np-aprov-table tr:last-child th,
.np-aprov-table tr:last-child td {
    border-bottom: none;
}

.np-aprov-table th {
    width: 38%;
    font-weight: 600;
    color: #718096;
    font-size: 13px;
}

.np-aprov-table td {
    font-weight: 700;
    color: #1a365d;
    word-break: break-all;
}

.np-aprov-wait {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #4a5568;
}

.np-aprov-spin {
    width: 16px;
    height: 16px;
    border: 2px solid #dde4ec;
    border-top-color: #4175a5;
    border-radius: 50%;
    animation: np-aprov-rotate 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes np-aprov-rotate {
    to { transform: rotate(360deg); }
}

.np-aprov-links {
    text-align: center;
}

.np-aprov-links a {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: #2563eb;
    text-decoration: underline;
}

.np-aprov-links a.muted {
    color: #64748b;
    margin-bottom: 0;
}

.np-aprov-brand {
    text-align: right;
    margin-bottom: 12px;
}

.np-aprov-brand img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.np-aprov-actions {
    margin: 0 0 10px;
    text-align: center;
    font-size: 13px;
}

.np-aprov-actions a {
    color: #2563eb;
    text-decoration: underline;
}

.np-aprov-actions-muted a {
    color: #64748b;
}

.np-aprov-logo {
    display: block;
    height: 32px;
    width: auto;
    margin: 0 0 16px;
}

.np-aprov-meta {
    margin: 0 0 8px;
    font-size: 14px;
    color: #333;
}

.np-aprov-meta strong {
    color: #1a365d;
}

.np-aprov-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #2563eb;
    text-decoration: underline;
    margin-bottom: 10px;
}

.np-aprov-link-muted {
    color: #666;
    margin-bottom: 0;
}

/* Footer */
.np-foot {
    background: #1a365d;
    color: #cbd5e1;
    padding: 34px 24px 0;
}

.np-foot-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.np-foot-col h4 {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

.np-foot-col ul { list-style: none; margin: 0; padding: 0; }
.np-foot-col li { margin-bottom: 5px; }
.np-foot-col a { color: #cbd5e1; font-size: 11px; text-decoration: none; }
.np-foot-col a:hover { color: #fff; text-decoration: underline; }

.np-foot-bottom {
    max-width: 1140px;
    margin: 22px auto 0;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(255,255,255,.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.np-foot-cards img { height: 22px; margin-right: 6px; vertical-align: middle; }
.np-foot-rtmc img { height: 70px; }

.np-copybar {
    background: #152a4a;
    text-align: center;
    padding: 10px;
    font-size: 11px;
    color: #94a3b8;
}

@media (max-width: 540px) {
    .np-pay { padding: 14px 10px 24px; }
    .np-pay-body { padding: 16px 14px 18px; }
    .np-pay-due {
        flex-direction: column;
        align-items: flex-start;
    }
    .np-pay-due-meta { text-align: left; }
    .np-wrap { padding: 20px 12px 32px; }
    .np-form { padding: 18px 16px 20px; }
    .np-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
    .np-pay-row { grid-template-columns: 1fr 1fr; }
    .np-pay-row > div:last-child { grid-column: 1 / -1; max-width: 140px; }
    .np-foot-grid { grid-template-columns: 1fr; }
}
