.pa-form-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 36px;
  border: 1px solid #e5e9f2;
  box-shadow:
    0 10px 30px rgba(20,40,90,0.08),
    0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

.pa-form-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(20,40,90,0.12),
    0 4px 10px rgba(0,0,0,0.06);
}

.pa-form-card input,
.pa-form-card select,
.pa-form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d7ddeb;
  font-size: 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: #fff;
}

.pa-form-card input:focus,
.pa-form-card select:focus,
.pa-form-card textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  background: #fff;
}

.pa-btn-primary {
  background: linear-gradient(135deg,#3b82f6,#2563eb);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pa-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37,99,235,0.35);
}

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

/* FIX: was 'select:valid' (global) — scoped to plugin app to avoid bleeding into WP admin or theme selects. */
#pa-letterform-app select:valid {
  border-color: #2563eb;
}

.step-active {
  color: #2563eb;
  font-weight: 600;
}

.step-complete {
  color: #16a34a;
}

.step-line {
  height: 3px;
  background: linear-gradient(90deg,#3b82f6,#2563eb);
  border-radius: 10px;
}

input::placeholder {
  color: #9aa3b2;
}

.inside-header {
  border-bottom: 1px solid #4e46470f;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
}

.main-navigation,
.mobile-menu-control-wrapper,
.main-nav {
  display: none !important;
}

#pa-letterform-app {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.pa-progress-wrap {
  position: relative;
  margin: 0 0 22px;
  padding: 22px 18px 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
  border: 1px solid #dce7f7;
  border-radius: 18px;
  overflow: hidden;
}

.pa-progress-bar {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 44px;
  height: 4px;
  background: #d9e3f2;
  border-radius: 999px;
  z-index: 1;
}

.pa-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f62fe 0%, #3f8cff 100%);
  transition: width 0.35s ease;
}

.pa-progress-steps {
  padding-top: 6px;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.pa-progress-step {
  flex: 1;
  min-width: 90px;
  text-align: center;
  position: relative;
}

.pa-progress-circle {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #e8eef8;
  border: 2px solid #d6e1f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #5f6f86;
  box-shadow: 0 4px 10px rgba(15, 98, 254, 0.05);
  transition: all 0.25s ease;
}

.pa-progress-label {
  font-size: 13px;
  line-height: 1.35;
  color: #5a6880;
  font-weight: 600;
  max-width: 120px;
  margin: 0 auto;
}

.pa-progress-step.active .pa-progress-circle {
  background: linear-gradient(180deg, #0f62fe 0%, #2a7cff 100%);
  border-color: #0f62fe;
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 8px 18px rgba(15, 98, 254, 0.22);
}

.pa-progress-step.active .pa-progress-label {
  color: #163a70;
}

.pa-progress-step.completed .pa-progress-circle {
  background: #ffffff;
  border-color: #0f62fe;
  color: #0f62fe;
}

.pa-progress-step.completed .pa-progress-circle span {
  display: none;
}

.pa-progress-step.completed .pa-progress-circle::before {
  content: "✓";
  font-size: 16px;
  font-weight: 800;
}

.pa-progress-step.completed .pa-progress-label {
  color: #244a84;
}

.pa-stage {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid #e3ebf7;
  border-radius: 20px;
  padding: 26px;
  box-shadow:
    0 10px 30px rgba(16, 24, 40, 0.05),
    0 2px 8px rgba(15, 98, 254, 0.04);
}

.pa-stage h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  color: #0f1728;
}

.pa-stage h3 {
  margin: 36px 0 10px;
  color: #15315f;
}

.pa-stage h4 {
  margin: 0 0 12px;
}

.pa-stage p {
  color: #4D5769;
  line-height: 1.6;
}

#pa-letterform label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 500;
  color: #18263a;
  letter-spacing: -0.01em;
}

#pa-letterform input[type="text"],
#pa-letterform input[type="email"],
#pa-letterform input[type="date"],
#pa-letterform select,
#pa-letterform textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #d7e1ef;
  border-radius: 14px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.4;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  color: #142033;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease;
  appearance: none;
  -webkit-appearance: none;
}

#pa-letterform input[type="text"]:hover,
#pa-letterform input[type="email"]:hover,
#pa-letterform input[type="date"]:hover,
#pa-letterform select:hover,
#pa-letterform textarea:hover {
  border-color: #bfd2f3;
  background: #ffffff;
}

#pa-letterform input[type="text"]:focus,
#pa-letterform input[type="email"]:focus,
#pa-letterform input[type="date"]:focus,
#pa-letterform select:focus,
#pa-letterform textarea:focus {
  outline: none;
  border-color: #2f6df6;
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(47, 109, 246, 0.12),
    0 8px 20px rgba(47, 109, 246, 0.10);
}

#pa-letterform textarea {
  min-height: 140px;
  resize: vertical;
}

#pa-letterform .pa-is-filled {
  border-color: #b8cff6 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 2px 10px rgba(15, 98, 254, 0.04);
}

#pa-letterform select {
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7c96 50%),
    linear-gradient(135deg, #6b7c96 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.pa-grounds-wrap label,
.pa-stage label:has(input[type="checkbox"]),
.pa-stage label:has(input[type="radio"]) {
  position: relative;
  display: block;
  margin: 10px 0;
  padding: 15px 16px 15px 50px;
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  font-weight: 600;
  color: #1b2940;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.03);
}

.pa-grounds-wrap label:hover,
.pa-stage label:has(input[type="checkbox"]):hover,
.pa-stage label:has(input[type="radio"]):hover {
  border-color: #bfd2f3;
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px rgba(16, 24, 40, 0.05),
    0 2px 8px rgba(15, 98, 254, 0.05);
}

.pa-grounds-wrap label input[type="checkbox"],
.pa-grounds-wrap label input[type="radio"],
.pa-stage label input[type="checkbox"],
.pa-stage label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pa-grounds-wrap label::before,
.pa-stage label:has(input[type="checkbox"])::before,
.pa-stage label:has(input[type="radio"])::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #c7d5e9;
  background: #ffffff;
  transform: translateY(-50%);
  transition: all 0.22s ease;
  box-sizing: border-box;
}

