@import url('https://fonts.googleapis.com/css2?family=Parkinsans:wght@300..800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.step-label.active {
  color: #f97316;
}

.step-label.done {
  color: #22c55e;
}

.price-display.visible {
  display: block;
}

.slots-available {
  background: #dcfce7;
  color: #16a34a;
}

.slots-limited {
  background: #fef9c3;
  color: #ca8a04;
}

.slots-full {
  background: #fee2e2;
  color: #dc2626;
}

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

label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

input, select, textarea {
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.error-msg.visible {
  display: block;
}

.error-msg.visible + .hint, .hint + .error-msg.visible {
  margin-top: 4px;
}

.checkbox-group.has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.section-title:first-of-type {
  margin-top: 0;
}

.pricing-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.demand-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  margin-bottom: 3px;
}

.very-high {
  background: #fee2e2;
  color: #dc2626;
}

.high {
  background: #fef9c3;
  color: #ca8a04;
}

.medium {
  background: #f0fdf4;
  color: #16a34a;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.checkbox-group:hover {
  border-color: #f97316;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: #f97316;
}

.checkbox-group label {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.checkbox-group label small {
  display: block;
  font-weight: 400;
  color: #64748b;
  margin-top: 2px;
  font-size: 12px;
}

.btn-primary:active {
  transform: scale(0.99);
}

.step-page {
  display: none;
}

.step-page.active {
  display: block;
}

.success-page.active {
  display: block;
}

.conf-row:last-child {
  border-bottom: none;
}

.postcode-result.visible {
  display: block;
}

.nearby-section.visible {
  display: block;
}

.stripe-card-mock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stripe-card-mock .stripe-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stripe-card-mock .stripe-field span {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.stripe-card-mock .stripe-field input {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  color: #1e293b;
  background: #fff;
}

.stripe-card-mock .stripe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stripe-status.visible {
  display: block;
}

.stripe-status.error {
  color: #dc2626;
}

.form-alert {
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
  display: none;
}

.form-alert.visible {
  display: block;
}

.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

.waitlist-status {
  margin-top: 12px;
  font-size: 13px;
  color: #374151;
}

:root {
  --primary: #f78815;
  --primary-dark: #df7108;
  --primary-light: #fff4e8;
  --heading: #181818;
  --text: #606060;
  --light-bg: #f8f9fb;
  --white: #ffffff;
  --border: #e9e9e9;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --danger: #c83232;
  --danger-bg: #fff5f5;
  --warning: #9a5a0a;
  --shadow-sm: 0 1px 2px rgba(24, 24, 24, 0.04);
  --shadow-md: 0 14px 34px rgba(24, 24, 24, 0.07);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

button, input, select, textarea {
  font: inherit;
}

.header-logo, .header p {
  position: relative;
}

.step {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.step-label {
  color: #8a8a8a;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.step-label.active, .step-label.done {
  color: var(--heading);
}

.step-page, .card-header, .card-body, .form-grid, .form-group, .info-box, .payment-section {
  min-width: 0;
}

.card-header {
  position: relative;
  padding: 28px 34px 26px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.card-header::before {
  position: absolute;
  top: 27px;
  left: 0;
  width: 4px;
  height: 31px;
  content: "";
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}

.card-header p {
  max-width: 680px;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
}

.card-body {
  padding: 34px;
}

.info-box, .timer-box, .form-alert {
  position: relative;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 12.5px;
  line-height: 1.65;
}

.info-box {
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
  color: #4f4f4f;
  background: #f58c301c 0 0 no-repeat padding-box;
  border: 1px solid #f78815;
  border-left: 3px solid #f78815;
}

.info-box strong {
  display: block;
  margin-bottom: 3px;
  color: var(--heading);
  font-weight: 680;
  font-size: 16px;
}

.info-box, .checkbox-group label, .nearby-option, .success-page, .conf-row span {
  overflow-wrap: anywhere;
}

.info-box strong::before, .price-lock::before, .slots-badge::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  content: "";
  vertical-align: 1px;
  background: var(--primary);
  border-radius: 50%;
}

.slots-badge::before {
  background: currentColor;
}

.section-title {
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 32px 0 18px;
  padding: 0 0 11px;
  color: var(--heading);
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.section-title::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  content: "";
  background: var(--primary);
  border-radius: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

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

label, .stripe-card-mock .stripe-field span {
  color: #383838;
  font-weight: 650;
  font-size: 14px;
}

label .req {
  margin-left: 2px;
  color: var(--primary-dark);
}

input, select, textarea, .stripe-card-mock .stripe-field input {
  min-height: 60px;
  color: var(--heading);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid #d9d9d9;
  padding: 15px 21px;
  font-size: 16px;
  border-radius: 8px;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

input::placeholder, textarea::placeholder {
  color: #a1a1a1;
}

input:hover, select:hover, textarea:hover {
  border-color: #bfbfbf;
}

input:focus, select:focus, textarea:focus, .stripe-card-mock .stripe-field input:focus {
  border-color: #f78815d9 !important;
  box-shadow: 0 0 0 3px rgb(247 136 21 / 8%);
}

input.error, select.error, textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(200, 50, 50, 0.08);
}

.hint {
  margin-top: 4px;
  color: #858585;
  font-size: 12px;
  line-height: 1.55;
}

.error-msg {
  display: none;
  color: var(--danger);
  font-size: 11.5px;
}

.price-main span {
  color: var(--text);
  font-size: 15px;
  font-weight: 550;
}

.price-save, .slots-badge, .demand-badge {
  border-radius: 4px;
  letter-spacing: 0;
}

.slots-available, .medium {
  color: var(--success);
  background: var(--success-bg);
}

.slots-limited, .high {
  color: var(--warning);
  background: #fff8eb;
}

.slots-full, .very-high {
  color: var(--danger);
  background: var(--danger-bg);
}

.pricing-table {
  display: table;
  width: 100%;
  margin: 18px 0 8px;
  overflow: hidden;
  border: 1px solid #dedede;
  border-top: 3px solid var(--primary);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(24, 24, 24, 0.05);
}

.pricing-table th {
  text-align: center;
  text-transform: uppercase;
  padding: 15px 16px;
  color: #f4f4f4;
  background: #4d626e;
  border-bottom: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.pricing-table th:first-child {
  text-align: left;
  width: 32%;
  color: #fff;
}

.pricing-table th:last-child, .pricing-table td:last-child {
  border-right: 0;
}

.pricing-table td {
  text-align: center;
  padding: 17px 16px;
  color: #303030;
  border-right: 1px solid #eeeeee;
  border-bottom: 1px solid #e9e9e9;
  vertical-align: middle;
  transition: background 0.2s ease;
}

.pricing-table tr:nth-child(even) td {
  background: #fafafa;
}

.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table tbody tr:hover td {
  background: var(--primary-light);
}

.pricing-table tbody td:first-child {
  position: relative;
  background: #fcfcfc;
  text-align: left;
}

.pricing-table tbody td:first-child::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  content: "";
  background: #ffc58a;
  border-radius: 0 3px 3px 0;
}

.price-cell strong {
  display: block;
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.25;
}

.price-cell small {
  text-decoration: line-through;
  display: block;
  margin-top: 4px;
  color: #929292;
  font-size: 13px;
  line-height: 1.3;
}

.trade-list {
  display: inline-block;
  margin-top: 7px;
  color: #303030;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.55;
}

.pricing-table .demand-badge {
  margin: 0;
  padding: 4px 8px;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid #ffd7af;
  font-size: 9px;
  font-weight: 750;
}

.checkbox-group, .nearby-option {
  gap: 12px;
  padding: 15px 16px;
  background: #fbfbfb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.checkbox-group:hover, .nearby-option:hover, .nearby-option.selected {
  border-color: #f6b26b;
  background: var(--primary-light);
}

.checkbox-group:focus-within, .nearby-option:focus-within {
  box-shadow: 0 0 0 3px rgba(247, 136, 21, 0.1);
}

.checkbox-group input[type="checkbox"], .nearby-option input[type="radio"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.checkbox-group label, .nearby-option .nearby-label {
  color: #363636;
  line-height: 1.5;
}

.checkbox-group label small, .nearby-option .nearby-meta {
  color: #777;
  line-height: 1.5;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 680;
  letter-spacing: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  width: max-content;
}

.btn-primary svg, .btn-secondary svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke-width: 2;
}

.btn-primary {
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.2px;
  margin-top: 28px;
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 5px 14px rgba(247, 136, 21, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(223, 113, 8, 0.25);
  transform: translateY(-1px);
}

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

.btn-primary:disabled {
  cursor: not-allowed;
  color: #fff;
  background: #4c6270;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  border: 1.5px solid #e2e8f0;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
  transition: all 0.2s;
  color: var(--primary-dark);
  background: var(--white);
  border-color: #f5b16a;
}

.btn-secondary:hover {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.stripe-card-mock .stripe-brand {
  font-size: 12px;
  margin-top: 2px;
  color: #858585;
}

.form-alert.error {
  border: 1px solid #fecaca;
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #efc4c4;
}

.form-alert.info {
  border: 1px solid #bae6fd;
  color: #3e6076;
  background: #f3f8fb;
  border-color: #d6e6ef;
}

.form-alert.success {
  border: 1px solid #86efac;
  color: var(--success);
  background: var(--success-bg);
  border-color: #b7e5c5;
}

.success-page {
  display: none;
  text-align: center;
  padding: clamp(40px, 8vw, 76px) clamp(22px, 7vw, 64px);
}

.success-icon {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  width: 72px;
  height: 72px;
  color: var(--primary-dark);
  background: var(--primary-light);
}

.success-icon svg {
  width: 34px;
  height: 34px;
}

#conf_price, #conf_status {
  color: var(--primary-dark) !important;
}

#conf_saving {
  color: var(--success) !important;
}

.success-page h2 {
  margin-bottom: 10px;
  color: var(--heading);
  font-size: clamp(24px, 4vw, 32px);
}

.success-page p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.confirmation-box {
  border: 1px solid #e2e8f0;
  margin: 24px 0;
  text-align: left;
  padding: 22px;
  background: #fbfbfb;
  border-color: var(--border);
  border-radius: var(--radius);
}

.confirmation-box h3 {
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--heading);
}

.conf-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  gap: 24px;
  border-color: #ececec;
}

.conf-row span:first-child {
  color: #737373;
}

.conf-row span:last-child {
  font-weight: 600;
  color: var(--heading);
  text-align: right;
}

.timer-box {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 14px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #6a4a24;
  background: #fffaf4;
  border-color: #f1d5b8;
}

.timer-box strong {
  color: #4f3213;
}

body {
  font-family: "Parkinsans", sans-serif;
  color: var(--heading);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background: #fbfaf8;
}

.header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 22px 24px 68px;
  background: #fff;
}

.header::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(24, 24, 24, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(24, 24, 24, 0.018) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  display: none;
}

.header-logo {
  display: block;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  width: min(100%, 340px);
}

.header h1 {
  position: relative;
  margin: 10px auto 0;
  color: #23242a;
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.25;
}

.header p {
  max-width: 600px;
  margin: 15px auto 0;
  font-weight: 450;
  margin-top: 8px;
  color: #50525a;
  font-size: 13px;
}

.progress-bar {
  display: flex;
  gap: 0;
  position: relative;
  z-index: 2;
  margin: -40px auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 15px;
  width: min(760px, calc(100% - 32px));
  margin-top: -38px;
  padding: 16px 36px;
  justify-content: space-between;
  border-color: #e5e5e5;
  box-shadow: 0 12px 28px rgba(24, 24, 24, 0.09);
}

.progress-bar .step {
  flex: 0 0 auto;
}

.step-num {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex: 0 0 30px;
  background: #f1f1f1;
  color: #929292;
  font-weight: 700;
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border: 0;
  font-size: 12px;
}

.step-num.active {
  color: var(--white);
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.step-num.done {
  border-color: #ffd6ad;
  color: #fff;
  background: var(--primary);
}

.step-copy {
  display: flex;
  min-width: 102px;
  flex-direction: column;
  gap: 1px;
}

.step-copy .step-label {
  color: #3a3b40;
  font-size: 14px;
  font-weight: 680;
}

.step-copy small {
  color: #8a8b90;
  font-size: 12px;
  line-height: 1.3;
}

.step-divider {
  align-self: center;
  height: 1px;
  width: clamp(34px, 5vw, 66px);
  margin: 0 14px;
  background: #d9d9d9;
}

.container {
  max-width: none;
  margin: 34px auto 0;
  padding: 0 24px 80px;
  width: min(100%, 1080px);
  margin-top: 26px;
}

.card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 25px;
  border-color: #e6e6e6;
  box-shadow: 0 16px 40px rgba(60, 43, 25, 0.08);
}

#step1 .card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 28px 22px;
}

#step1 .card-header::before {
  display: none;
}

