/**
 * Free Heart Scan - Stylesheet for WordPress
 */

.fhs-wrapper {
  max-width: 820px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-sizing: border-box;
}

.fhs-wrapper * {
  box-sizing: border-box;
}

.fhs-header {
  background: #262c60;
  color: #ffffff;
  padding: 24px 28px;
  position: relative;
  text-align: left;
}

.fhs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 16, 46, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.fhs-title {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.fhs-subtitle {
  margin: 0;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
}

.fhs-progress-container {
  background: #f1f5f9;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
}

.fhs-step-indicator {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fhs-progress-bar-bg {
  flex: 1;
  max-width: 260px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin: 0 15px;
}

.fhs-progress-bar-fill {
  height: 100%;
  background: #c8102e;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.fhs-body {
  padding: 28px;
}

.fhs-step {
  display: none;
}

.fhs-step.active {
  display: block;
  animation: fhsFadeIn 0.3s ease-in-out;
}

@keyframes fhsFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fhs-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .fhs-grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .fhs-body {
    padding: 20px 16px;
  }
  .fhs-header {
    padding: 20px 16px;
  }
}

.fhs-form-group {
  margin-bottom: 18px;
}

.fhs-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.fhs-required {
  color: #c8102e;
}

.fhs-input, .fhs-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.fhs-input:focus, .fhs-select:focus {
  border-color: #262c60;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(38, 44, 96, 0.12);
}

.fhs-input.error, .fhs-select.error {
  border-color: #c8102e;
  background: #fff5f5;
}

.fhs-field-error {
  font-size: 12px;
  color: #c8102e;
  margin-top: 4px;
  display: none;
}

.fhs-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.fhs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.fhs-btn-primary {
  background: #c8102e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

.fhs-btn-primary:hover {
  background: #a50d25;
  transform: translateY(-1px);
}

.fhs-btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.fhs-btn-secondary:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.fhs-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Result & Match/No-Match States */
.fhs-success-box {
  text-align: left;
  padding: 10px 5px;
}

.fhs-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.fhs-badge-match {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.fhs-badge-no-match {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.fhs-title-match {
  font-size: 22px;
  font-weight: 800;
  color: #262c60;
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.fhs-title-nomatch {
  font-size: 22px;
  font-weight: 800;
  color: #262c60;
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.fhs-text-thankyou {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.fhs-text-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.fhs-card-location {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-left: 4px solid #c8102e;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
}

.fhs-location-label {
  font-size: 11px;
  font-weight: 800;
  color: #c8102e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.fhs-location-city {
  font-size: 18px;
  font-weight: 800;
  color: #262c60;
  margin-bottom: 4px;
}

.fhs-location-address {
  font-size: 14px;
  color: #334155;
  margin-bottom: 6px;
}

.fhs-location-phone a {
  font-size: 15px;
  font-weight: 700;
  color: #c8102e;
  text-decoration: none;
}

.fhs-location-phone a:hover {
  text-decoration: underline;
}

.fhs-note {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
  margin: 14px 0 6px 0;
}

.fhs-note-sub {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 6px 0;
}

.fhs-options-section {
  margin: 24px 0 16px 0;
}

.fhs-options-header {
  font-size: 18px;
  font-weight: 800;
  color: #262c60;
  margin: 0 0 4px 0;
}

.fhs-region-title {
  font-size: 13px;
  font-weight: 700;
  color: #c8102e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.fhs-facilities-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fhs-facility-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.fhs-facility-name {
  font-size: 16px;
  font-weight: 800;
  color: #262c60;
  margin-bottom: 6px;
}

.fhs-facility-address {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 6px;
}

.fhs-facility-phone {
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 4px;
}

.fhs-facility-phone a {
  color: #262c60;
  font-weight: 700;
  text-decoration: none;
}

.fhs-facility-web {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.fhs-facility-web a {
  color: #0284c7;
  text-decoration: none;
  word-break: break-all;
}

.fhs-facility-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.fhs-btn-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #262c60;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.fhs-btn-visit:hover {
  background: #1b1f45;
}

.fhs-btn-coupon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #c8102e;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.fhs-btn-coupon:hover {
  background: #a30b23;
}

.fhs-pricing-note {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
  margin: 16px 0 20px 0;
  line-height: 1.4;
}

.fhs-action-container {
  margin-top: 24px;
  text-align: center;
}

.fhs-btn-action {
  display: inline-block;
  padding: 12px 28px;
  background: #c8102e;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.fhs-btn-action:hover {
  background: #262c60;
  transform: translateY(-1px);
}

.fhs-spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: fhsSpin 0.7s linear infinite;
  display: inline-block;
}

@keyframes fhsSpin {
  to { transform: rotate(360deg); }
}