.pa-grounds-wrap label::after,
.pa-stage label:has(input[type="checkbox"])::after,
.pa-stage label:has(input[type="radio"])::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffffff;
  transform: translateY(-50%) scale(0);
  transition: transform 0.18s ease;
}

.pa-select-card-selected {
  border-color: #2f6df6 !important;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%) !important;
  box-shadow:
    0 0 0 3px rgba(47, 109, 246, 0.14),
    0 12px 24px rgba(47, 109, 246, 0.12) !important;
  transform: translateY(-1px);
  color: #12315d !important;
}

.pa-select-card-selected::before {
  border-color: #2f6df6 !important;
  background: linear-gradient(180deg, #2f6df6 0%, #1457ea 100%) !important;
  box-shadow: 0 4px 10px rgba(47, 109, 246, 0.22);
}

.pa-select-card-selected::after {
  transform: translateY(-50%) scale(1) !important;
}

.pa-help {
  margin-top: 8px;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.pa-notice {
  margin-top: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  color: #21406f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  font-size: 15px;
  margin-bottom: 32px;
}
.pa-notice {
  background: #f8fafc;
  border: 1px solid #cbd5f5;
  border-left: 4px solid #2563eb;
  color: #1e293b;
}
#pa-char-count {
  margin-top: 10px;
  font-size: 14px;
  color: #5b6475;
  font-weight: 600;
}

#pa-char-count.pa-count-invalid {
  color: #b91c1c;
}

#pa-char-count.pa-count-valid {
  color: #15803d;
}

#pa-save-status {
  margin-top: 12px;
  font-size: 13px;
  color: #5b6475;
  min-height: 18px;
}

.pa-hidden-ground {
  display: none !important;
}