.card-header-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: var(--primary);
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
}

.card-header-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.card-header h2 {
  color: var(--heading);
  font-weight: 720;
  letter-spacing: 0;
  font-size: clamp(19px, 2.2vw, 24px);
}

#step1 .card-header p {
  margin-top: 2px;
}

#step1 .card-body {
  padding: 28px;
  border-top: 0;
}

#step1 .info-box {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding: 17px 18px;
  color: #56575c;
  box-shadow: none;
  background: #fff5ec;
  border: 1px solid #f48b30;
  border-radius: 20px;
  border-left: 3px solid #f48b30;
}

.info-box-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}

.info-box-icon svg {
  width: 21px;
  height: 21px;
}

.info-box-copy {
  min-width: 0;
}

#step1 .info-box-copy {
  font-size: 13px;
  line-height: 1.5;
}

#step1 .info-box-copy strong {
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.35;
}

.info-box-award {
  width: 23px;
  height: 23px;
  justify-self: center;
  color: #666970;
  stroke-width: 1.8;
}

.field-control {
  position: relative;
  width: 100%;
}

.field-control > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  width: 19px;
  height: 19px;
  color: #24262b;
  pointer-events: none;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.field-control > input {
  padding-left: 43px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.form-actions .btn-primary {
  width: auto;
  min-width: 210px;
  margin-top: 0;
  padding: 13px 20px;
}

.payment-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8a8b90;
  font-size: 10.5px;
}

