:root {
  --bg: #e9f2fb;
  --surface: #f4f8fd;
  --card: #ffffff;
  --text: #0e1a2b;
  --muted: #5b708a;
  --accent: #1c7ed6;
  --accent-strong: #228be6;
  --error: #d64545;
  --success: #2f9e44;
  --border: #d6e3f3;
  --shadow: 0 20px 60px rgba(15, 40, 80, 0.18);
}

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

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(28, 126, 214, 0.12), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(34, 139, 230, 0.1), transparent 22%),
    linear-gradient(135deg, #f7fbff, #eaf3ff 60%, #e5effe);
  color: var(--text);
  min-height: 100vh;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.hero__image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.65), rgba(13, 27, 42, 1));
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px 32px 40px;
}

.hero__branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__logo-wrap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.hero__logo {
  width: 80%;
  height: 80%;
  object-fit: contain;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  display: block;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}

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

.hero-title {
  color: #fff;
}

.sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.shell {
  margin: 24px auto 40px;
  width: min(1400px, 94vw);
  position: relative;
  z-index: 1;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
}

.primary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.summary {
  position: sticky;
  top: 20px;
  align-self: start;
  min-width: 360px;
}

.summary h3 {
  margin: 0 0 10px;
}

.summary__list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
  column-gap: 10px;
}

.summary__list li span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary__muted {
  color: var(--muted);
  font-size: 13px;
}

.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  padding-top: 10px;
}

.summary__actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 20px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.coupon {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.coupon__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.coupon__label {
  letter-spacing: 0.08em;
}

.coupon__body {
  margin-top: 12px;
}

.coupon__actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.coupon__message {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.link-button {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.link-button:hover {
  color: var(--accent-strong);
}

.section h2 {
  margin: 0;
  font-size: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(28, 126, 214, 0.08);
  border: 1px solid rgba(28, 126, 214, 0.35);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--single {
  grid-template-columns: 1fr;
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--split {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid.compact {
  gap: 18px;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.field-spaced {
  margin-bottom: 16px;
}

.hidden {
  display: none !important;
}

.field input,
.field select {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 20px 14px 10px;
  border-radius: 4px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b708a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(77, 210, 255, 0.15);
  transform: translateY(-1px);
}

.field label {
  position: absolute;
  left: 12px;
  top: 16px;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.15s ease, transform 0.15s ease, font-size 0.15s ease;
}

.field select + label {
  transform: translateY(-12px);
  font-size: 11px;
}

.field:focus-within label,
.field.filled label {
  color: var(--accent);
  transform: translateY(-12px);
  font-size: 11px;
}

.field.required label::after {
  content: " *";
  color: #e63946;
  margin-left: 2px;
  font-weight: 700;
}

.fieldset.required .fieldset__title::after {
  content: " *";
  color: #e63946;
  margin-left: 4px;
  font-weight: 700;
}

.required-asterisk {
  color: #e63946;
  font-weight: 700;
  margin-left: 4px;
}

.fieldset {
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 14px;
}

.fieldset__title {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.radio-pill input {
  accent-color: var(--accent);
  transform: scale(1.05);
}

.radio-pill span {
  color: var(--text);
  font-size: 14px;
}

.radio-pill small {
  color: var(--muted);
}

.radio-pill:hover,
.radio-pill input:focus-visible + span {
  border-color: var(--accent);
  background: rgba(28, 126, 214, 0.1);
}

.select-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  display: flex;
}

.select-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.select-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.select-card__title {
  margin: 0;
  font-weight: 700;
}

.select-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.select-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(28, 126, 214, 0.15);
}

.select-card:hover {
  transform: translateY(-1px);
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 4px;
}

.alert ul {
  margin: 8px 0 0 18px;
  color: var(--text);
}

.alert--error {
  background: rgba(214, 69, 69, 0.1);
  border: 1px solid rgba(214, 69, 69, 0.6);
  color: #8a1c1c;
}

.alert--success {
  background: rgba(47, 158, 68, 0.12);
  border: 1px solid rgba(47, 158, 68, 0.6);
  color: #1b5c2a;
}

.submit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(28, 126, 214, 0.25);
  font-size: 16px;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-secondary {
  background: #e7f0fb;
  color: #1c3b62;
  box-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(28, 126, 214, 0.35);
}

.btn-primary.btn-secondary:hover {
  background: #d7e7f8;
  color: #1c3b62;
  box-shadow: none;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.paypal-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.muted {
  color: var(--muted);
  margin: 10px 0;
}

.pricing-note {
  font-size: 13px;
  margin: 20px 0 20px;
}

.teammate-section.hidden {
  display: none;
}

.teammate-section .field input:disabled,
.teammate-section .field select:disabled {
  opacity: 0.65;
}

.site-footer {
  padding: 18px 0 28px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.site-footer a:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .hero__content {
    align-items: flex-end;
    padding: 18px;
  }

  .hero__logo-wrap {
    width: 140px;
    height: 140px;
  }

  .shell {
    margin-top: 20px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }
}