.pa-nav {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.pa-nav button {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}

.pa-nav button:hover {
  transform: translateY(-1px);
}

.pa-nav button:active {
  transform: translateY(0);
}

.pa-nav button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.pa-back {
  background: linear-gradient(180deg, #ffffff 0%, #f2f5fa 100%);
  color: #1f3048;
  border: 1px solid #d8e2ef !important;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
}

.pa-next,
.pa-submit {
  background: linear-gradient(180deg, #2f6df6 0%, #1457ea 100%);
  color: #fff;
  box-shadow:
    0 10px 20px rgba(47, 109, 246, 0.22),
    0 2px 6px rgba(47, 109, 246, 0.18);
}

#pa-review-output .pa-review-card {
  border: 1px solid #e1e9f5;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

#pa-review-output .pa-review-card h4 {
  margin: 0 0 12px;
  color: #15315f;
}

@media (max-width: 767px) {
  .pa-progress-wrap {
    margin: 0 0 16px;
    padding: 14px 12px 12px;
    border-radius: 16px;
  }

  .pa-progress-steps {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 0;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .pa-progress-steps::-webkit-scrollbar {
    display: none;
  }

  .pa-progress-step {
    flex: 1 1 0;
    min-width: 0;
  }

  .pa-progress-bar {
    left: 29px;
    right: 29px;
    top: 32px;
    height: 3px;
  }

  .pa-progress-circle {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    font-size: 14px;
  }

  .pa-progress-label {
    display: none;
  }

  .pa-progress-step.completed .pa-progress-circle {
    background: #ffffff;
    border-color: #0f62fe;
    color: #0f62fe;
  }

  .pa-progress-step.completed .pa-progress-circle span {
    display: none;
  }

  .pa-progress-step.completed .pa-progress-circle::before {
    content: "✓";
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
  }

  .pa-progress-step.active .pa-progress-circle {
    transform: scale(1.04);
  }

  .pa-stage {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .pa-stage h2 {
    font-size: 24px;
  }

  .pa-grounds-wrap label,
  .pa-stage label:has(input[type="checkbox"]),
  .pa-stage label:has(input[type="radio"]) {
    padding: 14px 14px 14px 50px;
    border-radius: 14px;
  }

  .pa-nav {
    gap: 10px;
  }

  .pa-nav button {
    flex: 1;
    padding: 14px 16px;
    font-size: 15px;
  }
}
.pa-stage-title {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.pa-stage-intro {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.65;
  color: #475569;
}

.pa-stage-microcopy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 8px 12px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #f8fbff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
}

.pa-fine-picker {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.pa-choice-accordion {
  display: block;
}

.pa-choice-card {
  width: 100%;
  display: block;
  text-align: left;
  background: #ffffff;
  border: 1px solid #d7dfeb;
  border-radius: 16px;
  padding: 18px 18px 17px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
  cursor: pointer;
  position: relative;
}

.pa-choice-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.pa-choice-card:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.pa-choice-card.is-selected {
  border-color: #3b82f6;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 14px 30px rgba(37, 99, 235, 0.10);
}

.pa-choice-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.pa-choice-title {
  display: inline-block;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: #0f172a;
}

.pa-choice-desc {
  display: block;
  font-size: 15px;
  line-height: 1.55;
  color: #64748b;
}

.pa-choice-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pa-choice-badge-private {
  background: #f3e8ff;
  color: #9333ea;
}

.pa-choice-badge-council {
  background: #dbeafe;
  color: #2563eb;
}

.pa-choice-card-accordion-toggle {
  padding-right: 54px;
}

.pa-choice-chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #94a3b8;
  transition: transform 0.18s ease;
}

.pa-choice-card-accordion-toggle.is-open .pa-choice-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.pa-choice-accordion-panel {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #fcfdff;
}

.pa-subchoice-label {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.pa-choice-subcard {
  margin-bottom: 10px;
  border-radius: 14px;
  padding: 15px 15px 14px;
}

.pa-choice-subcard:last-child {
  margin-bottom: 0;
}

.pa-dynamic-panel {
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
  padding: 18px 18px;
  border-radius: 16px;
}

.pa-dynamic-panel-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.pa-dynamic-panel-text {
  font-size: 15px;
  line-height: 1.65;
}

.pa-dynamic-panel-info {
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

.pa-dynamic-panel-info .pa-dynamic-panel-title,
.pa-dynamic-panel-info .pa-dynamic-panel-text {
  color: #1e40af;
}

.pa-dynamic-panel-warning {
  align-items: flex-start;
  border: 1px solid #f4d06f;
  background: #fffaf0;
}

.pa-dynamic-panel-warning-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 17px;
  line-height: 1;
  color: #d97706;
}

.pa-dynamic-panel-warning .pa-dynamic-panel-text {
  color: #9a3412;
  font-weight: 500;
}

.pa-notice-soft {
  border: 1px solid #dbe7ff;
  background: #f8fbff;
  color: #1d4ed8;
  border-radius: 14px;
  padding: 14px 16px;
}

#pa-stage1-next[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 767px) {
  .pa-stage-title {
    font-size: 31px;
  }

  .pa-stage-intro {
    font-size: 16px;
    line-height: 1.6;
  }

  .pa-choice-card {
    border-radius: 14px;
    padding: 16px 15px;
  }

  .pa-choice-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .pa-choice-badge {
    margin-top: 2px;
  }

  .pa-choice-title {
    font-size: 16px;
  }

  .pa-choice-desc {
    font-size: 14px;
  }

  .pa-choice-card-accordion-toggle {
    padding-right: 46px;
  }

  .pa-choice-chevron {
    right: 15px;
  }

  .pa-dynamic-panel {
    padding: 16px 15px;
    border-radius: 14px;
  }
}
/* Force custom card buttons to ignore theme button styling */
button.pa-choice-card,
button.pa-choice-card:hover,
button.pa-choice-card:focus,
button.pa-choice-card:active,
button.pa-choice-card:visited {
  -webkit-appearance: none;
  appearance: none;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #d7dfeb;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Main hover */
button.pa-choice-card:hover {
  background: #fbfdff;
  color: #0f172a;
  border-color: #bfd5ff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

/* Selected state */
button.pa-choice-card.is-selected,
button.pa-choice-card.is-selected:hover,
button.pa-choice-card.is-selected:focus,
button.pa-choice-card.is-selected:active {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
  color: #0f172a;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 14px 30px rgba(37, 99, 235, 0.10);
}

/* Accordion toggle specifically */
button.pa-choice-card-accordion-toggle,
button.pa-choice-card-accordion-toggle:hover,
button.pa-choice-card-accordion-toggle:focus,
button.pa-choice-card-accordion-toggle:active {
  background: #ffffff;
  color: #0f172a;
}

/* Open accordion header */
button.pa-choice-card-accordion-toggle.is-open,
button.pa-choice-card-accordion-toggle.is-open:hover,
button.pa-choice-card-accordion-toggle.is-open:focus,
button.pa-choice-card-accordion-toggle.is-open:active {
  background: #f8fbff;
  color: #0f172a;
  border-color: #3b82f6;
}

/* Sub-cards */
button.pa-choice-subcard,
button.pa-choice-subcard:hover,
button.pa-choice-subcard:focus,
button.pa-choice-subcard:active {
  background: #ffffff;
  color: #0f172a;
}

/* Selected sub-card */
button.pa-choice-subcard.is-selected,
button.pa-choice-subcard.is-selected:hover,
button.pa-choice-subcard.is-selected:focus,
button.pa-choice-subcard.is-selected:active {
  background: #f3f8ff;
  color: #0f172a;
  border-color: #3b82f6;
}

/* Make sure nested text always stays readable */
.pa-choice-card .pa-choice-title,
.pa-choice-card .pa-choice-desc,
.pa-choice-card .pa-choice-chevron {
  color: inherit;
}

.pa-choice-card .pa-choice-desc {
  color: #64748b;
}

.pa-choice-card.is-selected .pa-choice-desc {
  color: #475569;
}
.pa-dynamic-panel-info {
  border: 1px solid #dbe7f5;
  background: #f8fbff;
}

.pa-dynamic-panel-info .pa-dynamic-panel-title,
.pa-dynamic-panel-info .pa-dynamic-panel-text {
  color: #1e3a8a;
}
.pa-dynamic-panel-warning {
  align-items: flex-start;
  border: 1px solid #f3d9a4;
  background: #fffaf2;
}

.pa-dynamic-panel-warning .pa-dynamic-panel-text {
  color: #9a3412;
  font-weight: 500;
}
.pa-choice-card {
  position: relative;
  overflow: hidden;
}

.pa-choice-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: transparent;
  transition: background 0.18s ease;
}

.pa-choice-card.is-selected::before {
  background: linear-gradient(180deg, #2563eb 0%, #60a5fa 100%);
}
.pa-stage-hero {
  margin-bottom: 14px;
}

.pa-stage-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pa-stage-title {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.pa-stage-intro {
  margin: 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.65;
  color: #475569;
}

.pa-stage-chipline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.pa-stage-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #d9e6ff;
  border-radius: 999px;
  background: #f8fbff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
}

.pa-ticket-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

#pa-letterform-app button.pa-ticket-card,
#pa-letterform-app button.pa-ticket-card:hover,
#pa-letterform-app button.pa-ticket-card:focus,
#pa-letterform-app button.pa-ticket-card:active {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid #d8e1ee;
  border-radius: 20px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#pa-letterform-app button.pa-ticket-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: transparent;
  transition: background 0.18s ease;
}

#pa-letterform-app button.pa-ticket-card:hover {
  transform: translateY(-2px);
  border-color: #b9d0ff;
  background: #fbfdff;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.08);
}

#pa-letterform-app button.pa-ticket-card.is-selected,
#pa-letterform-app button.pa-ticket-card.is-selected:hover,
#pa-letterform-app button.pa-ticket-card.is-selected:focus,
#pa-letterform-app button.pa-ticket-card.is-selected:active {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  border-color: #3b82f6;
  color: #0f172a;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

#pa-letterform-app button.pa-ticket-card.is-selected::before {
  background: linear-gradient(180deg, #2563eb 0%, #60a5fa 100%);
}

.pa-ticket-card-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf4ff;
  color: #1d4ed8;
  font-size: 20px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.pa-ticket-card-content {
  display: block;
  min-width: 0;
  flex: 1;
}

.pa-ticket-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 6px;
}

.pa-ticket-card-title {
  display: inline-block;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.pa-ticket-card-subtitle {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pa-ticket-card-desc {
  display: block;
  font-size: 15px;
  line-height: 1.65;
  color: #5C6C83;
}

.pa-ticket-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pa-ticket-card-badge-private {
    background: #e5e7eb;
    color: #374151;
}

.pa-ticket-card-badge-council {
  background: #dbeafe;
  color: #2563eb;
}

.pa-selection-summary {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px dashed #c7d7f6;
  border-radius: 16px;
  background: #fafcff;
}

.pa-selection-summary-label {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pa-selection-summary-value {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.pa-dynamic-panel {
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
  padding: 18px;
  border-radius: 18px;
}

.pa-dynamic-panel-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
}

.pa-dynamic-panel-text {
  font-size: 15px;
  line-height: 1.7;
}

.pa-dynamic-panel-info {
  border: 1px solid #dbe7f5;
  background: #f8fbff;
}

.pa-dynamic-panel-info .pa-dynamic-panel-title,
.pa-dynamic-panel-info .pa-dynamic-panel-text {
  color: #1e3a8a;
}

.pa-dynamic-panel-warning {
  align-items: flex-start;
  border: 1px solid #f3d9a4;
  background: #fffaf2;
}

.pa-dynamic-panel-warning-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 17px;
  line-height: 1;
  color: #d97706;
}

.pa-dynamic-panel-warning .pa-dynamic-panel-text {
  color: #9a3412;
  font-weight: 500;
}

.pa-notice-soft {
  border: 1px solid #dbe7ff;
  background: #f8fbff;
  color: #1d4ed8;
  border-radius: 14px;
  padding: 14px 16px;
}

#pa-stage1-next[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 900px) {
  .pa-ticket-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .pa-stage-title {
    font-size: 32px;
    line-height: 1.12;
  }

  .pa-stage-intro {
    font-size: 16px;
  }

  #pa-letterform-app button.pa-ticket-card,
  #pa-letterform-app button.pa-ticket-card:hover,
  #pa-letterform-app button.pa-ticket-card:focus,
  #pa-letterform-app button.pa-ticket-card:active {
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
  }

  .pa-ticket-card-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
    font-size: 18px;
  }

  .pa-ticket-card-title {
    font-size: 20px;
  }

  .pa-ticket-card-desc {
    font-size: 14px;
    line-height: 1.55;
  }

  .pa-dynamic-panel {
    padding: 16px;
    border-radius: 16px;
  }
}
.ph2-title{
font-size:16px;	
}
.reasons-listx{
font-size:25px;
font-weight:500;	
}
.pa-grounds-wrap {
  margin-top: 22px;
}

.pa-grounds-wrap .reasons-listx {
  margin: 40px 0 14px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  color: #163a76;
  letter-spacing: -0.01em;
}

.pa-grounds-wrap .reasons-listx:first-child {
  margin-top: 0;
}

.pa-reason-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  margin: 0 0 12px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.pa-reason-card:hover {
  border-color: #bcd2ff;
  background: #fbfdff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.pa-reason-card input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 3px 0 0;
  width: 19px;
  height: 19px;
  accent-color: #2563eb;
  cursor: pointer;
}

.pa-reason-content {
  display: block;
  min-width: 0;
  flex: 1;
}

.pa-reason-title {
  display: block;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  color: #0f172a;
}

.pa-reason-desc {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.55;
  color: #48586F;
}

.pa-reason-card.pa-reason-selected {
  border-color: #3b82f6;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.10);
}

.pa-reason-card.pa-reason-selected .pa-reason-title {
  color: #123a7a;
}

.pa-reason-card.pa-reason-selected .pa-reason-desc {
  color: #4b648a;
}

.pa-hidden-ground {
  display: none !important;
}

@media (max-width: 767px) {
  .pa-grounds-wrap .reasons-listx {
    font-size: 24px;
    margin: 40px 0 12px;
  }

  .pa-reason-card {
    gap: 12px;
    padding: 14px 14px;
    border-radius: 14px;
  }

  .pa-reason-title {
    font-size: 17px;
  }

  .pa-reason-desc {
    font-size: 14px;
    line-height: 1.5;
  }
}
.pa-helper {
  font-size: 13px;
  color: #656C7A;
  margin-top: 4px;
  margin-bottom:12px;
}
.pa-notice-success .tick {
  color: #10b981; /* nice modern green */
}
.pa-notice-info {
  background: #eef4ff;
  border-left: 4px solid #2563eb;
  color: #1e40af;
}

.pa-notice-success {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  color: #065f46;
}
.pa-notice-success {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pa-notice-success .pa-icon {
  color: #10b981!important;
  font-size: 15px;
  line-height: 1.2;
  margin-top: 2px;
  flex-shrink: 0;
}

.pa-notice-success .pa-text {
  flex: 1;
}
.pa-notice.pa-notice-success .pa-icon {
  color: #10b981 !important;
}
.pa-notice-success .pa-icon {
  color: #10b981 !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding-right: 7px;
}
/* Floating Next Button */
.pa-floating-next {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 9999;

    display: flex;
    justify-content: center;

    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;

    transition: all 0.3s ease;
}

.pa-floating-next.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pa-floating-next button {
    width: 100%;
    max-width: 500px;
    padding: 14px 18px;

    border: none;
    border-radius: 12px;

    font-size: 16px;
    font-weight: 600;

    background: linear-gradient(135deg, #00468B, #0066cc);
    color: #fff;

    box-shadow: 0 6px 18px rgba(0,0,0,0.2);

    cursor: pointer;
}

.pa-floating-next button:active {
    transform: scale(0.98);
}

/* Safe area for iPhone */
@supports (padding: max(0px)) {
    .pa-floating-next {
        bottom: max(15px, env(safe-area-inset-bottom));
    }
}

/* Desktop = hide */
@media (min-width: 768px) {
    .pa-floating-next {
        display: none;
    }
}
.pa-help-sub {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}
.pa-help {
    margin-top: 10px;
}

.pa-help-sub {
    margin-top: 2px;
}
.pa-review-card {
    background: #fff;
    border: 1px solid #d9e2ef;
    border-radius: 18px;
    padding: 20px 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
}

.pa-review-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #163a70;
}

.pa-review-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eef4ff;
    font-size: 18px;
    flex: 0 0 34px;
}

.pa-review-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pa-review-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

.pa-review-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pa-review-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #31496b;
}

.pa-review-value {
    font-size: 1rem;
    line-height: 1.55;
    color: #42526b;
    word-break: break-word;
}

.pa-review-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pa-review-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    line-height: 1.55;
    color: #42526b;
}