.payment-note svg {
  width: 14px;
  height: 14px;
}

.section-title.with-icon {
  gap: 9px;
}

.section-title.with-icon::before {
  display: none;
}

.section-title.with-icon > svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  color: var(--primary);
  stroke-width: 2;
}

.price-main {
  line-height: 1;
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 760;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: #202126;
}

.price-was {
  font-size: 14px;
  text-decoration: line-through;
  color: #8d8d8d;
  margin-top: 5px;
}

.price-save {
  display: inline-block;
  font-weight: 700;
  border-radius: 20px;
  color: var(--primary-dark);
  background: rgba(247, 136, 21, 0.13);
  font-size: 11px;
  margin-top: 10px;
  padding: 5px 9px;
  border: 1px solid #ffd5ab;
}

.annual-saving {
  font-weight: 600;
  color: var(--heading);
  margin-top: 10px;
  font-size: 12.5px;
}

.slots-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border-radius: 20px;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid currentColor;
  font-size: 10.5px;
}

.price-lock {
  font-size: 12px;
  color: #6f6f6f;
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.price-lock::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
}

.nearby-section {
  display: none;
  margin-top: 20px;
  padding-top: 2px;
}

#step1 .nearby-notice {
  grid-template-columns: 42px minmax(0, 1fr);
  margin-bottom: 16px;
}

#nearby_list {
  display: grid;
  gap: 10px;
}

.nearby-option {
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  border-color: #e2e2e2;
  box-shadow: var(--shadow-sm);
}

.nearby-option::after {
  display: grid;
  width: 26px;
  height: 26px;
  content: "›";
  place-items: center;
  color: #a2a2a2;
  background: #f3f3f3;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.nearby-option input[type="radio"] {
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: #f97316;
  width: 19px;
  height: 19px;
  margin: 0;
}

.nearby-option .nearby-label {
  color: #292a2e;
  font-size: 12px;
  font-weight: 680;
}

.nearby-option .nearby-meta {
  display: block;
  font-weight: 400;
  margin-top: 3px;
  color: #808188;
  font-size: 10.5px;
}

.nearby-option:hover {
  border-color: #f6a24d;
  box-shadow: 0 6px 16px rgba(247, 136, 21, 0.09);
  transform: translateY(-1px);
}

.nearby-option.selected {
  background: #fff9f3;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(247, 136, 21, 0.1);
}

.nearby-option.selected::after {
  color: #fff;
  background: var(--primary);
}

.application-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 28px 22px;
}

.application-step-header::before {
  display: none;
}

#step2 .card-body {
  padding: 28px;
}

.themed-notice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 17px 18px;
  color: #56575c;
  background: #fffaf6;
  border: 1px solid var(--primary);
  border-left-width: 1px;
}

.themed-notice .info-box-copy strong {
  color: #292a2e;
  font-size: 12.5px;
}

.themed-notice .info-box-copy strong::before {
  display: none;
}

#step2 .section-title {
  margin: 30px 0 18px;
  font-size: 14px;
}

#step2 label, #step2 .stripe-field span {
  font-size: 11.5px;
}

#step2 input:not([type="checkbox"]), #step2 select, #step2 textarea {
  min-height: 46px;
  border-color: #d9dadd;
}

.field-control > input {
  padding-left: 42px;
}

#step2 .checkbox-group {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-bottom: 10px;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: var(--shadow-sm);
}

#step2 .checkbox-group input[type="checkbox"] {
  display: grid;
  width: 19px;
  height: 19px;
  min-height: 19px;
  margin: 1px 0 0;
  padding: 0;
  appearance: none;
  place-content: center;
  background: #fff;
  border: 1.5px solid #a9aaae;
  border-radius: 4px;
  cursor: pointer;
}

#step2 .checkbox-group input[type="checkbox"]::before {
  width: 9px;
  height: 5px;
  content: "";
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg) scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#step2 .checkbox-group input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

#step2 .checkbox-group input[type="checkbox"]:checked::before {
  opacity: 1;
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

#step2 .checkbox-group:hover {
  background: #fffaf6;
  border-color: #f5b16a;
}

#step2 .checkbox-group:has(input:checked) {
  background: #fff8f1;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(247, 136, 21, 0.08);
}

#step2 .checkbox-group label {
  color: #303136;
  font-weight: 580;
}

#step2 .checkbox-group label small {
  margin-top: 3px;
  color: #818289;
}

#step2 .checkbox-group.has-error {
  background: var(--danger-bg);
  border-color: var(--danger);
}

.payment-section {
  margin-top: 8px;
  padding: 0;
}

.payment-notice {
  margin-bottom: 16px;
}

#stripe_payment_element {
  min-height: 48px;
  border-color: var(--border);
  padding: 20px;
  background: #fafafa;
  border: 1px solid #dedede;
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-sm);
}

.stripe-status {
  margin-top: 10px;
  line-height: 1.5;
  display: none;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 11.5px;
}

.stripe-status.info {
  color: #4d5f70;
  background: #f3f6f8;
}

.stripe-status.success {
  color: var(--success);
  background: var(--success-bg);
}

.submission-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.submission-actions .btn-primary, .submission-actions .btn-secondary {
  width: auto;
  min-width: 190px;
  margin-top: 0;
  padding: 12px 18px;
}

.secure-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #8a8b90;
  font-size: 10px;
}

.secure-note svg {
  width: 13px;
  height: 13px;
}

.territory-grid {
  padding: 18px;
  background: #fafafa;
  border: 1px solid #e7e7e7;
  border-radius: var(--radius);
}

.select-control {
  position: relative;
  width: 100%;
}

.select-control > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--primary);
  pointer-events: none;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

#step1 .select-control > select {
  padding-left: 43px;
  background-color: #fff;
}

.territory-grid .hint {
  display: flex;
  gap: 6px;
  padding-top: 2px;
  color: #777980;
}

.territory-grid .hint::before {
  display: inline-grid;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  content: "i";
  place-items: center;
  color: var(--primary-dark);
  border: 1px solid #f3ad66;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 750;
  line-height: 1;
}

.postcode-result {
  border: 1px solid #86efac;
  font-size: 12px;
  margin-top: 6px;
  display: none;
  border-radius: 6px;
  position: relative;
  padding: 10px 12px 10px 34px;
  color: #237044;
  background: #f3fbf6;
  border-color: #b9dfc7;
  font-weight: 550;
}

.postcode-result::before {
  position: absolute;
  top: 50%;
  left: 12px;
  content: "✓";
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-50%);
}

.postcode-result.unavailable {
  color: #b83d3d;
  background: #fff7f7;
  border-color: #efcaca;
}

.postcode-result.unavailable::before {
  content: "!";
}

