.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
  gap: 28px;
  align-items: start;
  margin-top: 34px;
}

.checkout-card,
.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.checkout-card {
  position: relative;
}

.checkout-card h3,
.checkout-summary h3 {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;

  color: var(--text);

  font-size: .88rem;
  font-weight: 700;
}

.checkout-form input {
  width: 100%;
  min-width: 0;
  height: 48px;

  box-sizing: border-box;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: #fff;
  color: var(--text);

  padding: 0 14px;

  font: inherit;

  outline: none;

  transition:
    border-color .18s ease,
    box-shadow .18s ease;
}

.checkout-form input:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 3px rgba(30, 107, 255, .10);
}

.checkout-form input[readonly] {
  background: #f8fafc;
  color: var(--muted);
}

.checkout-form .checkout-full {
  grid-column: 1 / -1;
}

.checkout-submit {
  grid-column: 1 / -1;

  width: 100%;
  min-height: 52px;

  margin-top: 4px;

  border: none;
  border-radius: 13px;

  background: var(--primary);
  color: #fff;

  font: inherit;
  font-weight: 800;

  cursor: pointer;

  transition:
    transform .18s ease,
    opacity .18s ease,
    box-shadow .18s ease;
}

.checkout-submit:hover {
  transform: translateY(-1px);

  box-shadow:
    0 10px 24px rgba(30, 107, 255, .18);
}

.checkout-submit:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.checkout-status {
  grid-column: 1 / -1;

  min-height: 20px;

  margin: 0;

  color: var(--muted);

  text-align: center;

  font-size: .88rem;
}

.checkout-status.is-error {
  color: #b42318;
}

.checkout-secure-note {
  grid-column: 1 / -1;

  display: flex;
  align-items: center;
  gap: 11px;

  padding: 14px 16px;

  border: 1px solid #e3e9ff;
  border-radius: 13px;

  background: #f7f9ff;

  color: var(--muted);

  font-size: .84rem;
  line-height: 1.5;
}

.checkout-secure-note strong {
  display: block;
  color: var(--text);
  font-size: .88rem;
}

.checkout-summary {
  position: sticky;
  top: 24px;
}

.checkout-summary-plan {
  margin-bottom: 18px;

  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: #f8fafc;
}

.checkout-summary-plan span {
  display: block;

  margin-bottom: 5px;

  color: var(--muted);

  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.checkout-summary-plan strong {
  color: var(--text);

  font-size: 1.35rem;
}

.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  padding: 12px 0;

  color: var(--muted);
}

.summary-row strong {
  color: var(--text);
}

.summary-total {
  align-items: center;

  padding-top: 18px;

  color: var(--text);

  font-size: 1.08rem;
  font-weight: 700;
}

.summary-total strong {
  color: var(--primary);

  font-size: 1.45rem;
}

.checkout-summary hr {
  border: none;
  border-top: 1px solid var(--border);

  margin: 10px 0;
}

.checkout-renewal {
  margin-top: 8px;

  color: var(--muted);

  font-size: .78rem;
  line-height: 1.5;
}

.checkout-payment-note {
  margin-top: 24px;

  padding-top: 18px;

  border-top: 1px solid var(--border);

  color: var(--muted);

  font-size: .8rem;
  line-height: 1.6;
}

@media (max-width: 850px) {

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

  .checkout-summary {
    position: static;
  }

}

@media (max-width: 620px) {

  .checkout-card,
  .checkout-summary {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .checkout-form {
    grid-template-columns: 1fr;
  }

  .checkout-form .checkout-full,
  .checkout-submit,
  .checkout-status,
  .checkout-secure-note {
    grid-column: auto;
  }

}

.checkout-page {
  min-height: calc(100vh - 120px);
  background: #f6f8fc;
}

.checkout-container {
  max-width: 1080px !important;
  margin: 0 auto;
}

.checkout-page-heading {
  text-align: center;
  margin-bottom: 38px;
}

.checkout-page-heading h2 {
  margin: 0;

  color: var(--text);

  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(42px, 6vw, 64px);
  letter-spacing: .02em;
}

.checkout-page-heading p {
  margin-top: 8px;
}

.checkout-eyebrow {
  display: block;

  margin-bottom: 8px;

  color: var(--primary);

  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.checkout-page {
  position: relative;

  min-height: calc(100vh - 86px);

  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.07) 0px,
      rgba(15, 23, 42, 0.035) 95px,
      rgba(15, 23, 42, 0.015) 180px,
      #f6f8fc 280px,
      #ffffff 100%
    );
}

.checkout-page::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 120px;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.045) 0%,
      rgba(15, 23, 42, 0.015) 55%,
      transparent 100%
    );

  z-index: 0;
}

.checkout-page > .section {
  position: relative;
  z-index: 1;
}

.checkout-signup-section {
  margin-top: 18px;
  padding-top: 2px;
}

.checkout-signup-heading {
  margin-bottom: 16px;
}

