@charset "UTF-8";
:root {
  --br-surface: #ffffff;
  --br-surface-2: #f7faff;
  --br-border: #e6ecf5;
  --br-text: #1f2533;
  --br-blue: #4c8dff;
  --br-green: #1fc77a;
  --br-orange: #ff8a3d;
  --br-red: #ea445a;
  --br-accent: linear-gradient(90deg, var(--br-blue) 0%, var(--br-green) 100%);
  --br-radius: 16px;
}

.payment__content {
  width: 100%;
  min-height: inherit;
  padding: 28px 16px;
}

.content__form-payment {
  position: relative;
  padding: 88px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 800px;
  width: min(100% - 24px, 570px);
  margin: 96px auto 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.9)), radial-gradient(1000px 500px at 0% 0%, rgba(76, 141, 255, 0.06), transparent 60%), radial-gradient(1000px 500px at 100% 0%, rgba(31, 199, 122, 0.06), transparent 60%);
  border: 1px solid rgba(76, 141, 255, 0.14);
  box-shadow: 0 10px 32px rgba(15, 39, 77, 0.08);
}
.content__form-payment::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(76, 141, 255, 0.28), rgba(31, 199, 122, 0.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0.55;
}

.form-wrapper {
  position: relative;
}

.form-logo {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 132px;
  height: 132px;
}
.form-logo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e7ebf2;
  box-shadow: 0 10px 24px rgba(15, 39, 77, 0.15);
  background: #fff;
}

/* Labels & controls */
.content__form-payment label {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.content__form-payment input.error {
  border-color: #ea445a;
}

.content__form-payment .error-msg {
  margin-top: 4px;
}

/* Tables — tidy card look */
.checkout__table,
.payment__method__table {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  margin: 28px 0;
  box-shadow: 0 10px 24px rgba(15, 39, 77, 0.06);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  font-size: 1rem;
}

.checkout__table thead tr,
.payment__method__table thead tr {
  background: linear-gradient(90deg, #62a82d, #649e2f);
  color: #fff;
}

.checkout__table th,
.checkout__table td {
  padding: 14px 12px;
}

.checkout__table td.total {
  min-width: 125px;
}

.checkout__table tbody tr,
.payment__method__table tbody tr {
  border-bottom: 1px solid #eef2f7;
}

.checkout__table tbody tr:nth-of-type(even),
.payment__method__table tbody tr:nth-of-type(even) {
  background: #fafbfd;
}

.checkout__table tbody tr:last-of-type,
.payment__method__table tbody tr:last-of-type {
  border-bottom: 2px solid #62a82d;
}

.checkout__table tbody tr.active-row,
.payment__method__table tbody tr.active-row {
  font-weight: 700;
  color: #649e2f;
}

/* ===== Modern payment method cards ===== */
.payment-methods {
  margin-top: 24px;
}

.payment-methods__title {
  font-weight: 700;
  font-size: 1rem;
  color: #2d3748;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  .payment-methods__title {
    font-size: 1.4rem;
    font-weight: 600;
  }
}

.payment-methods__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.2s ease;
  margin-bottom: 0;
  overflow: hidden;
}
.payment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(98, 168, 45, 0.06) 0%, rgba(46, 204, 113, 0.04) 50%, rgba(98, 168, 45, 0.06) 100%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.payment-card:hover {
  border-color: #a3d977;
  box-shadow: 0 4px 16px rgba(98, 168, 45, 0.1);
  transform: translateY(-1px);
}
.payment-card--selected {
  border-color: transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #62a82d, #2ecc71, #62a82d) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 6px 24px rgba(98, 168, 45, 0.16), 0 1px 4px rgba(98, 168, 45, 0.1);
  transform: translateY(-1px);
}
.payment-card--selected::before {
  opacity: 1;
}
.payment-card--selected::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #62a82d, #2ecc71);
  border-radius: 0 13px 0 10px;
  -webkit-clip-path: polygon(100% 0, 0 0, 100% 100%);
          clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.payment-card__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.payment-card__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #cbd5e0;
  transition: color 0.2s ease;
}
.payment-card__check svg {
  width: 100%;
  height: 100%;
}
.payment-card__check .payment-card__check-dot {
  fill: transparent;
  transition: fill 0.2s ease;
}

.payment-card--selected .payment-card__check {
  color: #62a82d;
}
.payment-card--selected .payment-card__check .payment-card__check-dot {
  fill: #62a82d;
}

.payment-card__logo {
  flex-shrink: 0;
  width: 110px;
  display: flex;
  align-items: center;
}
.payment-card__logo img {
  max-height: 34px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.payment-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.payment-card__name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #2d3748;
  line-height: 1.35;
}

.payment-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  padding: 2px 16px !important;
  border-radius: 20px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  line-height: 1.2 !important;
}

.payment-card__badge-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.payment-card__badge--instant {
  color: #2f7d0e;
  background: linear-gradient(135deg, rgba(72, 187, 40, 0.12), rgba(98, 168, 45, 0.1));
  border: 1px solid rgba(98, 168, 45, 0.3);
}
.payment-card__badge--instant .payment-card__badge-icon {
  color: #4caf50;
  filter: drop-shadow(0 0 3px rgba(76, 175, 80, 0.4));
}

.payment-card__badge--fast {
  color: #0369a1;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(2, 132, 199, 0.08));
  border: 1px solid rgba(2, 132, 199, 0.25);
}
.payment-card__badge--fast .payment-card__badge-icon {
  color: #0284c7;
}

