* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: "Nunito Sans", sans-serif;
  background: #f0f2f7;
  font-size: 14px;
  color: #1a1f38;
}
.topbar {
  height: 4px;
  background: linear-gradient(90deg, #1836a8, #4361ee);
}
header {
  background: #fff;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #e0e3ef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 1;
}
.logo-image {
  height: clamp(45px, 5.8vw, 45px);
  width: auto;
  max-width: 60vw;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.tag {
  background: #edf7f2;
  color: #1a7a4d;
  border: 1px solid #b7e4ca;
  padding: 4px 13px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.wrap {
  max-width: 1260px;
  margin: 22px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 20px;
  align-items: start;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  margin-bottom: 18px;
  overflow: hidden;
}
.card:last-child {
  margin-bottom: 0;
}

.ch {
  padding: 15px 20px;
  border-bottom: 1px solid #e8eaf0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.ci {
  width: 33px;
  height: 33px;
  border-radius: 7px;
  background: #e8eef7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.ct {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 14px;
}
.cs {
  font-size: 11px;
  color: #6b7490;
  margin-top: 1px;
}
.cb {
  padding: 16px 20px;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.fg {
  margin-bottom: 12px;
}
.fg:last-child {
  margin-bottom: 0;
}
.lbl {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #363d57;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}
input,
select {
  width: 100%;
  padding: 8px 11px;
  border: 1.5px solid #e0e3ef;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  color: #1a1f38;
}
input:focus,
select:focus {
  border-color: #1836a8;
  box-shadow: 0 0 0 3px rgba(24, 54, 168, 0.08);
}
select:disabled {
  background: #f5f6fa;
  color: #b0b5c8;
  cursor: not-allowed;
}
input.sid-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}
input.sid-valid {
  border-color: #1a7a4d !important;
  box-shadow: 0 0 0 3px rgba(26, 122, 77, 0.1) !important;
}
.sid-hint {
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}
.sid-hint.sid-hint-valid {
  background: #edf7f2;
  color: #1a7a4d;
  border: 1px solid #b7e4ca;
}
.sid-hint.sid-hint-invalid {
  background: #fdf0f1;
  color: #dc3545;
  border: 1px solid #f5c6cb;
}
.info {
  background: #e8f3fd;
  border: 1px solid #b5d8f7;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 11.5px;
  color: #1056a0;
  display: flex;
  gap: 7px;
  margin-top: 2px;
}

.hidden {
  display: none;
}

.ptype-wrap {
  padding: 12px 20px 16px;
  border-top: 1px solid #e8eaf0;
}
.ptype-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #363d57;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.ptype-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pr input[type="radio"] {
  display: none;
}
.pr label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 2px solid #e0e3ef;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.pr label::before {
  content: "";
  min-width: 16px;
  height: 16px;
  border: 2px solid #b0b5c8;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.18s;
}
.pr input:checked + label {
  border-color: #1836a8;
  color: #1836a8;
  background: #f0f4ff;
}
.pr input:checked + label::before {
  border-color: #1836a8;
  background: #1836a8;
  box-shadow: inset 0 0 0 3px #fff;
}

.badge-wrap {
  padding: 0 20px 16px;
}
.badge {
  background: #1836a8;
  color: #fff;
  border-radius: 7px;
  padding: 11px 15px;
}
.badge-name {
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.4;
  margin-bottom: 6px;
}
.badge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.chip {
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 10.5px;
}

.right-body {
  padding: 0;
}
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.fee-table .hdr-prog td {
  background: #1836a8;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  padding: 12px 15px;
}
.fee-table .hdr-col td {
  background: #d4edda;
  font-weight: 700;
  padding: 8px 15px;
  border: 1px solid #c3e6cb;
  font-size: 12px;
}
.fee-table .hdr-col .h-name {
  padding-left: 15px;
}
.fee-table .hdr-col .h-val {
  text-align: right;
  width: 160px;
}
.fee-table .struct-row td {
  background: #f6f7fa;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 15px;
  border: 1px solid #e0e3ef;
  color: #363d57;
  cursor: pointer;
  user-select: none;
}
.fee-table .struct-row:hover td {
  background: #eef0f6;
}
.fee-table .struct-row td .acc-icon {
  float: right;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
  color: #1836a8;
}
.fee-table .struct-row.open td .acc-icon {
  transform: rotate(45deg);
}
.fee-table .val-row {
  cursor: pointer;
}
.fee-table .val-row:hover td {
  background: #f0f4ff;
}
.fee-table .val-row.sel td {
  background: #e4eaff;
}
.fee-table .val-row td {
  padding: 11px 15px;
  border: 1px solid #e8eaf0;
  vertical-align: middle;
}
.fee-table .td-opt {
  font-size: 12px;
  color: #6b7490;
}
.fee-table .td-opt-na {
  color: #c0c4d0;
  font-style: italic;
}
.fee-table .td-amt {
  font-weight: 700;
  font-size: 15px;
  color: #1a1f38;
  text-align: right;
  width: 140px;
}
.fee-table .td-na {
  font-size: 12px;
  color: #c0c4d0;
  font-style: italic;
  text-align: right;
  width: 140px;
}
.fee-table .td-radio {
  width: 42px;
  text-align: center;
}
.fee-table .td-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #1836a8;
  cursor: pointer;
}

.sum {
  border: 2px solid #e0e3ef;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}
.srow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px dashed #e8eaf0;
  gap: 10px;
}
.srow:last-child {
  border: none;
  padding-top: 10px;
}
.sl {
  font-size: 11.5px;
  color: #6b7490;
  font-weight: 600;
  flex-shrink: 0;
}
.sv {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}
.st {
  font-size: 22px;
  font-weight: 800;
  color: #1836a8;
}
.btn {
  width: 100%;
  padding: 12px;
  background: #1836a8;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover {
  opacity: 0.88;
}
.btn-g {
  width: 100%;
  padding: 9px;
  background: transparent;
  color: #6b7490;
  border: 1.5px solid #e0e3ef;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 7px;
}
.btn-g:hover {
  border-color: #adb5bd;
}

/* ── Card Type highlight ─────────────────────────────────────────────────── */
.card-type-highlight {
  background: #fffbf0;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 14px 10px;
  margin-bottom: 14px;
  position: relative;
}
.card-type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  flex-wrap: wrap;
  gap: 6px;
}
.card-type-lbl {
  margin-bottom: 0;
  font-size: 11px;
  color: #92400e;
}
.req-star {
  color: #dc2626;
}
.card-brands {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cbrand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0 7px;
  font-family: "Nunito", sans-serif;
}
.cbrand-visa {
  background: #1a1f6e;
  color: #fff;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 1px;
}
.cbrand-mc {
  background: #fff;
  border: 1px solid #e0e3ef;
  gap: 0;
  padding: 0 6px;
  position: relative;
}
.mc-left {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #eb001b;
  opacity: 0.9;
}
.mc-right {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f79e1b;
  opacity: 0.9;
  margin-left: -6px;
}
.cbrand-amex {
  background: #016fd0;
  color: #fff;
  font-size: 9.5px;
  letter-spacing: 0.8px;
}
.card-type-highlight select {
  border-color: #f59e0b;
  background: #fff;
}
.card-type-highlight select:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.card-type-note {
  margin-top: 7px;
  font-size: 11px;
  color: #92400e;
  font-weight: 600;
}
/* ─────────────────────────────────────────────────────────────────────────── */

.captcha-wrapper {
  display: flex;
  justify-content: center;
  margin: 10px 0 12px;
}

.empty {
  text-align: center;
  padding: 55px 20px;
  color: #b0b5c8;
}
.empty-i {
  font-size: 50px;
  margin-bottom: 12px;
}

.error-banner {
  background: #ffe5e5;
  border: 1px solid #ffc9c9;
  color: #c92a2a;
  margin: 14px auto 0;
  max-width: 1260px;
  border-radius: 8px;
  padding: 12px 16px;
}

footer {
  background: #1a1f38;
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
}
footer a {
  color: #6cb9ed;
  text-decoration: none;
}

@media (max-width: 860px) {
  .wrap {
    grid-template-columns: 1fr;
  }
  .row2 {
    grid-template-columns: 1fr;
  }
  header {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 480px) {
  header {
    padding: 8px 14px;
  }
  .logo-image {
    height: 46px;
  }
  .tag {
    padding: 3px 9px;
    font-size: 10px;
  }
  .wrap {
    padding: 0 12px;
    margin: 16px auto;
  }
  .ptype-row {
    grid-template-columns: 1fr;
  }
  .card-type-header {
    justify-content: flex-start;
  }
}
