/* ============================================================
   Sign-up and resubscribe pages (Views/Shared/_LayoutSignup.cshtml).
   Matches the marketing site: navy header, amber button, Inter.
   Loaded after Bootstrap 3, which still supplies the grid reset,
   form controls, alerts and the sign-in modal.
   ============================================================ */

.signup-page {
  margin: 0;
  background: #f4f9fd;
  color: #0a2540;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.signup-page a { color: #0a6fa0; }
.signup-page a:hover, .signup-page a:focus { color: #0a2540; }

/* ---------- Header ---------- */
.su-header { background: #0a1c3a; border-bottom: 3px solid #e9a825; }
.su-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.su-logo img { display: block; height: 42px; width: auto; }
.su-header-right { display: flex; align-items: center; gap: 20px; color: #fff; font-size: 14px; }
.su-header-secure { display: inline-flex; align-items: center; gap: 6px; color: #b8e3f7; font-weight: 600; white-space: nowrap; }
.signup-page .su-header .ihm-cot-toggle { color: #f5c850; text-decoration: none; white-space: nowrap; }
.signup-page .su-header .ihm-cot-toggle:hover, .signup-page .su-header .ihm-cot-toggle:focus { color: #fff; }

/* ---------- Page frame ---------- */
.su-main { max-width: 1080px; margin: 0 auto; padding: 22px 20px 40px; }
.su-top { margin-bottom: 18px; }
.su-top h1 { margin: 0 0 6px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: #0a2540; }
.su-top p { margin: 0; font-size: 17px; color: #51657b; }

/* Form on the left, plan summary and what-you-get on the right. */
.su-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas: "form summary" "form includes";
  grid-template-rows: auto 1fr;
  gap: 20px 28px;
  align-items: start;
}
.su-grid > form, .su-grid > .su-form-col { grid-area: form; min-width: 0; margin: 0; }
.su-summary { grid-area: summary; }
.su-includes { grid-area: includes; }

.su-card, .su-summary, .su-includes {
  background: #fff;
  border: 1px solid #cfe5f4;
  border-radius: 14px;
  box-shadow: 0 4px 6px rgba(10, 37, 64, 0.04), 0 10px 20px rgba(10, 37, 64, 0.06);
}
.su-card { padding: 22px 28px 26px; }

/* ---------- Plan summary ---------- */
.su-summary { padding: 22px 24px 20px; border-top: 4px solid #e9a825; }
.su-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #7a5200; }
.su-plan-name { margin: 6px 0 14px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; color: #0a2540; }
.su-due { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; line-height: 1; }
.su-due-amount { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: #0a2540; }
.su-due-when { font-size: 17px; font-weight: 600; color: #51657b; }
.su-due-note { margin: 10px 0 0; font-size: 15px; color: #334155; }
.su-schedule { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid #e3f1fa; }
.su-schedule li { display: flex; justify-content: space-between; padding: 7px 2px; border-bottom: 1px solid #e3f1fa; font-size: 15px; font-variant-numeric: tabular-nums; }
.su-total, .su-coupon, .su-period { margin: 10px 0 0; font-size: 14px; color: #51657b; }
.su-coupon { color: #334155; }
.su-change { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }

/* ---------- What you get ---------- */
.su-includes { padding: 20px 24px; }
.su-includes ul { list-style: none; margin: 10px 0 0; padding: 0; }
.su-includes li { position: relative; padding: 5px 0 5px 28px; font-size: 15px; line-height: 1.45; color: #334155; }
.su-includes li strong { color: #0a2540; }
.su-includes li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #e9a825 url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230a2540'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.su-help { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e3f1fa; font-size: 15px; }
.su-help > strong { display: block; color: #0a2540; }
.signup-page .su-help .ihm-cot-toggle { font-weight: 600; text-decoration: none; }

/* ---------- Form ---------- */
.su-card fieldset { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.su-card legend {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  margin: 0 0 12px; padding: 0 0 7px;
  border: 0; border-bottom: 2px solid #e9a825;
  font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: #0a2540;
}
.su-legend-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: #156a44; white-space: nowrap; }
.su-card .form-group { margin: 0 0 14px; }
.su-card label { display: block; margin: 0 0 5px; font-size: 15px; font-weight: 600; color: #0a2540; }
/* 16px text keeps iPhones from zooming the page when a field gets focus. */
.su-card .form-control {
  height: 46px;
  padding: 9px 14px;
  font-size: 16px;
  color: #0a2540;
  border: 1px solid #b9cfe0;
  border-radius: 8px;
  box-shadow: none;
}
.su-card .form-control:focus { border-color: #106990; box-shadow: 0 0 0 3px rgba(16, 105, 144, 0.18); }
.su-card .form-control[readonly] { background: #f1f6fa; color: #334155; }
.su-card .form-control.error { border-color: #b42318; }
.su-card label.error { margin: 6px 0 0; font-size: 14px; font-weight: 500; color: #b42318; }
.su-hint { margin: 6px 0 0; font-size: 14px; color: #51657b; }
.su-inline-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; }

/* Password field with "show password" beside it; the revealed password and any error wrap below. */
.su-pw-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.su-pw-row .form-control { flex: 1 1 200px; min-width: 0; max-width: 340px; }
.su-pw-row label.error, .su-pw-row #show-pw-lbl { flex: 0 0 100%; order: 3; }
.su-pw-row #show-pw-lbl .label { display: inline-block; max-width: 100%; padding: 8px 12px; font-size: 16px; font-weight: 600; white-space: normal; word-break: break-all; background: #fdf2d9; color: #0a2540; }
.su-card .checkbox { margin: 0; }
.su-card .checkbox label { display: inline-block; margin: 0; font-size: 14px; font-weight: 500; color: #334155; }

.su-card-row { display: flex; align-items: center; gap: 12px; }
.su-card-row .form-control { flex: 1 1 auto; min-width: 0; }
.su-card-row img { flex: none; height: 26px; width: auto; }
.su-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }

.su-trial ol { margin: 0; padding-left: 20px; font-size: 15px; color: #334155; }
.su-trial li { padding-top: 6px; }

.su-card .alert { margin: 4px 0 0; border-radius: 8px; font-size: 15px; }
.su-card .alert h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }

/* ---------- Submit ---------- */
.su-submit { margin-top: 4px; }
.signup-page .su-submit .btn {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 10px;
  background: #e9a825;
  color: #0a2540;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.3;
  white-space: normal;
  text-shadow: none;
  box-shadow: 0 4px 12px rgba(233, 168, 37, 0.3);
}
.signup-page .su-submit .btn:hover, .signup-page .su-submit .btn:focus { background: #d99a1b; color: #0a2540; }
.signup-page .su-submit .btn.is-busy, .signup-page .su-submit .btn[disabled] { background: #f0d28f; color: #51657b; box-shadow: none; cursor: progress; }
.su-terms { margin: 12px 0 0; font-size: 14px; color: #51657b; text-align: center; }
.su-trust { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e3f1fa; font-size: 14px; color: #334155; }
.su-trust svg { flex: none; margin-top: 2px; color: #156a44; }
.su-seal { margin-top: 14px; text-align: center; min-height: 1px; }

/* ---------- Footer ---------- */
.su-footer { max-width: 1080px; margin: 0 auto; padding: 0 20px 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font-size: 13px; color: #51657b; }
.signup-page .su-footer a { color: #51657b; text-decoration: underline; }

/* ---------- Sign-in modal (Views/Shared/_loginmodal.cshtml) ---------- */
.signup-page .modal-content { border-radius: 14px; }
.signup-page .modal-header h3 { margin: 0; font-size: 20px; font-weight: 800; }

/* ---------- Tablets and phones: plan first, then the form, then what you get ---------- */
@media (max-width: 991px) {
  .su-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "summary" "form" "includes"; grid-template-rows: none; gap: 16px; }
  .su-main { padding-top: 20px; }
}
@media (max-width: 575px) {
  .su-header-inner { padding: 10px 16px; }
  .su-logo img { height: 34px; }
  .su-header-secure { display: none; }
  .su-main { padding: 16px 16px 32px; }
  .su-top h1 { font-size: 26px; }
  .su-top p { font-size: 16px; }
  .su-card { padding: 20px 18px 22px; }
  .su-summary { padding: 16px 18px; }
  .su-plan-name { margin-bottom: 10px; font-size: 18px; }
  .su-due-amount { font-size: 36px; }
  .su-includes { padding: 18px; }
  .su-pw-row .form-control { flex-basis: 100%; max-width: none; }
  /* The card number gets the full width; the card logos drop underneath. */
  .su-card-row { flex-wrap: wrap; gap: 8px; }
  .su-card-row .form-control { flex-basis: 100%; }
  .su-card-row img { height: 22px; }
}
