:root {
  --payment-ink: #073c41;
  --payment-teal: #087a77;
  --payment-aqua: #56c9bd;
  --payment-sky: #e8f8f6;
  --payment-red: #c72f4b;
  --payment-red-dark: #a21f3b;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #eaf5f2; }

body.online-payment-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--payment-ink);
  background: radial-gradient(circle at 84% 7%, rgba(92, 204, 192, .17), transparent 27rem), linear-gradient(180deg, #f7fcfb, #e7f4f1);
  font-family: var(--tabib-font, 'B Koodak', Tahoma, Arial, sans-serif);
}

.payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding: 11px clamp(22px, 5.4vw, 105px);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 18px rgba(6, 57, 59, .08);
}

.payment-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; white-space: nowrap; }
.payment-brand-logo { display: grid; place-items: center; width: 56px; height: 56px; padding: 3px; border-radius: 50%; background: linear-gradient(145deg, #e7ffff, #86d6ce); box-shadow: inset 0 1px 3px #fff, 0 5px 12px rgba(3, 91, 91, .18); }
.payment-brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.payment-brand strong { display: block; font-size: clamp(.95rem, 1.15vw, 1.15rem); line-height: 1.2; }
.payment-brand small { display: block; margin-top: 3px; color: #5c7778; font-size: .72rem; }
.payment-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(11px, 1.7vw, 30px); font-size: clamp(.82rem, .95vw, 1rem); }
.payment-nav a { color: #23575a; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.payment-nav a:hover, .payment-nav a:focus-visible { color: var(--payment-teal); transform: translateY(-1px); outline: none; }
.payment-nav-return { display: inline-flex; align-items: center; gap: 5px; padding: 9px 14px; border: 1px solid #b8ded9; border-radius: 999px; background: #f7fdfc; font-weight: 800; }

.payment-main { padding: clamp(25px, 4.4vw, 74px) clamp(14px, 4vw, 72px); }

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, .85fr);
  width: min(1310px, 100%);
  min-height: min(690px, calc(100vh - 185px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(7, 65, 67, .17);
}

.payment-story { position: relative; grid-column: 2; display: grid; align-items: end; min-height: 610px; padding: clamp(38px, 5vw, 75px); overflow: hidden; background: #174a4d url('/media/torud-care.jpg') center/cover no-repeat; color: #fff; }
.payment-story::before { position: absolute; inset: 0; content: ''; background: linear-gradient(270deg, rgba(3, 41, 45, .9), rgba(4, 60, 60, .62) 48%, rgba(1, 34, 39, .27)); }
.payment-story::after { position: absolute; inset: auto -15% -35% auto; width: 420px; height: 420px; border: 1px solid rgba(177, 255, 244, .28); border-radius: 50%; box-shadow: 0 0 0 44px rgba(178, 255, 245, .06), 0 0 0 88px rgba(178, 255, 245, .04); content: ''; }
.payment-story-content { position: relative; z-index: 1; max-width: 530px; text-shadow: 0 2px 20px rgba(1, 28, 30, .43); }
.payment-story-kicker, .payment-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #a9f6ec; font-size: .95rem; font-weight: 800; }
.payment-story-kicker::before { width: 30px; height: 1px; background: currentColor; content: ''; }
.payment-story h1 { margin: 17px 0; color: #fff; font-size: clamp(2rem, 3.5vw, 3.65rem); line-height: 1.42; }
.payment-story h1 em { color: #d7fff9; font-style: normal; }
.payment-story p { max-width: 530px; margin: 0; font-size: clamp(1rem, 1.28vw, 1.28rem); line-height: 2; }
.payment-story-points { display: grid; gap: 10px; margin-top: 25px; font-size: .95rem; }
.payment-story-points span { display: flex; align-items: center; gap: 8px; }
.payment-story-points b { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: rgba(126, 242, 226, .22); color: #bafff5; font-family: Arial, sans-serif; font-size: .75rem; }
.payment-trust-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 27px; color: #d1fff9; font-size: .92rem; }
.payment-trust-note span { color: #ffdb85; font-size: 1.1rem; }

.payment-card { grid-column: 1; align-self: center; padding: clamp(31px, 4.1vw, 63px); background: #fff; }
.payment-card-heading { margin-bottom: 25px; }
.payment-eyebrow { color: var(--payment-teal); }
.payment-card h2 { margin: 5px 0 5px; font-size: clamp(1.65rem, 2.25vw, 2.45rem); line-height: 1.35; }
.payment-card-heading p { margin: 0; color: #70898a; font-size: .94rem; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 24px; padding: 0; border: 0; }
.payment-methods legend, .payment-field > label { display: block; width: 100%; margin-bottom: 8px; color: #0d5558; font-size: .95rem; font-weight: 900; }
.payment-methods legend { grid-column: 1 / -1; }
.payment-method { position: relative; display: grid; grid-template-columns: 33px minmax(0, 1fr) 15px; align-items: center; gap: 8px; min-height: 100px; padding: 14px; border: 1px solid #d5e5e5; border-radius: 15px; background: #fff; cursor: pointer; transition: .18s ease; }
.payment-method:hover { border-color: #77cfc5; box-shadow: 0 8px 18px rgba(8, 122, 119, .08); }
.payment-method.is-selected { border-color: #e7869a; background: linear-gradient(135deg, #fffafd, #fff3f5); box-shadow: inset 0 0 0 1px rgba(206, 50, 82, .22); }
.payment-method input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.payment-method-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: #e8f8f6; color: var(--payment-teal); }
.payment-method.is-selected .payment-method-icon { background: #ffe5eb; color: var(--payment-red); }
.payment-method svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.payment-method strong, .payment-method small { display: block; }
.payment-method strong { color: #184d50; font-size: .98rem; }
.payment-method small { margin-top: 2px; color: #72898b; font-size: .7rem; line-height: 1.4; }
.payment-method i { display: block; width: 15px; height: 15px; border: 2px solid #a6bdbf; border-radius: 50%; }
.payment-method.is-selected i { border-color: #e62b58; box-shadow: inset 0 0 0 3px #fff; background: #e62b58; }

.payment-field { margin-top: 18px; }
.payment-field label small { color: #789092; font-size: .74rem; font-weight: 700; }
.payment-amount-input { display: flex; align-items: center; height: 68px; overflow: hidden; border: 1px solid #d7e5e6; border-radius: 14px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.payment-amount-input:focus-within { border-color: #2eaaa2; box-shadow: 0 0 0 3px rgba(59, 187, 176, .12); }
.payment-amount-input input, .payment-mobile-field input { min-width: 0; width: 100%; border: 0; outline: 0; color: #143f42; background: transparent; font: 900 clamp(1.04rem, 1.25vw, 1.25rem)/1 var(--tabib-font, 'B Koodak', Tahoma, Arial, sans-serif); }
.payment-amount-input input { height: 100%; padding: 8px 18px; text-align: right; }
.payment-amount-input input::placeholder, .payment-mobile-field input::placeholder { color: #a7b6b7; font-size: .9rem; font-weight: 700; }
.payment-amount-input span { flex: 0 0 auto; align-self: stretch; display: grid; place-items: center; min-width: 74px; padding: 0 13px; border-right: 1px solid #dce9e9; color: #0a5e61; background: #f5fbfb; font-size: 1.06rem; font-weight: 900; }
.payment-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.payment-presets button { min-height: 47px; border: 1px solid transparent; border-radius: 11px; color: #285557; background: #eef5f4; font: 800 .88rem var(--tabib-font, 'B Koodak', Tahoma, Arial, sans-serif); cursor: pointer; transition: .18s ease; }
.payment-presets button b { margin-right: 5px; color: var(--payment-teal); font-family: Arial, sans-serif; }
.payment-presets button:hover, .payment-presets button.is-active { border-color: #71cac1; color: #075d5e; background: #e1f7f3; transform: translateY(-1px); }
.payment-mobile-field input { height: 52px; padding: 8px 16px; border: 1px solid #d7e5e6; border-radius: 12px; font-size: 1rem; text-align: right; transition: border-color .18s ease, box-shadow .18s ease; }
.payment-mobile-field input:focus { border-color: #2eaaa2; box-shadow: 0 0 0 3px rgba(59, 187, 176, .12); }
.payment-acknowledgement { display: flex; align-items: flex-start; gap: 8px; margin: 19px 0 10px; color: #5c7779; font-size: .8rem; cursor: pointer; }
.payment-acknowledgement input { appearance: none; flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; border: 1px solid #9abfc0; border-radius: 5px; background: #fff; cursor: pointer; }
.payment-acknowledgement input:checked { border-color: var(--payment-teal); background: var(--payment-teal) center/12px no-repeat; background-image: linear-gradient(45deg, transparent 47%, #fff 48% 58%, transparent 59%), linear-gradient(-45deg, transparent 42%, #fff 43% 54%, transparent 55%); }
.payment-feedback { min-height: 0; margin: 0; color: #637d7f; font-size: .84rem; line-height: 1.8; }
.payment-feedback.is-error, .payment-feedback.is-notice { min-height: 34px; padding: 7px 11px; border-radius: 9px; }
.payment-feedback.is-error { color: #a61e3b; background: #fff0f3; }
.payment-feedback.is-notice { color: #056661; background: #e5f8f3; }
.payment-submit { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 59px; margin-top: 12px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #e73e67, var(--payment-red) 54%, var(--payment-red-dark)); box-shadow: 0 12px 22px rgba(187, 30, 68, .25), inset 0 1px 1px rgba(255, 255, 255, .34); font: 900 1.1rem var(--tabib-font, 'B Koodak', Tahoma, Arial, sans-serif); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.payment-submit:hover, .payment-submit:focus-visible { box-shadow: 0 15px 28px rgba(187, 30, 68, .33), inset 0 1px 1px rgba(255, 255, 255, .34); outline: none; transform: translateY(-2px); }
.payment-submit svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.payment-safe-note { display: flex; align-items: flex-start; justify-content: center; gap: 5px; margin: 11px 0 0; color: #70888a; font-size: .71rem; line-height: 1.65; text-align: center; }
.payment-safe-note span { color: var(--payment-teal); font-size: 1rem; line-height: 1.1; }

.payment-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: min(1310px, calc(100% - 28px)); margin: 0 auto; padding: 0 0 25px; color: #537678; font-size: .78rem; }
.payment-footer a { color: #0b7775; text-decoration: none; font-weight: 900; }
.payment-footer a:hover { text-decoration: underline; }

@media (max-width: 920px) {
  .payment-header { padding-inline: 24px; }
  .payment-nav a:not(.payment-nav-return) { display: none; }
  .payment-layout { grid-template-columns: 1fr; max-width: 610px; }
  .payment-story, .payment-card { grid-column: 1; }
  .payment-story { min-height: 390px; padding: 42px 35px; }
  .payment-story h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
  .payment-card { padding: 35px; }
}

@media (max-width: 520px) {
  .payment-header { min-height: 72px; padding-inline: 16px; }
  .payment-brand-logo { width: 45px; height: 45px; }
  .payment-brand strong { font-size: .88rem; }
  .payment-brand small { font-size: .63rem; }
  .payment-nav-return { padding: 7px 9px; font-size: .73rem; }
  .payment-main { padding: 14px 10px 24px; }
  .payment-layout { border-radius: 20px; }
  .payment-story { min-height: 350px; padding: 31px 24px; }
  .payment-story p { font-size: .93rem; line-height: 1.9; }
  .payment-story-points { font-size: .79rem; }
  .payment-card { padding: 28px 20px; }
  .payment-methods { grid-template-columns: 1fr; }
  .payment-method { min-height: 76px; }
  .payment-presets button { font-size: .73rem; }
  .payment-footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 380px) {
  .payment-header { gap: 7px; padding-inline: 10px; }
  .payment-brand { gap: 6px; }
  .payment-brand-logo { width: 40px; height: 40px; }
  .payment-brand small { display: none; }
  .payment-nav-return { padding: 7px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