.pa-review-list li:last-child {
    margin-bottom: 0;
}

.pa-review-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #2f6fed;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
}

.pa-review-text {
    margin: 0;
    line-height: 1.65;
    color: #42526b;
}

.pa-review-subsection {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
}

.pa-review-subtitle {
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #31496b;
}

.pa-review-empty {
    margin: 0;
    color: #6b7a90;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .pa-review-row {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 14px;
        align-items: start;
    }

    .pa-review-label {
        margin: 0;
    }
}
.pa-review-card {
    background: #fff;
    border: 1px solid #d9e2f0;
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 4px 14px rgba(18, 42, 76, 0.05);
}

.pa-review-header {
    margin-bottom: 14px;
}

.pa-review-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #173b73;
}

.pa-review-title-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    font-size: 16px;
    flex: 0 0 34px;
}

.pa-review-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e8eef7;
}

.pa-review-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #c8d6ee;
    border-radius: 999px;
    background: #f7faff;
    color: #173b73;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.pa-review-edit-btn:hover,
.pa-review-edit-btn:focus {
    background: #edf4ff;
    border-color: #9db7e5;
    color: #0f2f5c;
    transform: translateY(-1px);
    outline: none;
}

.pa-review-edit-btn:active {
    transform: translateY(0);
}

.pa-review-edit-btn-icon {
    font-size: 15px;
    line-height: 1;
}