.payment-card__badge--slow {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.08);
  border: 1px solid rgba(107, 114, 128, 0.18);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.payment-card--selected .payment-card__badge--slow {
  color: #b45309;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.12));
  border-color: rgba(245, 158, 11, 0.3);
}
.payment-card--selected .payment-card__badge--slow .payment-card__badge-icon {
  color: #f59e0b;
}

.payment-card__hint-extra {
  font-size: 0.75rem;
  color: #6b7280;
  display: block;
  margin-top: 2px;
}

.payment-submit-btn {
  max-width: 240px;
  border-radius: 12px !important;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.payment-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(98, 168, 45, 0.3);
}
.payment-submit-btn:active {
  transform: translateY(0);
}

@media (max-width: 520px) {
  .payment-card {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 12px 12px;
  }

  .payment-card__check {
    width: 21px;
    height: 21px;
    margin-top: 0;
  }

  .payment-card__logo {
    width: auto;
    min-width: 60px;
    flex-shrink: 0;
    margin-top: 0;
    margin-right: 16px;
  }
  .payment-card__logo img {
    max-height: 56px !important;
    min-height: 20px;
    width: auto;
    -o-object-fit: contain;
       object-fit: contain;
    display: block;
  }

  .payment-card__body {
    flex: 1;
    min-width: 0;
    gap: 6px;
  }

  .payment-card__name {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .payment-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em !important;
    padding: 4px 10px !important;
    border-radius: 999px;
  }

  .payment-card__badge-icon {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
  }
}
/* Background & deco elements */
.bg-clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}

.bg-clouds__cloud-1 {
  position: absolute;
  left: 0;
  top: 20px;
  opacity: 0.85;
}

.bg-clouds__cloud-2 {
  position: absolute;
  right: 25px;
  top: 20px;
  opacity: 0.85;
}

.bg-children-goblet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}
.bg-children-goblet .bg-children__boy {
  position: absolute;
  left: 280px;
  bottom: 35px;
}
.bg-children-goblet .bg-children__girl {
  position: absolute;
  left: 60px;
  bottom: 35px;
}
.bg-children-goblet .bg-children__goblet {
  position: absolute;
  right: 70px;
  bottom: 35px;
  z-index: 0;
}
.bg-children-goblet .bg-children__earth {
  position: absolute;
  right: 155px;
  bottom: 15px;
  z-index: -1;
}
.bg-children-goblet .bg-children__kite {
  position: absolute;
  left: 155px;
  bottom: calc(100vh - 520px);
  z-index: -1;
}

.bg-girl-on-books {
  width: 251px;
}

.add-bg__pencils::after {
  position: absolute;
  right: -130px;
  bottom: 200px;
  z-index: -1;
  content: url(https://cdn.brainring.co.uk/public/images/bg_element__pencils.svg);
}

.add-bg__protractor {
  position: relative;
}

.add-bg__protractor::after {
  position: absolute;
  right: -100px;
  bottom: 50px;
  content: url(https://cdn.brainring.co.uk/public/images/bg_element__protractor.svg);
}

/* Responsive */
@media (max-width: 1024px) {
  .content__form-payment {
    width: calc(100% - 20px);
    margin-top: 140px;
    padding: 88px 18px 20px;
    max-width: 700px;
  }

  .content__form-payment label {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .content__form-payment input,
.content__form-payment select {
    height: 48px;
  }

  .form-logo {
    top: -190px;
    width: 164px;
    height: 164px;
  }
}
@media (max-width: 720px) {
  .content__form-payment {
    width: 100%;
    margin-top: 150px;
    border-radius: 16px;
  }

  .form-logo {
    top: -190px;
    width: 172px;
    height: 172px;
  }
}
@media (max-width: 520px) {
  .content__form-payment {
    width: calc(100% - 12px);
    padding: 92px 14px 16px;
  }

  .form-logo {
    top: -200px;
    width: 180px;
    height: 180px;
  }
}
/* Large screens */
@media (min-width: 1280px) {
  .content__form-payment {
    padding: 96px 24px 24px;
  }
}
/* ===== Trust badge ===== */
.payment-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
  margin-bottom: 4px;
  font-size: 0.78rem;
  color: #8a9ab0;
  letter-spacing: 0.02em;
}

.payment-trust__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ===== Info note ===== */
.payment-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: min(100% - 24px, 570px);
  width: 100%;
  margin: 10px auto 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(76, 141, 255, 0.06);
  border: 1px solid rgba(76, 141, 255, 0.2);
  font-size: 0.9rem;
  color: #3d5068;
  line-height: 1.6;
}

.payment-note__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
  color: #4c8dff;
  opacity: 0.9;
}

.payment-note__text {
  flex: 1;
}
.payment-note__text p {
  margin: 0;
}

/* ===== Prominent warning (already paid teacher) ===== */
.payment-warning {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: min(100% - 24px, 570px);
  width: 100%;
  margin: 10px auto 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(229, 57, 53, 0.06);
  border: 1.5px solid rgba(229, 57, 53, 0.28);
  border-left: 4px solid #e53935;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3a1010;
  line-height: 1.6;
}
.payment-warning strong {
  color: #c62828;
}

.payment-warning__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #e53935;
}

/* Responsive table fix */
@media (max-width: 900px) {
  .payment__content {
    overflow-x: auto;
  }

  .checkout__table td {
    font-size: 1.05rem;
  }
}