#availability_alert {
  margin-top: 14px;
  position: relative;
  padding: 13px 16px 13px 44px;
  background: #fff8f8;
  border: 1px solid #efc6c6;
  border-left: 1px solid #efc6c6 !important;
  font-weight: 540;
}

#availability_alert::before {
  position: absolute;
  top: 50%;
  left: 15px;
  display: grid;
  width: 20px;
  height: 20px;
  content: "!";
  place-items: center;
  color: #fff;
  background: var(--danger);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  transform: translateY(-50%);
}

.price-display {
  margin-bottom: 28px;
  display: none;
  position: relative;
  margin: 26px 0 30px;
  border-radius: var(--radius);
  text-align: left;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedede;
  border-top: 0;
  box-shadow: 0 14px 32px rgba(43, 31, 20, 0.08);
}

.price-display::after {
  position: absolute;
  width: 150px;
  height: 150px;
  content: "$";
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  top: -35px;
  right: 18px;
  color: rgba(247, 136, 21, 0.07);
  font-size: 118px;
  display: none;
}

.price-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #fff;
  background: #4d626e;
  border-top: 3px solid var(--primary);
}

.price-card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
}

.price-card-icon svg {
  width: 18px;
  height: 18px;
}

.price-card-icon svg path {
  stroke: #fff;
}

.price-card-header > div {
  display: flex;
  flex-direction: column;
}

.price-card-header span {
  color: #bdbdbd;
  font-size: 9px;
  font-weight: 550;
  text-transform: uppercase;
}

.price-card-header strong {
  margin-top: 1px;
  color: #fff;
  font-size: 13px;
  font-weight: 680;
}

.price-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 164px;
  padding: 24px;
}

.rate-block, .saving-block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.rate-block {
  padding-right: 28px;
  border-right: 1px solid #e7e7e7;
}

.saving-block {
  padding-left: 28px;
}

.price-block-label {
  color: #7f8085;
  font-size: 9.5px;
  font-weight: 680;
  text-transform: uppercase;
}

.rate-block .price-main {
  margin-top: 3px;
  font-size: clamp(38px, 5vw, 52px);
}

.rate-block .price-main span {
  color: #5f6066;
  font-size: 14px;
}

.rate-block .price-save {
  align-self: flex-start;
}

.saving-block .annual-saving {
  max-width: 350px;
  margin-top: 8px;
  color: #24252a;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 720;
  line-height: 1.4;
}

.saving-block > span:last-child {
  margin-top: 7px;
  color: #85868b;
  font-size: 10px;
}

.price-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 20px;
  background: #fafafa;
  border-top: 1px solid #e8e8e8;
}

.price-card-footer .slots-badge, .price-card-footer .price-lock {
  margin-top: 0;
}

.price-card-footer .slots-badge {
  flex: 0 1 auto;
  padding: 6px 9px;
  border: 0;
}

.price-card-footer .price-lock {
  justify-content: flex-end;
  color: #77787d;
  text-align: right;
}

.price-display:has(.slots-available) .price-card-footer {
  background: #f6fbf7;
}

.price-display:has(.slots-full) .price-card-footer {
  background: #fff7f7;
  border-top-color: #efcece;
}

.price-display:has(.slots-full) .price-card-header {
  border-top-color: var(--danger);
}

.price-display:has(.slots-limited) .price-card-header {
  border-top-color: #d59423;
}

.price-display:has(.slots-available) .price-card-header {
  border-top-color: var(--primary);
}

.price-display:has(.slots-full) .price-card-icon {
  background: var(--danger);
}

.price-display:has(.slots-limited) .price-card-icon {
  background: #b7791f;
}

@media (max-width: 768px) {
  .container {
    margin-top: 24px;
    padding: 0 18px 56px;
  }

  .card-header, .card-body {
    padding-right: 24px;
    padding-left: 24px;
  }

  .pricing-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .header {
    padding: 24px 20px 66px;
    padding-bottom: 64px;
  }

  .header-logo {
    width: min(100%, 300px);
  }

  .progress-bar {
    padding: 14px 24px;
  }

  .step-copy {
    min-width: 0;
  }

  .step-copy small {
    display: none;
  }

  #step1 .card-header, #step1 .card-body {
    padding-right: 22px;
    padding-left: 22px;
  }

  .application-step-header, #step2 .card-body {
    padding-right: 22px;
    padding-left: 22px;
  }

  .submission-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .secure-note {
    width: 100%;
    margin-left: 0;
  }

  .price-card-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .rate-block {
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid #e7e7e7;
  }

  .saving-block {
    padding: 20px 0 0;
  }

}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: 1;
  }

  .pricing-table {
    font-size: 11px;
  }

  .pricing-table td, .pricing-table th {
    padding: 8px 6px;
  }

  .step-label {
    display: none;
  }

  .step-divider {
    width: 24px;
  }

}

@media (max-width: 576px) {
  .step-label {
    display: none;
  }

  .step-divider {
    width: clamp(28px, 12vw, 48px);
    margin: 0 10px;
  }

  .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .card-header {
    padding: 23px 20px 21px;
  }

  .card-header::before {
    top: 23px;
  }

  .card-body {
    padding: 24px 20px;
  }

  .form-grid, .stripe-card-mock .stripe-row {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: 1;
  }

  .section-title {
    margin-top: 28px;
  }

  .info-box, .checkbox-group, .nearby-option {
    padding: 14px;
  }

  .pricing-table {
    display: block;
    overflow: visible;
    background: transparent;
    border: 0;
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
    white-space: normal;
  }

  .pricing-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .pricing-table tbody, .pricing-table tr, .pricing-table td {
    display: block;
    width: 100%;
  }

  .pricing-table tbody {
    display: grid;
    gap: 14px;
  }

  .pricing-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
  }

  .pricing-table tbody td, .pricing-table tr:nth-child(even) td {
    padding: 13px 14px;
    background: var(--white);
    border-right: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
  }

  .pricing-table tbody td:first-child {
    grid-column: 1 / -1;
    padding: 15px 16px;
    background: #fafafa;
    border-right: 0;
  }

  .pricing-table tbody td:first-child::before {
    display: none;
  }

  .pricing-table tbody td:nth-child(3), .pricing-table tbody td:nth-child(5) {
    border-right: 0;
  }

  .pricing-table tbody td:nth-child(4), .pricing-table tbody td:nth-child(5) {
    border-bottom: 0;
  }

  .pricing-table .price-cell::before {
    display: block;
    margin-bottom: 5px;
    color: #777;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .pricing-table td:nth-child(2)::before {
    content: "T1 - CBD";
  }

  .pricing-table td:nth-child(3)::before {
    content: "T2 - Inner Metro";
  }

  .pricing-table td:nth-child(4)::before {
    content: "T3 - Mid Metro";
  }

  .pricing-table td:nth-child(5)::before {
    content: "T4 - Regional";
  }

  .pricing-table tbody tr:hover td {
    background: inherit;
  }

  .conf-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .conf-row span:last-child {
    text-align: left;
  }

  .header {
    padding: 18px 18px 60px;
  }

  .header-logo {
    width: min(100%, 270px);
  }

  .header h1 {
    font-size: 21px;
  }

  .header p {
    max-width: 330px;
    font-size: 11px;
  }

  .progress-bar {
    padding: 13px 22px;
  }

  .progress-bar .step {
    gap: 0;
  }

  .step-copy {
    display: none;
  }

  .step-num {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  #step1 .card-header {
    align-items: flex-start;
    gap: 12px;
    padding: 21px 18px 19px;
  }

  .card-header-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  #step1 .card-body {
    padding: 22px 18px;
  }

  #step1 .info-box {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 15px;
  }

  .info-box-icon {
    width: 34px;
    height: 34px;
  }

  .info-box-award {
    display: none;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .form-actions .btn-primary {
    width: 100%;
  }

  .payment-note {
    justify-content: center;
  }

  .price-display {
    padding: 0;
  }

  .price-display::after {
    right: -14px;
  }

  .nearby-option {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .nearby-option::after {
    display: none;
  }

  .application-step-header {
    align-items: flex-start;
    gap: 12px;
    padding: 21px 18px 19px;
  }

  #step2 .card-body {
    padding: 22px 18px;
  }

  .themed-notice {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 15px;
  }

  #stripe_payment_element {
    padding: 15px;
  }

  .submission-actions {
    flex-direction: column;
  }

  .submission-actions .btn-primary, .submission-actions .btn-secondary {
    width: 100%;
  }

  .secure-note {
    justify-content: center;
  }

  .territory-grid {
    padding: 14px;
  }

  #availability_alert {
    padding-right: 13px;
  }

  .price-card-header {
    padding: 13px 15px;
  }

  .price-card-body {
    padding: 18px;
  }

  .price-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 13px 16px;
  }

  .price-card-footer .price-lock {
    justify-content: flex-start;
    text-align: left;
  }

}