@media (max-width: 480px) {
    .pa-review-card {
        padding: 16px 14px;
    }

    .pa-review-footer {
        justify-content: stretch;
    }

    .pa-review-edit-btn {
        width: 100%;
        justify-content: center;
    }
}
.pa-reassurance {
    margin-top: 10px;
    margin-bottom: 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4a5d73;
}

.pa-reassurance span {
    display: block;
    margin-bottom: 4px;
}
.pa-final-prompt{
margin-bottom: 12px;
margin-top: 26px;
font-weight: 600;
color: #0f1c3f !important;	
}
/* Terms / checkbox box override */
.pa-checkbox.termsbox {
    display: block;
    padding: 14px 14px;
    border-radius: 12px;

    background: #f5f7fa; /* light grey */
    border: none; /* 1px solid #e2e8f0; */

    box-shadow: none;
}

/* kill inherited gradient / heavy styles */
.pa-stage label.pa-checkbox.termsbox {
    background: #f5f7fa !important;
    border: none; /* 1px solid #e2e8f0 !important; */
    box-shadow: none !important;
}

/* hover (very subtle) */
.pa-checkbox.termsbox:hover {
    background: #eef2f7;
    border-color: #d6dee9;
}

/* checked state (nice subtle blue) */
.pa-checkbox.termsbox input:checked + span {
    font-weight: 500;
}

.pa-checkbox.termsbox input:checked ~ span,
.pa-checkbox.termsbox:has(input:checked) {
    background: #eef4ff;
    border-color: #c9d8f5;
}
.pa-checkbox.termsbox {
    margin-bottom: 10px;
}

.pa-reassurance {
    margin-top: 6px;
    margin-bottom: 16px;
}
.pa-reassurance {
    font-size: 0.9rem;
    color: #5b6b82;
}
.pa-floating-next .button-primary {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.pa-floating-next .button-primary:hover {
    transform: translateY(-1px);
}
.pa-reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #5b6b82;
}

.pa-reassurance span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

/* optional: style the tick itself */
.pa-reassurance span::before {
    content: "✔";
    font-size: 13px;
    color: #4f7cff;
    line-height: 1;
    position: relative;
    top: 1px; /* tiny nudge for perfect alignment */
}
.pa-reassurance span::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4f7cff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
}

.pa-reassurance span::after {
    content: "✓";
    position: absolute;
    margin-left: -16px;
    font-size: 10px;
    color: #fff;
}
.pa-confirmation-wrap {
    margin-top: 18px;
}

.pa-confirmation-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f2f5c;
}

.pa-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin: 0;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    background: #f7f8fa;
    cursor: pointer;
    box-shadow: none;
}

.pa-terms-row input[type="checkbox"] {
    margin: 2px 0 0;
    flex: 0 0 auto;
}

.pa-terms-row span {
    display: block;
    font-size: 0.96rem;
    line-height: 1.45;
    color: #2f4057;
    font-weight: 400;
}

.pa-terms-row a {
    font-weight: 500;
    text-decoration: underline;
}

.pa-confirmation-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #5f6f86;
	margin-bottom: 22px;
}

.pa-confirmation-notes span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pa-confirmation-notes span::before {
    content: "✓";
    font-size: 12px;
    line-height: 1;
    color: #5f7eea;
    font-weight: 700;
}

@media (max-width: 480px) {
    .pa-terms-row {
        padding: 12px;
    }

    .pa-confirmation-notes {
        gap: 6px 12px;
        font-size: 0.88rem;
    }
}
.pa-confirmation-wrap {
    margin-top: 18px;
}

