/* ============================================
   NHS PRESCRIPTIONS REGISTER PAGE
   Prefix: .npreg-
   Palette: Bowland blue/green — no purple
   ============================================ */

/* ============================================
   N1. HERO
   ============================================ */
.npreg-hero-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background: var(--brand-light);
}

.npreg-hero-glow-1,
.npreg-hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.npreg-hero-glow-1 {
  top: -100px;
  left: -100px;
  width: 320px;
  height: 320px;
  background: rgba(63, 115, 174, 0.18);
}

.npreg-hero-glow-2 {
  bottom: -120px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: rgba(121, 188, 46, 0.14);
}

.npreg-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.npreg-hero-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-dark);
  margin: 0 0 1rem;
}

@media (min-width: 1024px) {
  .npreg-hero-section { padding: 6rem 0 5rem; }
  .npreg-hero-title { font-size: 3rem; }
}

.npreg-hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-gray);
  line-height: 1.65;
  margin: 0 auto 2rem;
  max-width: 640px;
}

.npreg-hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.npreg-hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid rgba(63, 115, 174, 0.15);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-dark);
  box-shadow: 0 2px 8px rgba(63, 115, 174, 0.06);
}

.npreg-hero-trust-item i {
  color: var(--brand-secondary);
  font-size: 1rem;
}


/* ============================================
   N2. FORM
   ============================================ */
.npreg-form-section {
  padding: 0 0 5rem;
  background: var(--brand-light);
}

@media (min-width: 1024px) {
  .npreg-form-section { padding-bottom: 6rem; }
}

.npreg-form-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(63, 115, 174, 0.1);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 12px 40px rgba(63, 115, 174, 0.08);
}

@media (min-width: 768px) {
  .npreg-form-card { padding: 3rem 2.5rem; }
}

@media (min-width: 1024px) {
  .npreg-form-card { padding: 3.5rem; }
}

.npreg-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Fieldsets */
.npreg-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.npreg-fieldset:last-of-type {
  margin-bottom: 1.5rem;
}

.npreg-fieldset-legend {
  display: block;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0 0 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid rgba(63, 115, 174, 0.15);
  line-height: 1.2;
}

.npreg-fieldset-optional {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-slate);
  letter-spacing: 0;
}

/* Field layout */
.npreg-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .npreg-grid-2 { grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
  .npreg-field-full { grid-column: 1 / -1; }
}

.npreg-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.npreg-field:last-child { margin-bottom: 0; }
.npreg-grid-2 .npreg-field { margin-bottom: 0; }

.npreg-field label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-dark);
}

.npreg-req {
  color: #c0392b;
  font-weight: 800;
}

.npreg-hint {
  font-size: 0.8125rem;
  color: var(--text-slate);
  line-height: 1.5;
}

/* Inputs / textarea / select */
.npreg-field input[type="text"],
.npreg-field input[type="email"],
.npreg-field input[type="tel"],
.npreg-field input[type="date"],
.npreg-field textarea,
.npreg-select-wrap select {
  width: 100%;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid rgba(63, 115, 174, 0.2);
  border-radius: 0.625rem;
  padding: 0.75rem 0.9rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.npreg-field textarea {
  resize: vertical;
  min-height: 88px;
  font-family: var(--font-primary);
}

.npreg-field input:hover,
.npreg-field textarea:hover,
.npreg-select-wrap select:hover {
  border-color: rgba(63, 115, 174, 0.4);
}

.npreg-field input:focus,
.npreg-field textarea:focus,
.npreg-select-wrap select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(63, 115, 174, 0.12);
}

.npreg-field input:invalid:not(:placeholder-shown):not(:focus):not([value=""]) {
  border-color: rgba(192, 57, 43, 0.5);
}

/* Select with chevron */
.npreg-select-wrap {
  position: relative;
}

.npreg-select-wrap select {
  padding-right: 2.5rem;
  cursor: pointer;
}

.npreg-select-chevron {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-primary);
  font-size: 0.75rem;
  pointer-events: none;
}

/* Radio groups */
.npreg-radio-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.npreg-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.npreg-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--brand-light);
  border: 1.5px solid rgba(63, 115, 174, 0.12);
  border-radius: 0.625rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.npreg-radio:hover {
  border-color: rgba(63, 115, 174, 0.35);
}