@media (max-width: 375px) {
  .header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .header-logo {
    width: 100%;
  }

  .progress-bar {
    width: calc(100% - 24px);
  }

  .container {
    padding-right: 12px;
    padding-left: 12px;
  }

  .card-body {
    padding-right: 16px;
    padding-left: 16px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}

/* Success screen — visual match for the submitted-application reference */
body.success-mode {
  background:
    radial-gradient(circle at 50% 7%, rgba(249, 115, 22, 0.055), transparent 23%),
    linear-gradient(180deg, #fff 0%, #fffdfa 100%);
}

.success-mode .header,
.success-mode .progress-bar {
  display: none;
}

.success-mode .container {
  width: min(100%, 1144px);
  max-width: 1144px;
  margin: 0 auto;
  padding: 0 50px 58px;
}

.success-mode .card {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.success-mode #step3 {
  position: relative;
}

.success-mode .success-page {
  position: relative;
  padding: 33px 0 0;
  text-align: center;
}

.success-icon-wrap {
  position: relative;
  width: 194px;
  margin: 0 auto;
}

.success-mode .success-icon {
    width: 142px;
    height: 142px;
    margin: 0 auto 14px;
    color: #f36b16;
}

.success-mode .success-icon svg {
  width: 76px;
  height: 76px;
  stroke-width: 2.2;
}

.success-star {
  position: absolute;
  z-index: 2;
  color: #ff7a25;
  font-size: 25px;
  line-height: 1;
}

.success-star-one {
  top: 61px;
  left: 0;
}

.success-star-two {
  top: -3px;
  right: 2px;
  font-size: 20px;
}

.success-sparkles {
  position: absolute;
  top: 35px;
  width: 145px;
  height: 145px;
  opacity: 0.48;
  pointer-events: none;
  background-image: radial-gradient(circle, #ffb37e 1.7px, transparent 2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle, #000 0 25%, transparent 72%);
}

.success-sparkles-left {
  left: -25px;
}

.success-sparkles-right {
  right: -25px;
}

.success-mode .success-page h2 {
  margin: 0 0 18px;
  color: #172036;
  font-size: clamp(38px, 4.55vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.success-mode .success-lead {
  color: #606777;
  font-size: 19px;
  line-height: 1.58;
}

.success-mode .success-lead strong {
  color: #f48b2f;
  font-weight: 720;
}

.success-mode .confirmation-box {
  margin: 27px 0 27px;
  padding: 35px 36px 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  box-shadow: 0 13px 34px rgba(31, 41, 55, 0.055);
}

.confirmation-heading,
.confirmation-title {
  display: flex;
  align-items: center;
}

.confirmation-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.confirmation-title {
  gap: 18px;
}

.summary-title-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #f45b18;
  background: #fff0e6;
  border-radius: 13px;
}

.summary-title-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.9;
}

.success-mode .confirmation-box h3 {
  margin: 0;
  color: #172036;
  font-size: 23px;
  font-weight: 720;
  line-height: 1.2;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 21px;
  color: #ed4d0a;
  background: #fff4ec;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.review-badge svg {
  width: 21px;
  height: 21px;
}

.success-mode .conf-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  align-items: center;
  min-height: 62px;
  gap: 24px;
  padding: 7px 0;
  border-bottom: 1px dashed #e0e4e9;
  font-size: 17px;
}

.success-mode .conf-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 19px;
  color: #333d52;
}

.success-mode .conf-row > span:first-child svg {
  width: 42px;
  height: 42px;
  padding: 11px;
  flex: 0 0 42px;
  color: #354052;
  background: #f4f5f6;
  border-radius: 50%;
  stroke-width: 1.8;
}

.success-mode .conf-row-trade > span:first-child svg {
  color: #f24f0b;
  background: #fff0e7;
}

.success-mode .conf-row-saving > span:first-child svg {
  color: #0b9a54;
  background: #eaf8f1;
}

.success-mode .conf-row > span:last-child {
  color: #172036;
  font-size: 17px;
  font-weight:600;
  text-align: right;
}

.success-mode #conf_price,
.success-mode #conf_status {
  color: #ef4e0b !important;
}

.success-mode #conf_saving {
  color: #07954f !important;
}

