/* Parish Registration Onboarding — Frontend Styles */
/* Scoped to .pro-wrap to avoid conflicts with any theme */

.pro-wrap *,
.pro-wrap *::before,
.pro-wrap *::after {
  box-sizing: border-box;
}

.pro-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #2d2d2d;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 60px;
  font-size: 16px;
  line-height: 1.6;
}

/* ---- Progress bar — 4 grouped phases ---- */
.pro-wrap .pro-progress {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  margin: 28px 0 32px !important;
  position: relative !important;
}

.pro-wrap .pro-progress.pro-progress-hidden {
  display: none !important;
}

.pro-wrap .pro-progress::before {
  content: '' !important;
  position: absolute !important;
  top: 19px !important;
  left: 10% !important;
  right: 10% !important;
  height: 3px !important;
  background: #d0dce8 !important;
  z-index: 0 !important;
  border-radius: 2px !important;
}

.pro-wrap .pro-progress-phase {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}

.pro-wrap .pro-phase-dot {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #fff !important;
  background-color: #fff !important;
  color: #b0bcc9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: 2.5px solid #d0dce8 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07) !important;
  line-height: 1 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.pro-wrap .pro-progress-phase.active .pro-phase-dot {
  background: #003E79 !important;
  background-color: #003E79 !important;
  color: #fff !important;
  border-color: #003E79 !important;
  box-shadow: 0 0 0 5px rgba(0,62,121,0.15), 0 2px 8px rgba(0,62,121,0.3) !important;
}

.pro-wrap .pro-progress-phase.complete .pro-phase-dot {
  background: #5a7a52 !important;
  background-color: #5a7a52 !important;
  color: #fff !important;
  border-color: #5a7a52 !important;
}

.pro-wrap .pro-phase-label {
  font-size: 11px !important;
  color: #aab4c0 !important;
  margin-top: 7px !important;
  text-align: center !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  max-width: 72px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  transition: color 0.3s !important;
  display: block !important;
}

.pro-wrap .pro-progress-phase.active .pro-phase-label {
  color: #003E79 !important;
}

.pro-wrap .pro-progress-phase.complete .pro-phase-label {
  color: #5a7a52 !important;
}

/* ---- Cards / sections ---- */
.pro-card {
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pro-step-header {
  margin-bottom: 20px;
}

.pro-step-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1a2a3a;
  margin: 0 0 6px;
}

.pro-step-header p {
  color: #666;
  margin: 0;
  font-size: 15px;
}

/* ---- Form fields ---- */
.pro-field {
  margin-bottom: 20px;
}

.pro-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}

.pro-field input[type="text"],
.pro-field input[type="email"],
.pro-field input[type="tel"],
.pro-field input[type="date"],
.pro-field select,
.pro-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #c8d5e8;
  border-radius: 8px;
  font-size: 15px;
  color: #222;
  background: #f8fafd;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.pro-field input:focus,
.pro-field select:focus,
.pro-field textarea:focus {
  border-color: #003E79;
  box-shadow: 0 0 0 3px rgba(0,62,121,0.12);
  outline: none;
  background: #fff;
}

.pro-field input.pro-error,
.pro-field select.pro-error,
.pro-field textarea.pro-error {
  border-color: #c0392b;
}

.pro-field textarea {
  resize: vertical;
  min-height: 80px;
}

.pro-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ---- Field row layouts ---- */
.pro-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pro-field-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.pro-field-sm {
  /* intentionally narrow — used in state/zip */
}

/* ---- Inline field ---- */
.pro-field-inline label {
  margin-bottom: 8px;
}

.pro-field-inline-sm {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ---- Radio groups ---- */
.pro-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 4px;
}

.pro-radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 0;
  color: #333;
}

.pro-radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #003E79;
  cursor: pointer;
  flex-shrink: 0;
}

.pro-radio-vertical {
  flex-direction: column;
  gap: 10px;
}

/* ---- Checkboxes ---- */
.pro-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.pro-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 10px 12px;
  border: 1.5px solid #dde5ef;
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
}

.pro-checkbox-item:hover {
  border-color: #003E79;
  background: #f0f4fa;
}

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

.pro-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.5;
}

.pro-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #003E79;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Helper text ---- */
.pro-help-text {
  font-size: 13px;
  color: #888;
  margin: -10px 0 12px;
}

.pro-req {
  color: #c0392b;
}

.pro-optional {
  font-weight: 400;
  color: #999;
  font-size: 12px;
}

/* ---- Dividers ---- */
.pro-divider {
  border: none;
  border-top: 1px solid #e0e8f0;
  margin: 24px 0;
}

.pro-subsection-title {
  font-size: 15px;
  font-weight: 700;
  color: #003E79;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Navigation bar ---- */
.pro-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

/* ---- Buttons ---- */
.pro-wrap .pro-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 28px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border: none !important;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s !important;
  text-decoration: none !important;
  line-height: 1 !important;
  box-shadow: none;
}

.pro-wrap .pro-btn:focus {
  outline: 2px solid #003E79 !important;
  outline-offset: 3px !important;
}

.pro-wrap .pro-btn-primary {
  background: #003E79 !important;
  background-color: #003E79 !important;
  color: #fff !important;
}

.pro-wrap .pro-btn-primary:hover {
  background: #002d5a !important;
  background-color: #002d5a !important;
  box-shadow: 0 4px 12px rgba(0,62,121,0.3) !important;
}