.pa-confirmation-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f2f5c;
}

.pa-terms-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    min-height: 50px;
    margin: 0;
    border: 1px solid #e4e9f1;
    border-radius: 12px;
    background-color: #f7f7f7 !important;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.pa-terms-row:hover {
    background-color: #f7f7f7 !important;
    border-color: #d9e1ec;
}

.pa-terms-row input[type="checkbox"] {
    margin: 0;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
	background-color: #f7f7f7 !important;
}

.pa-terms-row span {
    display: block;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #2f4057;
    font-weight: 400;
	background-color: #f7f7f7 !important;
}

.pa-terms-row a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.pa-terms-row:has(input:focus-visible) {
    border-color: #9dbcf8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.pa-terms-row:has(input:checked) {
    border-color: #cfe0fb;
    background-color: #f7f7f7 !important;
}

.pa-confirmation-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #61738b;
}

.pa-confirmation-notes span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pa-confirmation-notes span::before {
    content: "✓";
    font-size: 12px;
    line-height: 1;
    color: #6d7ff2;
    font-weight: 700;
}

@media (max-width: 480px) {
    .pa-terms-row {
        padding: 10px 12px;
        min-height: 48px;
    }

    .pa-terms-row span {
        font-size: 0.94rem;
    }

    .pa-confirmation-notes {
        gap: 6px 12px;
        font-size: 0.88rem;
    }
}
.pa-terms-row:has(input:checked) {
    border-color: #d7e1ee;
    background-color: #f7f7f7 !important;
    box-shadow: none;
}
/* === Terms row: make it neutral / non-interactive === */
.pa-terms-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0; /* remove box feel */
    border: none !important;
    box-shadow: none !important;
    cursor: default;
    transition: none !important;
	background-color: #f7f7f7 !important;
}
}

/* kill hover effects */
.pa-terms-row:hover {
    background-color: #f7f7f7 !important;
    border: none !important;
}

/* kill focus glow */
.pa-terms-row:has(input:focus-visible) {
    box-shadow: none !important;
    border: none !important;
}

/* kill checked state styling */
.pa-terms-row:has(input:checked) {
   background-color: #f7f7f7 !important;
    border: none !important;
    box-shadow: none !important;
}

/* checkbox only interactive element */
.pa-terms-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #3b82f6;
}

/* text */
.pa-terms-row span {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #2f4057;
}

/* links */
.pa-terms-row a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}
.pa-terms-row {
    padding: 8px 10px;
    border-radius: 8px; /* was more rounded */
    background: #f7f7f8; /* slightly flatter grey */
}
.pa-terms-row input[type="checkbox"] {
    margin-top: 2px;
}
.button-primary {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%)!important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28)!important;
}
.pa-back {
    color: #2f4057;
    background: #f3f5f8;
    border: 1px solid #dbe3ee;
}

.pa-back:hover {
    background: #e9eff6;
    border-color: #cfd9e6;
    color: #2f4057 !important;
}
.pa-error {
    border-color: #dc2626 !important;
    background: #fff7f7 !important;
}

.pa-error-text {
    display: none;
    margin-top: 6px;
    font-size: 0.88rem;
    color: #dc2626;
}

.pa-group-error {
    display: none;
    margin-top: 8px;
    font-size: 0.88rem;
    color: #dc2626;
}
.pa-required {
    color: #dc2626;
}
.pa-group-error {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #ef4444;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.pa-grounds-wrap.pa-error {
    border-radius: 14px;
}
.pa-reason-card input[type="checkbox"] {
    display: none;
}
.pa-reason-card {
    cursor: pointer;
}
.pa-reason-card.pa-reason-selected {
    border: 2px solid #2563eb;
    background: #eff6ff;
}
.pa-reason-card::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
}

.pa-reason-card.pa-reason-selected::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: bold;
}
.pa-reason-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.pa-reason-card input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.pa-reason-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.pa-reason-card input[type="checkbox"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    width: 100%;
    height: 100%;
}
.pa-reason-card.pa-reason-selected {
    border: 2px solid #2563eb;
    background: #eff6ff;
}
.pa-reason-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.pa-reason-card input[type="checkbox"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.pa-reason-card.pa-reason-selected {
    border: 2px solid #2563eb;
    background: #eff6ff;
}

.pa-reason-card::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
}

.pa-reason-card.pa-reason-selected::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
/* ================================
   ParkAppeal - Reason Cards UI
   Clean card-based selection (no bullets)
================================ */

/* Kill theme-generated fake checkbox circles */
.pa-grounds-wrap label.pa-reason-card::before {
    display: none !important;
    content: none !important;
}

/* Base card */
.pa-reason-card {
    position: relative;
    display: block;
    cursor: pointer;
    padding: 16px 18px;
    border-radius: 14px;
    transition: all 0.2s ease;
}

/* Make entire card clickable, hide native checkbox */
.pa-reason-card input[type="checkbox"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

/* Slight hover feedback (mobile-safe) */
.pa-reason-card:hover {
    transform: translateY(-1px);
}

/* Selected state */
.pa-reason-card.pa-reason-selected {
    border: 2px solid #2563eb;
    background: #eff6ff;
}

/* Subtle check indicator (top right) */
.pa-reason-card::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    transition: all 0.2s ease;
}

/* Active check state */
.pa-reason-card.pa-reason-selected::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Optional: tighten left spacing now bullet is gone */
.pa-reason-content {
    margin-left: 0;
}
/* Kill ALL theme checkbox pseudo elements */
.pa-grounds-wrap label.pa-reason-card::before,
.pa-grounds-wrap label.pa-reason-card::after {
    content: none !important;
    display: none !important;
}

/* Also override any :has() based theme rules */
.pa-grounds-wrap label:has(input[type="checkbox"])::before {
    content: none !important;
    display: none !important;
}
/* Reset inner spacing */
.pa-reason-content {
    margin: 0;
    padding: 0;
}