.success-mode .timer-box {
  overflow: hidden;
  margin: 0;
  padding: 0 36px;
  color: #172036;
  background: linear-gradient(105deg, #fffaf5, #fffdfb);
  border: 1px solid #f6ad78;
  border-radius: 14px;
  box-shadow: 0 11px 30px rgba(242, 96, 22, 0.04);
  text-align: left;
}

.reservation-main {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 26px;
  min-height: 166px;
  padding: 18px 0 14px;
}

.reservation-shield {
  position: relative;
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #ff922f, #f24e0a);
  clip-path: polygon(50% 0, 88% 15%, 84% 70%, 50% 100%, 16% 70%, 12% 15%);
  filter: drop-shadow(0 10px 12px rgba(242, 78, 10, 0.2));
}

.reservation-shield > svg {
  width: 65px;
  height: 65px;
  opacity: 0.3;
}

.reservation-shield span {
  position: absolute;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
}

.reservation-shield span svg {
  width: 19px;
  height: 19px;
  color: #f45a15;
}

.reservation-copy strong {
  display: block;
  margin-bottom: 8px;
  color: #172036;
  font-size: 19px;
  line-height: 1.35;
}

.reservation-copy strong em {
  color: #f04e0b;
  font-style: normal;
}

.success-mode .reservation-copy p {
  color: #303a4d;
  font-size: 15.5px;
  line-height: 1.55;
}

.reservation-calendar {
  position: relative;
  justify-self: end;
  color: #ff812c;
}

.reservation-calendar > svg {
  width: 78px;
  height: 78px;
  stroke-width: 1.7;
}

.reservation-calendar span {
  position: absolute;
  right: -7px;
  bottom: -4px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #f05a17;
  background: #fff4ea;
  border: 2px solid #f05a17;
  border-radius: 50%;
}

.reservation-calendar span svg {
  width: 21px;
  height: 21px;
}

.success-mode #waitlist_status {
  margin: 0 0 12px;
  text-align: center;
}

.success-mode #reservation_countdown {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 59px;
  padding: 12px 10px;
  color: #263248;
  border-top: 1px solid #f6d7c1;
  font-size: 16px;
  text-align: center;
}

.success-mode #reservation_countdown:empty {
  display: none !important;
}

.success-mode #reservation_countdown svg {
  width: 24px;
  height: 24px;
  color: #7177e9;
}

.success-mode #reservation_countdown strong {
  color: #f04e0b;
  font-size: 17px;
}

.confirmation-email {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 20px;
  min-height: 116px;
  margin-top: 22px;
  padding: 20px 35px 20px 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e9ed;
  border-radius: 14px;
  box-shadow: 0 11px 30px rgba(31, 41, 55, 0.05);
  text-align: left;
}

.email-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #6069e6;
  background: #f0efff;
  border-radius: 50%;
}

.email-icon svg {
  width: 27px;
  height: 27px;
}

.success-mode .confirmation-email p {
  color: #344056;
  font-size: 15.5px;
  line-height: 1.65;
}

.confirmation-email p strong {
  color: #4e5cdd;
  font-weight: 700;
}

.confirmation-email p span {
  color: #747c8c;
}

.email-flight {
  position: relative;
  align-self: stretch;
  color: #6a6fe8;
}

.email-flight svg {
  position: absolute;
  top: 8px;
  right: 0;
  width: 42px;
  height: 42px;
  fill: #6a6fe8;
  stroke-width: 1.4;
  transform: rotate(-8deg);
}

.email-flight::before {
  position: absolute;
  right: 29px;
  bottom: -24px;
  width: 135px;
  height: 70px;
  content: "";
  border: 2px dashed #c9c8ff;
  border-right: 0;
  border-bottom: 0;
  border-radius: 65% 0 0;
  transform: rotate(8deg);
}

@media (max-width: 700px) {
  .success-mode .container {
    padding: 0 16px 32px;
  }

  .success-mode .success-page {
    padding-top: 24px;
  }

  .success-mode .success-icon {
    width: 104px;
    height: 104px;
  }

  .success-mode .success-icon svg {
    width: 56px;
    height: 56px;
  }

  .success-mode .success-page h2 {
    margin-top: 12px;
    font-size: 34px;
  }

  .success-mode .success-lead {
    font-size: 15px;
  }

  .success-mode .success-lead br,
  .success-mode .reservation-copy br {
    display: none;
  }

  .success-sparkles {
    width: 90px;
  }

  .success-mode .confirmation-box {
    padding: 22px 18px 12px;
  }

  .confirmation-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .success-mode .confirmation-box h3 {
    font-size: 18px;
  }

  .summary-title-icon {
    width: 46px;
    height: 46px;
  }

  .review-badge {
    align-self: flex-end;
    margin-top: -5px;
    padding: 9px 14px;
    font-size: 12px;
  }

  .success-mode .conf-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 0;
  }

  .success-mode .conf-row > span:last-child {
    padding-left: 61px;
    font-size: 14px;
    text-align: left;
  }

  .success-mode .timer-box {
    padding: 0 18px;
  }

  .reservation-main {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 15px;
    padding: 22px 0;
  }

  .reservation-shield {
    width: 70px;
    height: 70px;
  }

  .reservation-copy strong {
    font-size: 16px;
  }

  .success-mode .reservation-copy p {
    font-size: 13px;
  }

  .reservation-calendar {
    display: none;
  }

  .success-mode #reservation_countdown {
    flex-wrap: wrap;
    gap: 7px;
    font-size: 13px;
  }

  .confirmation-email {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .email-icon {
    width: 48px;
    height: 48px;
  }

  .success-mode .confirmation-email p {
    font-size: 13px;
  }

  .email-flight {
    display: none;
  }
}

/* Unified custom select appearance — native behavior is preserved */
select {
  width: 100%;
  min-height: 60px;
  padding: 12px 52px 12px 16px;
  appearance: none;
  -webkit-appearance: none;
  color: #2d3440;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='9' fill='%23fff3e9'/%3E%3Cpath d='m10.5 12.5 4.5 4.5 4.5-4.5' fill='none' stroke='%23f16818' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 30px 30px;
  border: 1.5px solid #dfe3e8;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(28, 35, 48, 0.035);
  font-family: inherit;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

select:hover {
  background-color: #fffdfb;
  border-color: #f2ac76;
  box-shadow: 0 4px 12px rgba(247, 136, 21, 0.07);
}

select:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(247, 136, 21, 0.12), 0 4px 12px rgba(247, 136, 21, 0.06);
}

select:focus-visible {
  outline: none;
}

select.error {
  background-color: #fffafa;
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(200, 50, 50, 0.08);
}

select:disabled {
  color: #9298a1;
  background-color: #f4f5f6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='9' fill='%23e9ebee'/%3E%3Cpath d='m10.5 12.5 4.5 4.5 4.5-4.5' fill='none' stroke='%23969ca5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-color: #e0e3e6;
  box-shadow: none;
  cursor: not-allowed;
}

select option {
  color: #2d3440;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}

select option:checked {
  color: #d9560d;
  background: #fff3e9;
}

select optgroup {
  color: #f16818;
  background: #fffaf6;
  font-family: inherit;
  font-weight: 700;
}

.select-control > select,
#step1 .select-control > select {
  padding-right: 52px;
  padding-left: 44px;
}

.select-control > svg {
  left: 15px;
  color: #f16818;
}

.select-control:focus-within > svg {
  color: #dd5208;
}

@media (max-width: 576px) {
  select {
    min-height: 48px;
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 13px;
  }
}

/* Stripe Elements shell and appearance states */
.stripe-element-shell {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe2e6;
  border-top: 3px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(31, 39, 51, 0.055);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.stripe-element-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(100deg, #fff9f4, #fff);
  border-bottom: 1px solid #eceef0;
}

.stripe-element-heading > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.stripe-element-heading strong {
  color: #252b35;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.4;
}

.stripe-element-heading small {
  color: #7b828c;
  font-size: 10.5px;
  line-height: 1.45;
}

.stripe-heading-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #f16818;
  background: #fff0e5;
  border: 1px solid #ffdac0;
  border-radius: 9px;
}

