:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --ink: #17211b;
  --muted: #627067;
  --line: #dfe4dc;
  --accent: #0f7a63;
  --accent-dark: #095a48;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.form-shell {
  width: min(100%, 520px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(23, 33, 27, 0.08);
}

.intro {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.1;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.notice {
  margin-bottom: 18px;
  border: 1px solid #a9d9c9;
  border-radius: 8px;
  background: #effaf5;
  color: #0b5f4d;
  padding: 12px 14px;
  font-weight: 600;
}

.notice-error {
  border-color: #efb4ac;
  background: #fff2f0;
  color: #9d2b1f;
}

.lead-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 122, 99, 0.14);
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 13px 16px;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 33, 27, 0.42);
}

.modal-panel {
  width: min(100%, 360px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
  box-shadow: 0 24px 70px rgba(23, 33, 27, 0.22);
}

.modal-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.2;
}

.modal-form {
  display: grid;
  gap: 14px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.secondary-button:hover {
  background: #f1f4ef;
}

.loader-panel {
  width: 112px;
  min-height: 112px;
  display: grid;
  place-items: center;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #dfe4dc;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

@media (max-width: 560px) {
  .form-shell {
    padding: 22px;
  }

  h1 {
    font-size: 28px;
  }
}

.ad-body {
  background: #f4f0e6;
}

.pay-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(207, 35, 42, 0.38);
  background: rgba(255, 255, 255, 0.42);
  position: relative;
}

.twint-logo-wrap {
  background: #000000;
  padding: 0 18px;
  display: flex;
  align-items: center;
  height: 48px;
}

.pay-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #050505;
  color: #ffffff;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 0;
  padding: 8px 13px;
}

.pay-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ffb000 0%, #ff5f1f 48%, #e51454 100%);
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
}

.pay-tools {
  position: absolute;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-pill,
.help-dot {
  border: 1px solid #d8d1c2;
  background: rgba(255, 255, 255, 0.75);
  color: #6f675d;
  font-size: 12px;
  font-weight: 650;
  padding: 8px 10px;
}

.help-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
}

.ad-page {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: start center;
  padding: 78px 18px 40px;
}

.payment-card {
  width: min(100%, 184px);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.ad-amount {
  display: inline-grid;
  place-items: center;
  min-width: 116px;
  min-height: 54px;
  padding: 10px 13px;
  background: #050505;
  color: #ffffff;
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  transform: none;
  box-shadow: 0 8px 16px rgba(20, 18, 15, 0.12);
}

.payment-card p {
  color: #7d756d;
  font-size: 12px;
  line-height: 1.18;
}

.credit-button {
  width: 154px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffbd00 0%, #ff7a00 45%, #e1183d 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 10px;
  box-shadow: 0 7px 16px rgba(225, 24, 61, 0.24);
  text-align: center;
  text-decoration: none;
}

.credit-button:hover {
  background: linear-gradient(90deg, #f0af00 0%, #f06f00 45%, #cf1437 100%);
}

.selection-page {
  min-height: calc(100vh - 72px);
  padding: 44px 18px;
}

.selection-panel {
  width: min(100%, 760px);
  margin: 0 auto;
}

.selection-head {
  margin-bottom: 22px;
  text-align: center;
}

.selection-head h1 {
  font-size: 28px;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.selection-button {
  min-height: 160px;
  border: 0;
  background: transparent;
  color: #26211b;
  padding: 0;
  text-decoration: none;
}

.selection-button:hover {
  background: transparent;
}

.bank-choice {
  display: grid;
  place-items: center;
}

.bank-choice-icon {
  width: 100%;
  min-height: 160px;
  display: grid;
  grid-template-rows: 92px 68px;
  overflow: hidden;
  border: 1px solid #ded8ca;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(38, 33, 27, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.bank-choice:hover .bank-choice-icon {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(38, 33, 27, 0.14);
}

.twint-icon {
  display: grid;
  place-items: center;
  background: #050505;
}

.twint-logo {
  width: 118px;
  height: auto;
  display: block;
}

.bank-icon {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 10px 8px;
  border-top: 1px solid #ded8ca;
  background: #ffffff;
}

.bank-name {
  width: 100%;
  color: #26211b;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  overflow-wrap: anywhere;
}

.bank-logo {
  display: block;
  max-width: 116px;
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .pay-header {
    height: 66px;
  }

  .pay-tools {
    right: 10px;
    gap: 6px;
  }

  .language-pill {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-inline: 8px;
  }

  .help-dot {
    width: 30px;
    height: 30px;
  }

  .ad-page {
    min-height: calc(100vh - 66px);
    padding-top: 64px;
  }
}