/* Make card padding consistent */
.pa-reason-card {
    padding: 16px 16px 16px 16px;
}

/* Align text nicely */
.pa-reason-title {
    display: block;
    margin-bottom: 4px;
}

.pa-reason-desc {
    display: block;
    opacity: 0.8;
}
/* Stage 3 reason cards - remove old checkbox spacing */
.pa-grounds-wrap label.pa-reason-card,
.pa-stage .pa-grounds-wrap label.pa-reason-card:has(input[type="checkbox"]) {
    padding: 16px 18px !important;
    text-align: left !important;
}

/* Kill leftover fake checkbox spacing/elements */
.pa-stage .pa-grounds-wrap label.pa-reason-card::before,
.pa-stage .pa-grounds-wrap label.pa-reason-card:has(input[type="checkbox"])::before {
    content: none !important;
    display: none !important;
}

/* Keep inner text flush */
.pa-grounds-wrap .pa-reason-content {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.pa-grounds-wrap .pa-reason-title,
.pa-grounds-wrap .pa-reason-desc {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
}
/* Stage 4 evidence cards - remove old checkbox spacing */
.pa-evidence-wrap label,
.pa-stage .pa-evidence-wrap label:has(input[type="checkbox"]) {
    padding: 14px 16px !important;
}

/* Kill fake checkbox circle */
.pa-stage .pa-evidence-wrap label::before,
.pa-stage .pa-evidence-wrap label:has(input[type="checkbox"])::before {
    content: none !important;
    display: none !important;
}
/* Make evidence cards feel like reason cards */
.pa-evidence-wrap label {
    border-radius: 14px;
    cursor: pointer;
    position: relative;
}

/* Selected state */
.pa-evidence-wrap label.pa-select-card-selected {
    border: 2px solid #2563eb;
    background: #eff6ff;
}
/* Stage 4 evidence cards - remove old checkbox spacing */
.pa-stage[data-stage="4"] > label:has(input[name="evidence[]"]) {
    position: relative;
    display: block;
    padding: 14px 16px !important;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
}

/* Kill theme-generated fake checkbox circle */
.pa-stage[data-stage="4"] > label:has(input[name="evidence[]"])::before {
    content: none !important;
    display: none !important;
}

/* Hide native checkbox visually but keep full label click */
.pa-stage[data-stage="4"] > label:has(input[name="evidence[]"]) input[type="checkbox"] {
    position: absolute;
    opacity: 0 !important;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

/* Selected evidence card */
.pa-stage[data-stage="4"] > label.pa-select-card-selected {
    border: 2px solid #2563eb;
    background: #eff6ff;
}

/* Optional subtle check marker on selected cards */
.pa-stage[data-stage="4"] > label:has(input[name="evidence[]"])::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
}

.pa-stage[data-stage="4"] > label.pa-select-card-selected::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
/* Stage 4 evidence cards - kill ALL fake checkbox / tick pseudo-elements */
.pa-stage[data-stage="4"] > label:has(input[name="evidence[]"])::before,
.pa-stage[data-stage="4"] > label:has(input[name="evidence[]"])::after,
.pa-stage[data-stage="4"] > label.pa-select-card-selected::before,
.pa-stage[data-stage="4"] > label.pa-select-card-selected::after {
    content: none !important;
    display: none !important;
}

/* Keep Stage 4 evidence cards aligned cleanly */
.pa-stage[data-stage="4"] > label:has(input[name="evidence[]"]) {
    position: relative;
    display: block;
    padding: 14px 16px !important;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
}

/* Hide the real checkbox too */
.pa-stage[data-stage="4"] > label:has(input[name="evidence[]"]) input[type="checkbox"] {
    position: absolute;
    opacity: 0 !important;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

/* Selected state */
.pa-stage[data-stage="4"] > label.pa-select-card-selected {
    border: 2px solid #2563eb !important;
    background: #eff6ff !important;
}

/* FIX: moved inline style from pa-back-mobile element in shortcode PHP into stylesheet. */
.pa-back-mobile {
    margin-top: 32px;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 500;
    margin-left: 2px;
    cursor: pointer;
    display: none;
}

@media (max-width: 767px) {
    .pa-back-mobile {
        display: block;
    }
    .pa-back-final {
        display: none;
    }
}
#paFloatingNext {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #f3f4f6;
    border-top: 1px solid #dbe3f0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 14px rgba(0,0,0,0.08);
    display: none;
}

#paFloatingNext.show {
    display: block;
}

#paFloatingNextBtn {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: block;
}
.pa-terms-field .pa-error-text {
    display: none;
    margin-top: 8px;
    color: #c62828;
    font-size: 14px;
    font-weight: 600;
}

.pa-terms-field .pa-terms-box.pa-error,
.pa-terms-field input.pa-error {
    outline: none;
}

.pa-terms-field.pa-has-error .pa-terms-box {
    border: 1px solid #e57373;
    background: #fff5f5;
}
.pa-terms-field {
    margin-top: 12px;
}

.pa-terms-field .pa-terms-row {
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}

.pa-terms-field.pa-has-error .pa-terms-row {
    background: #fff5f5 !important;
    border: 1px solid #f1aeb5;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.pa-terms-field .pa-error-text {
    display: none;
    margin-top: 10px;
    padding-left: 28px; /* lines up with text */
    color: #c62828;
    font-size: 13px;
    font-weight: 600;
    position: relative;
}

/* little warning icon */
.pa-terms-field .pa-error-text::before {
    content: "⚠";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
}
/* ---------- Fix custom select arrow disappearing / animating ---------- */
#pa-letterform select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-color: #fff;

    /* custom arrow */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'><path d='M5 7.5L10 12.5L15 7.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;

    padding-right: 42px;

    /* stop weird arrow movement */
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* keep the arrow on focus/open states too */
#pa-letterform select:focus,
#pa-letterform select:active {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'><path d='M5 7.5L10 12.5L15 7.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
}