.stripe-heading-icon svg {
  width: 18px;
  height: 18px;
}

.stripe-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  color: #157747;
  background: #edf9f2;
  border: 1px solid #ccebd9;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.stripe-secure-badge svg {
  width: 13px;
  height: 13px;
}

#stripe_payment_element {
  position: relative;
  min-height: 58px;
  margin: 0;
  padding: 18px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

#stripe_payment_element[data-stripe-mode="card"] {
  min-height: 62px;
  padding: 19px 18px;
}

#stripe_payment_element[data-stripe-mode="payment"] {
  padding: 16px;
}

#stripe_payment_element[data-stripe-mode="demo"] {
  padding: 18px;
  background: #fdfdfd;
}

#stripe_payment_element[data-stripe-mode="loading"] {
  min-height: 72px;
  overflow: hidden;
  background: #fafafa;
}

#stripe_payment_element[data-stripe-mode="loading"]::after {
  position: absolute;
  inset: 18px;
  content: "";
  background: linear-gradient(90deg, #eef0f2 25%, #f8f8f8 42%, #eef0f2 65%);
  background-size: 300% 100%;
  border-radius: 8px;
  animation: stripe-loading 1.35s ease infinite;
}

@keyframes stripe-loading {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

#stripe_payment_element.is-complete {
  background: #fbfffc;
  box-shadow: inset 3px 0 0 #23a566;
}

#stripe_payment_element.is-invalid,
.payment-section:has(#stripe_alert.error.visible) #stripe_payment_element {
  background: #fffafa;
  box-shadow: inset 3px 0 0 var(--danger);
}

.payment-section:has(#stripe_alert.error.visible) .stripe-element-shell {
  border-color: #e9b8b8;
  border-top-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(200, 50, 50, 0.055);
}

.payment-section:has(.stripe-status.success.visible) .stripe-element-shell {
  border-color: #b9dfca;
  border-top-color: var(--success);
}

.stripe-element-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 43px;
  padding: 9px 15px;
  color: #737b86;
  background: #f7f8f9;
  border-top: 1px solid #eceef0;
  font-size: 9.5px;
  line-height: 1.4;
}

.stripe-element-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stripe-element-footer svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #15814b;
}

.stripe-element-footer > strong {
  color: #7b818a;
  font-size: 9px;
  font-weight: 550;
  white-space: nowrap;
}

.stripe-element-footer > strong b {
  color: #6257d8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.stripe-card-mock {
  gap: 13px;
}

.stripe-card-mock .stripe-field {
  gap: 6px;
}

.stripe-card-mock .stripe-field span {
  color: #444b56;
  font-size: 11px;
  font-weight: 650;
}

.stripe-card-mock .stripe-field input {
  min-height: 48px;
  padding: 12px 14px;
  color: #252b35;
  background: #fff;
  border: 1.5px solid #dfe3e8;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(28, 35, 48, 0.035);
  font-size: 14px;
}

.stripe-card-mock .stripe-field input:hover {
  border-color: #f2ac76;
}

.stripe-card-mock .stripe-field input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(247, 136, 21, 0.12);
}

.stripe-card-mock .stripe-brand {
  margin-top: 1px;
  color: #9298a1;
  font-size: 9px;
  text-align: right;
}

.stripe-status {
  position: relative;
  margin-top: 10px;
  padding: 10px 13px 10px 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 10.5px;
}

.stripe-status::before {
  position: absolute;
  top: 50%;
  left: 13px;
  display: grid;
  width: 15px;
  height: 15px;
  content: "i";
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  transform: translateY(-50%);
}

.stripe-status.info {
  color: #516577;
  background: #f4f7f9;
  border-color: #e3e8ec;
}

.stripe-status.success {
  color: var(--success);
  background: var(--success-bg);
  border-color: #c8e7d4;
}

.stripe-status.success::before {
  content: "✓";
}

.stripe-status.error {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #efcaca;
}

.stripe-status.error::before {
  content: "!";
}

@media (max-width: 576px) {
  .stripe-element-heading {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .stripe-secure-badge {
    grid-column: 2;
    justify-self: start;
    margin-top: 3px;
  }

  #stripe_payment_element,
  #stripe_payment_element[data-stripe-mode="payment"],
  #stripe_payment_element[data-stripe-mode="demo"] {
    padding: 14px;
  }

  .stripe-element-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

/* Professional reference selector */
.reference-type-card {
  gap: 14px;
  margin-bottom: 18px;
  padding: 19px;
  background: linear-gradient(135deg, #fffaf6 0%, #fff 74%);
  border: 1px solid #eee1d7;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(37, 43, 53, 0.035);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.reference-type-card:focus-within {
  border-color: #f2ba90;
  box-shadow: 0 0 0 3px rgba(247, 136, 21, 0.07);
}

.reference-type-card:has(select.error) {
  border-color: #e9bcbc;
}

.reference-type-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.reference-type-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: #f16818;
  background: #fff0e5;
  border: 1px solid #ffdac0;
  border-radius: 10px;
}

.reference-type-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
}

.reference-type-heading label {
  display: block;
  color: #252b35;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.45;
}

.reference-type-heading p {
  margin-top: 2px;
  color: #7b818a;
  font-size: 10.5px;
  line-height: 1.5;
}

.reference-select-control {
  position: relative;
  width: 100%;
}

.reference-select-control > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  color: #f16818;
  pointer-events: none;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.reference-select-control > select {
  min-height: 52px;
  padding-left: 45px;
  background-color: #fff;
  font-weight: 580;
}

.reference-select-control:focus-within > svg {
  color: #db5008;
}

.reference-type-help {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.reference-type-help span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: #626a75;
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 520;
  line-height: 1.2;
}

.reference-type-help svg {
  width: 13px;
  height: 13px;
  color: #f07824;
  stroke-width: 1.9;
}

.reference-type-card > .error-msg.visible {
  margin-top: -5px;
}