.checkout-signup-heading h3 {
  margin: 0 0 6px;

  color: #121a2b;

  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.checkout-signup-heading p {
  margin: 0;

  color: #5d6a84;

  font-size: 0.92rem;
  line-height: 1.45;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.checkout-field label {
  color: #151d2d;

  font-size: 0.84rem;
  font-weight: 800;
}

.checkout-field input {
  width: 100%;
  height: 48px;

  padding: 0 14px;

  box-sizing: border-box;

  border: 1px solid #cbd8ef;
  border-radius: 12px;

  background: #ffffff;

  color: #151d2d;

  font-family: inherit;
  font-size: 0.92rem;

  outline: none;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.checkout-field input::placeholder {
  color: #98a4b8;
}

.checkout-field input:focus {
  border-color: #2a6df5;

  box-shadow:
    0 0 0 3px rgba(42, 109, 245, 0.1);
}

.checkout-terms {
  display: flex;
  align-items: flex-start;

  gap: 9px;

  margin: 14px 0 18px;

  color: #151d2d;

  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.checkout-terms input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  flex: 0 0 auto;

  width: 18px;
  height: 18px;

  margin: 1px 0 0;

  border: 1.5px solid #b8c5dc;
  border-radius: 5px;

  background: #ffffff;

  cursor: pointer;

  position: relative;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.checkout-terms input[type="checkbox"]:checked {
  background: #246bff;
  border-color: #246bff;
}

.checkout-terms input[type="checkbox"]:checked::after {
  content: "";

  position: absolute;

  left: 5px;
  top: 2px;

  width: 5px;
  height: 9px;

  border: solid #ffffff;
  border-width: 0 2px 2px 0;

  transform: rotate(45deg);
}

.checkout-terms input[type="checkbox"]:focus-visible {
  box-shadow:
    0 0 0 3px rgba(36, 107, 255, 0.14);
}

.checkout-terms a {
  color: #246bff;
  font-weight: 800;
  text-decoration: none;
}

.checkout-terms a:hover {
  text-decoration: underline;
}

.checkout-security {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  margin-top: 6px;
  padding: 16px 18px;

  border: 1px solid #d7e2f5;
  border-radius: 13px;

  background: #f5f8ff;
}

.checkout-security strong {
  display: block;

  margin-bottom: 3px;

  color: #141d2d;

  font-size: 0.9rem;
}

.checkout-security p {
  margin: 0;

  color: #5d6a84;

  font-size: 0.82rem;
  line-height: 1.45;
}

#checkoutSubmitButton {
  width: 100%;
  min-height: 52px;

  margin-top: 20px;

  border: 0;
  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #2d74ff,
      #1f5edb
    );

  color: #ffffff;

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;

  cursor: pointer;

  box-shadow:
    0 12px 28px rgba(36, 107, 255, 0.18);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

#checkoutSubmitButton:hover {
  transform: translateY(-1px);

  box-shadow:
    0 16px 34px rgba(36, 107, 255, 0.24);
}

#checkoutSubmitButton:active {
  transform: translateY(0);
}

#checkoutSubmitButton:disabled {
  cursor: not-allowed;

  opacity: 0.65;

  transform: none;

  box-shadow: none;
}

#checkoutStatus {
  margin: 12px 0 0;

  text-align: center;

  color: #5d6a84;

  font-size: 0.82rem;
  line-height: 1.4;
}

#checkoutStatus.is-error {
  color: #c93434;
}

@media (max-width: 760px) {

  .checkout-form-grid {
    grid-template-columns: 1fr;

    gap: 13px;
  }

  .checkout-signup-heading h3 {
    font-size: 1.05rem;
  }

  .checkout-field input {
    height: 46px;
  }

  .checkout-security {
    padding: 14px;
  }

  #checkoutSubmitButton {
    min-height: 50px;
  }

}

.checkout-signup-section {
  grid-column: 1 / -1;

  width: 100%;

  margin-top: 18px;

  padding-top: 4px;
}

.checkout-signup-section .checkout-form-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 16px 18px;

  width: 100%;
}

.checkout-signup-section
.checkout-field {
  width: 100%;

  min-width: 0;
}


.checkout-signup-section
.checkout-field input[type="password"] {
  display: block;

  width: 100%;

  min-width: 0;

  height: 48px;

  box-sizing: border-box;

  padding: 0 14px;

  border: 1px solid var(--border);

  border-radius: 12px;

  background: #ffffff;

  color: var(--text);

  font: inherit;
  font-size: 0.92rem;
}


.checkout-signup-section
.checkout-field input[type="password"]::placeholder {
  color: #98a4b8;
}

.checkout-signup-section
.checkout-terms {
  display: flex;

  flex-direction: row;

  align-items: center;

  justify-content: flex-start;

  gap: 9px;

  width: 100%;

  margin: 14px 0 18px;

  color: var(--text);

  font-size: 0.84rem;
  font-weight: 600;

  line-height: 1.4;
}

.checkout-form
.checkout-terms
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  display: inline-block;

  flex: 0 0 18px;

  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;

  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;

  margin: 0;

  padding: 0;

  border: 1.5px solid #b8c5dc;

  border-radius: 5px;

  background: #ffffff;

  cursor: pointer;

  position: relative;

  box-shadow: none;
}

.checkout-form
.checkout-terms
input[type="checkbox"]:checked {
  background: var(--primary);

  border-color: var(--primary);
}

.checkout-form
.checkout-terms
input[type="checkbox"]:checked::after {
  content: "";

  position: absolute;

  left: 5px;
  top: 2px;

  width: 5px;
  height: 9px;

  border: solid #ffffff;

  border-width:
    0
    2px
    2px
    0;

  transform:
    rotate(
      45deg
    );
}

.checkout-terms span {
  display: inline;

  margin: 0;

  padding: 0;
}


.checkout-terms a {
  display: inline;

  color: var(--primary);

  font-weight: 800;

  text-decoration: none;
}


.checkout-terms a:hover {
  text-decoration: underline;
}

@media (max-width: 620px) {

  .checkout-signup-section
  .checkout-form-grid {
    grid-template-columns: 1fr;
  }


  .checkout-signup-section
  .checkout-terms {
    align-items: flex-start;
  }

}