.npreg-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.npreg-radio-marker {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(63, 115, 174, 0.3);
  border-radius: 50%;
  background: var(--white);
  margin-top: 0.125rem;
  position: relative;
  transition: border-color 0.2s ease;
}

.npreg-radio-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.625rem;
  height: 0.625rem;
  background: var(--brand-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.18s ease;
}

.npreg-radio input[type="radio"]:checked + .npreg-radio-marker {
  border-color: var(--brand-primary);
}

.npreg-radio input[type="radio"]:checked + .npreg-radio-marker::after {
  transform: translate(-50%, -50%) scale(1);
}

.npreg-radio:has(input:checked) {
  border-color: var(--brand-primary);
  background: rgba(63, 115, 174, 0.04);
}

.npreg-radio input[type="radio"]:focus-visible + .npreg-radio-marker {
  box-shadow: 0 0 0 3px rgba(63, 115, 174, 0.25);
}

.npreg-radio-text {
  font-size: 0.9375rem;
  color: var(--text-dark);
  line-height: 1.5;
}

/* Checkbox */
.npreg-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: var(--brand-light);
  border: 1.5px solid rgba(63, 115, 174, 0.12);
  border-radius: 0.625rem;
  cursor: pointer;
}

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

.npreg-checkbox-marker {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(63, 115, 174, 0.3);
  border-radius: 0.3rem;
  background: var(--white);
  margin-top: 0.15rem;
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.npreg-checkbox-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.4rem;
  height: 0.7rem;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: translate(-60%, -60%) rotate(45deg) scale(0);
  transition: transform 0.18s ease;
}

.npreg-checkbox input[type="checkbox"]:checked + .npreg-checkbox-marker {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.npreg-checkbox input[type="checkbox"]:checked + .npreg-checkbox-marker::after {
  transform: translate(-60%, -60%) rotate(45deg) scale(1);
}

.npreg-checkbox input[type="checkbox"]:focus-visible + .npreg-checkbox-marker {
  box-shadow: 0 0 0 3px rgba(63, 115, 174, 0.25);
}

.npreg-checkbox-text {
  font-size: 0.9375rem;
  color: var(--text-dark);
  line-height: 1.55;
}

/* Submit + states */
.npreg-submit-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.npreg-submit-btn {
  min-width: 240px;
  padding: 1.1rem 2.25rem;
  font-size: 1.0625rem;
}

.npreg-submit-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.npreg-submit-btn.is-loading .npreg-submit-label::after {
  content: '...';
}

.npreg-error {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: 0.625rem;
  color: #b03524;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.npreg-success {
  text-align: center;
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  .npreg-success { padding: 3rem 1.5rem; }
}

.npreg-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(121, 188, 46, 0.12);
  color: var(--brand-secondary);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.npreg-success-title {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.npreg-success-text {
  font-size: 1.0625rem;
  color: var(--text-gray);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}


/* ============================================
   N3. WHAT HAPPENS NEXT
   ============================================ */
.npreg-next-section {
  padding: 5rem 0;
  background: var(--white);
}

@media (min-width: 1024px) {
  .npreg-next-section { padding: 6rem 0; }
}

.npreg-next-header {
  text-align: center;
  margin-bottom: 3rem;
}

.npreg-next-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.15;
}

@media (min-width: 1024px) {
  .npreg-next-title { font-size: 2.5rem; }
}

.npreg-next-steps {
  list-style: none;
  padding: 0;
  margin: 0 auto 3rem;
  max-width: 880px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: npreg-step;
}

@media (min-width: 1024px) {
  .npreg-next-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.npreg-next-step {
  background: var(--brand-light);
  border: 1px solid rgba(63, 115, 174, 0.1);
  border-radius: 1.25rem;
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 1024px) {
  .npreg-next-step {
    flex-direction: column;
    align-items: stretch;
  }
}

.npreg-next-step:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: 0 16px 40px rgba(63, 115, 174, 0.1);
}

.npreg-next-step-number {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(63, 115, 174, 0.25);
}

.npreg-next-step-text {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 1024px) {
  .npreg-next-step-text { margin-top: 0.75rem; }
}

.npreg-questions-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .npreg-questions-cta {
    flex-direction: row;
    justify-content: center;
  }
}

.npreg-questions-cta-label {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
}