@media (max-width: 576px) {
  .reference-type-card {
    padding: 16px;
  }

  .reference-type-help {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-type-help span {
    width: 100%;
    border-radius: 7px;
  }
}

/* Final responsive hardening across phones, tablets and narrow windows */
@media (max-width: 768px) {
  .container,
  .success-mode .container {
    max-width: 100%;
  }

  .card,
  .confirmation-box,
  .timer-box,
  .confirmation-email {
    min-width: 0;
  }

  .price-display {
    padding: 0;
  }

  .price-main,
  .annual-saving,
  .conf-row span,
  .reservation-copy,
  .confirmation-email p,
  .stripe-element-heading,
  .stripe-element-footer {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 576px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .card {
    border-radius: 14px;
  }

  #step1 .card-body,
  #step2 .card-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .section-title {
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
  }

  .territory-grid,
  .why-apply-group,
  .reference-type-card {
    min-width: 0;
  }

  .pricing-table tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-table tbody td {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .pricing-table .price-cell {
    white-space: normal;
  }

  .price-card-body,
  .price-card-header,
  .price-card-footer {
    min-width: 0;
  }

  .price-card-header > div,
  .price-card-footer > * {
    min-width: 0;
  }

  .checkbox-group label,
  .nearby-option,
  .waitlist-choice-copy,
  .reference-type-heading,
  .why-apply-heading {
    overflow-wrap: anywhere;
  }

  .submission-actions button {
    min-width: 0;
  }

  .success-mode .container {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .success-mode .confirmation-box,
  .success-mode .timer-box,
  .confirmation-email {
    width: 100%;
  }

  .success-mode #reservation_countdown {
    padding-right: 4px;
    padding-left: 4px;
  }
}

@media (max-width: 375px) {
  .header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .header h1 {
    font-size: 19px;
    line-height: 1.25;
  }

  .progress-bar {
    width: calc(100% - 20px);
    padding-right: 16px;
    padding-left: 16px;
  }

  .step-divider {
    width: clamp(20px, 9vw, 34px);
    margin-right: 7px;
    margin-left: 7px;
  }

  #step1 .card-header,
  .application-step-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  #step1 .card-body,
  #step2 .card-body {
    padding-right: 13px;
    padding-left: 13px;
  }

  #step1 .info-box,
  .themed-notice {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
  }

  .info-box-icon {
    width: 30px;
    height: 30px;
  }

  .pricing-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-table tbody td,
  .pricing-table tbody td:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid #eeeeee;
  }

  .pricing-table tbody td:last-child {
    border-bottom: 0;
  }

  .why-apply-heading,
  .reference-type-heading {
    gap: 10px;
  }

  .why-apply-icon,
  .reference-type-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .stripe-element-heading {
    padding-right: 12px;
    padding-left: 12px;
  }

  .stripe-element-footer > strong {
    white-space: normal;
  }

  .success-mode .success-page h2 {
    font-size: 29px;
    letter-spacing: -1px;
  }

  .success-mode .confirmation-box {
    padding-right: 14px;
    padding-left: 14px;
  }

  .success-mode .conf-row > span:last-child {
    padding-left: 0;
  }

  .reservation-main {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .reservation-shield {
    width: 58px;
    height: 64px;
  }

  .success-mode #reservation_countdown {
    flex-direction: column;
    gap: 4px;
  }

  .confirmation-email {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
  }

  .email-icon {
    width: 42px;
    height: 42px;
  }
}

/* Unified radio controls */
.waitlist-choice {
  display: none;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
  padding: 13px 15px;
  color: #343941;
  background: #fff;
  border: 1.5px solid #e1e4e8;
  border-radius: 9px;
  box-shadow: 0 3px 10px rgba(28, 35, 48, 0.04);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.waitlist-choice.visible {
  display: grid;
}

.waitlist-choice:hover {
  background: #fffaf6;
  border-color: #f6ad72;
}

.waitlist-choice:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(247, 136, 21, 0.12);
}

.waitlist-choice.selected {
  background: #fff7f0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(247, 136, 21, 0.09);
}

.waitlist-choice input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.waitlist-check {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: transparent;
  background: #fff;
  border: 2px solid #c9ced5;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.waitlist-choice:hover .waitlist-check {
  border-color: #f59a51;
}

.waitlist-choice input:checked + .waitlist-check {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.03);
}

.waitlist-choice-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.waitlist-choice-copy strong {
  color: #242a33;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.waitlist-choice-copy small {
  color: #747b85;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.45;
}

input[type="radio"] {
  display: inline-grid;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  flex: 0 0 20px;
  appearance: none;
  -webkit-appearance: none;
  place-content: center;
  color: var(--primary);
  background: #fff;
  border: 2px solid #c8cdd4;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(24, 32, 48, 0.06);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input[type="radio"]::before {
  width: 10px;
  height: 10px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transform: scale(0);
  transition: transform 0.15s ease;
}

input[type="radio"]:hover {
  border-color: #f59a51;
  box-shadow: 0 0 0 4px rgba(247, 136, 21, 0.09);
}

input[type="radio"]:checked {
  background: #fff8f2;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(247, 136, 21, 0.12);
}

input[type="radio"]:checked::before {
  transform: scale(1);
}

input[type="radio"]:focus {
  outline: none;
}

input[type="radio"]:focus-visible {
  border-color: var(--primary);
  outline: 3px solid rgba(247, 136, 21, 0.2);
  outline-offset: 2px;
}

input[type="radio"]:disabled {
  color: #b9bec6;
  background: #f3f4f6;
  border-color: #d9dde2;
  box-shadow: none;
  cursor: not-allowed;
}

.nearby-option input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: auto;
}

/* Founding-member application question */
.why-apply-group {
  gap: 14px;
  margin-top: 28px;
  padding: 21px;
  background: linear-gradient(135deg, #fffaf6 0%, #fff 72%);
  border: 1px solid #f1e3d8;
  border-radius: 13px;
}

.why-apply-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.why-apply-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: #f16818;
  background: #fff0e5;
  border: 1px solid #ffdcc3;
  border-radius: 10px;
}

.why-apply-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
}

.why-apply-heading label {
  display: block;
  color: #222934;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
}

.why-apply-heading p {
  margin-top: 2px;
  color: #7a8089;
  font-size: 11.5px;
  line-height: 1.5;
}

.why-apply-control {
  overflow: hidden;
  background: #fff;
  border: 1.5px solid #dfe2e6;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(28, 35, 48, 0.035);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.why-apply-control:hover {
  border-color: #c9cdd3;
}

.why-apply-control:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(247, 136, 21, 0.1);
}

.why-apply-control:has(textarea.error) {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(200, 50, 50, 0.08);
}

.why-apply-control textarea,
.why-apply-control textarea:hover,
.why-apply-control textarea:focus,
.why-apply-control textarea.error {
  display: block;
  width: 100%;
  min-height: 138px;
  margin: 0;
  padding: 16px 18px;
  color: #2d3440;
  background: transparent;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  font-size: 14px;
  line-height: 1.65;
  resize: vertical;
}

.why-apply-control textarea::placeholder {
  color: #9a9fa7;
  opacity: 1;
}

.why-apply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 45px;
  padding: 9px 13px;
  background: #fafafa;
  border-top: 1px solid #eceef0;
}

.why-apply-guidance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #777e89;
  font-size: 10.5px;
  line-height: 1.45;
}

.why-apply-guidance svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #f07824;
}

.word-count {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #747b85;
  background: #fff;
  border: 1px solid #e3e5e8;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.word-count strong {
  color: #343b46;
  font-weight: 750;
}

.word-count.target-met {
  color: #16824b;
  background: #effaf4;
  border-color: #c9ead8;
}

.word-count.target-met strong {
  color: #16824b;
}

.why-apply-group > .error-msg.visible {
  margin-top: -5px;
}

@media (max-width: 576px) {
  .why-apply-group {
    padding: 16px;
  }

  .why-apply-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .word-count {
    align-self: flex-end;
  }
}