/* hide old IE arrow just in case */
#pa-letterform select::-ms-expand {
    display: none;
}
/* Evidence / reason cards - fully hide the native checkbox circle */
#pa-letterform .pa-stage label.pa-reason-card input[type="checkbox"],
#pa-letterform .pa-stage label.pa-reason-card input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    accent-color: transparent !important;
}

/* Remove the left indent that was there to make room for the circle */
#pa-letterform .pa-stage label.pa-reason-card:has(input[type="checkbox"]),
#pa-letterform .pa-stage label.pa-reason-card:has(input[type="radio"]) {
    padding-left: 18px !important;
}

/* Pull the inner content fully left */
#pa-letterform .pa-stage label.pa-reason-card .pa-reason-content {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Safety: if a fake circle is being drawn anywhere, kill it */
#pa-letterform .pa-stage label.pa-reason-card::before,
#pa-letterform .pa-stage label.pa-reason-card .pa-reason-content::before,
#pa-letterform .pa-stage label.pa-reason-card .pa-reason-title::before {
    display: none !important;
    content: none !important;
}
/* Private evidence list - remove checkbox circles */
#pa-letterform .pa-private-only label input[type="checkbox"],
#pa-letterform .pa-private-only label input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* Remove the left space reserved for the circle */
#pa-letterform .pa-private-only label:has(input[type="checkbox"]),
#pa-letterform .pa-private-only label:has(input[type="radio"]) {
    padding-left: 18px !important;
}

/* Kill any fake circle drawn with pseudo elements */
#pa-letterform .pa-private-only label::before,
#pa-letterform .pa-private-only label::after,
#pa-letterform .pa-private-only label span::before,
#pa-letterform .pa-private-only label span::after {
    content: none !important;
    display: none !important;
}
/* Mobile tidy-up for ticket reason dropdown */
@media (max-width: 768px) {
    #ticket_reason {
        font-size: 15px;
        line-height: 1.25;
        padding: 10px 42px 10px 12px;
        min-height: 44px;
    }

    /* If your form applies a shared style to all selects, this helps consistency */
    select#ticket_reason,
    #ticket_reason.pa-is-filled {
        font-size: 15px;
        line-height: 1.25;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

.pa-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
}

.pa-submit.is-loading {
  pointer-events: none;
  cursor: wait;
  transform: none;
  box-shadow: 0 10px 24px rgba(37,99,235,0.22);
  opacity: 0.96;
}

.pa-submit.is-loading:hover {
  transform: none;
}

.pa-btn-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.32);
  border-top-color: #ffffff;
  animation: paSpin 0.75s linear infinite;
  flex: 0 0 18px;
}

.pa-btn-label {
  display: inline-block;
}

@keyframes paSpin {
  to {
    transform: rotate(360deg);
  }
}
.pa-date-field {
  position: relative;
}

.pa-date-field::after {
  display: none;
}

/* Show custom icon on iPhone / iOS + Samsung Internet / WebKit mobile */
@supports (-webkit-touch-callout: none) {
  .pa-date-field::after {
    content: "📅";
    display: block;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
    opacity: 0.65;
  }

  .pa-date-field input[type="date"] {
    padding-right: 48px !important;
    min-height: 56px;
  }

  .pa-date-field input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    opacity: 0;
    cursor: pointer;
  }
}

/* Hide custom icon in Firefox */
@supports (-moz-appearance: none) {
  .pa-date-field::after {
    content: none;
    display: none;
  }
}


/* =========================================
   DATE ICON FIX - direct on input
   Works better on Android Chrome / Samsung Internet
========================================= */

#pa-letterform input[type="date"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7c96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 18px 18px !important;
    padding-right: 48px !important;
}

/* Keep native picker clickable but invisible */
#pa-letterform input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0 !important;
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Stop any extra generated icons on date inputs */
#pa-letterform input[type="date"]::-webkit-inner-spin-button,
#pa-letterform input[type="date"]::-webkit-clear-button {
    display: none !important;
}

/* Firefox fallback */
@supports (-moz-appearance: none) {
    #pa-letterform input[type="date"] {
        background-image: none !important;
        appearance: auto !important;
        -moz-appearance: auto !important;
        padding-right: 16px !important;
    }
}

.pa-sensitive-evidence-note {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff8e8;
    border: 1px solid #f1dfab;
    font-size: 14px;
    line-height: 1.45;
    color: #5f4a16;
}

/* Searchable parking operator field */
#pa-letterform .pa-operator-select-wrap {
  position: relative;
}

#pa-letterform .pa-native-operator-select {
  display: none !important;
}

#pa-letterform .pa-operator-search-ui {
  position: relative;
}

#pa-letterform .pa-operator-search-input {
  padding-right: 44px;
}

#pa-letterform .pa-operator-search-ui.has-selected-icon .pa-operator-search-input {
  padding-left: 44px;
}

#pa-letterform .pa-operator-selected-icon {
  display: none;
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 2;
  pointer-events: none;
  font-size: 18px;
  line-height: 1;
}

#pa-letterform .pa-operator-search-ui.has-selected-icon .pa-operator-selected-icon {
  display: block;
}

#pa-letterform .pa-operator-search-ui::after {
  content: "⌕";
  position: absolute;
  right: 16px;
  top: 15px;
  color: #64748b;
  pointer-events: none;
  font-size: 18px;
  line-height: 1;
}

#pa-letterform .pa-operator-search-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9999;
  max-height: 310px;
  overflow-y: auto;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #d7e1ef;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

#pa-letterform .pa-operator-search-results.is-visible {
  display: block;
}

#pa-letterform .pa-operator-search-group {
  padding: 10px 10px 6px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

#pa-letterform .pa-operator-search-result {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  color: #142033;
  font-size: 15px;
  line-height: 1.35;
}

#pa-letterform .pa-operator-search-result:hover,
#pa-letterform .pa-operator-search-result:focus {
  background: #eff6ff;
  outline: none;
}

#pa-letterform .pa-operator-search-manual {
  color: #334155;
}