.pro-wrap .pro-btn-primary:active {
  transform: translateY(1px) !important;
}

.pro-wrap .pro-btn-secondary {
  background: #eef2f8 !important;
  background-color: #eef2f8 !important;
  color: #555 !important;
}

.pro-wrap .pro-btn-secondary:hover {
  background: #e2eaf5 !important;
  background-color: #e2eaf5 !important;
}

.pro-wrap .pro-btn-outline {
  background: transparent !important;
  color: #003E79 !important;
  border: 2px solid #003E79 !important;
}

.pro-wrap .pro-btn-outline:hover {
  background: #003E79 !important;
  color: #fff !important;
}

.pro-wrap .pro-btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

/* ---- Welcome card ---- */
.pro-wrap .pro-welcome-card {
  text-align: center;
  padding: 48px 40px 44px;
  background: #fff;
  border: 1px solid #dde5ef;
  border-top: 5px solid #003E79;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,62,121,0.08);
}

.pro-wrap .pro-welcome-title {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #003E79 !important;
  margin: 0 0 18px !important;
  line-height: 1.25 !important;
}

.pro-wrap .pro-welcome-intro {
  font-size: 18px;
  color: #3a4a5a;
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.75;
}

.pro-wrap .pro-welcome-note {
  font-size: 14px;
  color: #4a6070;
  margin: 0 auto 32px;
  max-width: 460px;
  line-height: 1.6;
  padding: 14px 18px;
  background: #f0f4fa;
  border-radius: 8px;
  border-left: 3px solid #003E79;
  text-align: left;
}

.pro-wrap .pro-start-btn {
  font-size: 17px !important;
  padding: 15px 48px !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 20px rgba(0,62,121,0.28) !important;
  letter-spacing: 0.01em !important;
}

.pro-wrap .pro-privacy-note {
  margin-top: 20px;
  font-size: 12px;
  color: #aab4c0;
}

/* ---- Conditional blocks ---- */
.pro-conditional-block {
  background: #f0f4fa;
  border-left: 4px solid #003E79;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 20px;
}

/* ---- Children ---- */
.pro-child-block {
  margin-bottom: 20px;
  border: 1.5px solid #dce4ef;
}

.pro-child-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pro-child-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #003E79;
}

.pro-remove-child-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}

.pro-remove-child-btn:hover {
  border-color: #c0392b;
  color: #c0392b;
  background: #fdf3f3;
}

#pro-add-child-btn {
  margin-top: 8px;
}

/* ---- Review screen ---- */
.pro-review-wrap {
  margin-bottom: 20px;
}

.pro-review-section {
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

.pro-review-section-header {
  background: #f0f4fa;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dde5ef;
}

.pro-review-section-header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #003E79;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pro-review-edit-link {
  font-size: 13px;
  color: #003E79;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
}

.pro-review-body {
  padding: 16px 20px;
}

.pro-review-row {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid #edf2f8;
  font-size: 14px;
}

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

.pro-review-label {
  font-weight: 600;
  color: #555;
  min-width: 180px;
  flex-shrink: 0;
}

.pro-review-value {
  color: #222;
}

/* ---- Confirm checkbox ---- */
.pro-confirm-label {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  align-items: flex-start;
}

/* ---- Error message ---- */
.pro-error-msg {
  background: #fdf3f3;
  border: 1px solid #e8b4b4;
  border-radius: 8px;
  padding: 14px 18px;
  color: #c0392b;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---- Field error ---- */
.pro-field-error {
  display: block;
  color: #c0392b;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

/* ---- Giving note ---- */
.pro-giving-note {
  font-size: 14px;
  color: #555;
  margin-top: 16px;
  padding: 12px 16px;
  background: #f0f4fa;
  border-radius: 8px;
  border-left: 3px solid #003E79;
}

/* ---- Success card ---- */
.pro-success-card {
  text-align: center;
  padding: 60px 32px;
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,62,121,0.08);
}

.pro-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #5a7a52;
  color: #fff;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 16px rgba(90,122,82,0.3);
}

.pro-success-card h2 {
  font-size: 28px;
  font-weight: 800;
  color: #003E79;
  margin: 0 0 16px;
}

.pro-success-card p {
  font-size: 17px;
  color: #555;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Spinner ---- */
.pro-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  border-top-color: #fff;
  animation: pro-spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes pro-spin {
  to { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (max-width: 620px) {
  .pro-progress {
    margin-bottom: 24px;
  }
  .pro-phase-label {
    font-size: 9px;
    max-width: 56px;
  }
  .pro-phase-dot {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .pro-card {
    padding: 20px 18px;
  }
  .pro-field-row {
    grid-template-columns: 1fr;
  }
  .pro-field-row-3 {
    grid-template-columns: 1fr;
  }
  .pro-checkbox-grid {
    grid-template-columns: 1fr;
  }
  .pro-welcome-header-bar {
    padding: 24px 20px 20px;
  }
  .pro-welcome-logo {
    max-width: 160px;
  }
  .pro-welcome-body {
    padding: 24px 20px 28px;
  }
  .pro-welcome-title {
    font-size: 22px;
  }
  .pro-welcome-intro {
    font-size: 16px;
  }
  .pro-review-label {
    min-width: 130px;
  }
  .pro-step-header h2 {
    font-size: 22px;
  }
}

@media (max-width: 400px) {
  .pro-nav-bar {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .pro-btn {
    width: 100%;
    justify-content: center;
  }
}
