/* ==========================================================================
   ARISE Skin & Hair Pattern Finder (v2) - Luxury Clinical Quiz Styles
   ========================================================================== */

.pattern-finder-section {
  position: relative;
  margin: 50px auto;
  padding: 0 15px;
}

.pf-card {
  background: linear-gradient(145deg, #132E27 0%, #1A3E34 60%, #102620 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 45px rgba(19, 46, 39, 0.25);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(194, 155, 72, 0.25);
}

.pf-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(194, 155, 72, 0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.pf-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(194, 155, 72, 0.18);
  color: #E6C875;
  border: 1px solid rgba(194, 155, 72, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.pf-title {
  color: #FFFFFF;
  font-family: var(--font-heading, "Cormorant Garamond", serif);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 12px;
}

.pf-subtitle {
  color: #D3E0D8;
  font-size: 1rem;
  line-height: 1.6;
}

/* Progress & Navigation Bar */
.pf-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}

.pf-back-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pf-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #E6C875;
  color: #E6C875;
}

.pf-progress-wrapper {
  flex: 1;
  max-width: 380px;
}

.pf-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #C29B48;
  margin-bottom: 6px;
  font-weight: 600;
}

.pf-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

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

/* Quiz Views / Screens */
.pf-view {
  display: none;
  animation: pfFadeIn 0.3s ease forwards;
}

.pf-view.active {
  display: block;
}

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

/* Options Grids */
.pf-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pf-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

/* Interactive Option Cards */
.pf-option-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  color: #FFFFFF;
}

.pf-option-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(194, 155, 72, 0.6);
  transform: translateY(-2px);
}

.pf-option-card.selected {
  background: rgba(194, 155, 72, 0.18);
  border-color: #E6C875;
  box-shadow: 0 0 0 1px #E6C875, 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pf-option-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #E6C875;
}

.pf-option-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.pf-option-desc {
  font-size: 0.85rem;
  color: #D3E0D8;
  line-height: 1.45;
}

/* Question Layout */
.pf-question-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(8px);
}

.pf-q-num {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #E6C875;
  font-weight: 700;
  margin-bottom: 8px;
}

.pf-q-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.pf-q-hint {
  font-size: 0.88rem;
  color: #B4C6BD;
  margin-bottom: 20px;
}

.pf-choices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-choice-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  user-select: none;
}

.pf-choice-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(194, 155, 72, 0.5);
}

.pf-choice-item.selected {
  background: rgba(194, 155, 72, 0.2);
  border-color: #E6C875;
  color: #FFFFFF;
}

.pf-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pf-choice-item.is-multi .pf-indicator {
  border-radius: 4px;
}

.pf-choice-item.selected .pf-indicator {
  border-color: #E6C875;
  background: #E6C875;
}

.pf-choice-item.selected .pf-indicator::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #132E27;
  border-radius: 50%;
}

.pf-choice-item.is-multi.selected .pf-indicator::after {
  content: "✓";
  color: #132E27;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  border-radius: 0;
}

.pf-choice-label {
  font-size: 0.95rem;
  color: #FFFFFF;
  line-height: 1.4;
  flex: 1;
}

.pf-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 14px;
  flex-wrap: wrap;
}

/* Result Screen Styles */
.pf-result-wrapper {
  background: #FFFFFF;
  color: #1A2621;
  border-radius: 16px;
  padding: 34px 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.pf-alert-banner {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 0.92rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pf-alert-banner.red {
  background: #FFF1F0;
  border: 1.5px solid #FFA39E;
  color: #CF1322;
}

.pf-alert-banner.amber {
  background: #FFFBE6;
  border: 1.5px solid #FFE58F;
  color: #D46B08;
}

.pf-alert-banner.info {
  background: #F0F7F5;
  border: 1.5px solid #B4D7CC;
  color: #164E3E;
}

.pf-result-header {
  border-bottom: 1px solid #EBEFEA;
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.pf-match-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.pf-match-badge.strong {
  background: #E6F7EC;
  color: #137333;
}

.pf-match-badge.likely {
  background: #FEF7E0;
  color: #B06000;
}

.pf-match-badge.mixed {
  background: #F1F3F4;
  color: #5F6368;
}

.pf-result-name {
  font-family: var(--font-heading, "Cormorant Garamond", serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #132E27;
  line-height: 1.2;
  margin-bottom: 8px;
}

.pf-secondary-pattern {
  font-size: 0.92rem;
  color: #63756C;
  font-style: italic;
  margin-top: 4px;
}

/* Because You Told Us */
.pf-reasons-box {
  background: #F7FAF8;
  border-left: 3px solid #1A3E34;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.pf-reasons-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1A3E34;
  margin-bottom: 8px;
}

.pf-reasons-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.92rem;
  color: #33443C;
  line-height: 1.55;
}

/* 3 Action Pillars */
.pf-action-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.pf-pillar-card {
  border-radius: 12px;
  padding: 18px;
  background: #FAFCFA;
  border: 1px solid #E2EAE5;
}

.pf-pillar-card.do-now {
  border-top: 4px solid #137333;
}

.pf-pillar-card.hold-off {
  border-top: 4px solid #D93025;
}

.pf-pillar-card.ask-doc {
  border-top: 4px solid #C29B48;
}

.pf-pillar-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pf-pillar-card.do-now .pf-pillar-title { color: #137333; }
.pf-pillar-card.hold-off .pf-pillar-title { color: #D93025; }
.pf-pillar-card.ask-doc .pf-pillar-title { color: #8F6F22; }

.pf-pillar-desc {
  font-size: 0.88rem;
  color: #495B52;
  line-height: 1.5;
  margin: 0;
}

/* Triage Next Step Card */
.pf-tier-box {
  background: linear-gradient(135deg, #132E27 0%, #1A3E34 100%);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.pf-tier-tag {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #E6C875;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.pf-tier-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #FFFFFF;
}

.pf-tier-msg {
  font-size: 0.9rem;
  color: #D3E0D8;
  max-width: 520px;
  margin: 0;
}

/* Save & Book Conversion Bar */
.pf-conversion-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 22px;
}

.pf-btn-wa {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pf-btn-wa:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  color: #FFFFFF;
}

.pf-btn-book {
  background: #C29B48;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pf-btn-book:hover {
  background: #AB8437;
  transform: translateY(-2px);
}

.pf-btn-retake {
  background: transparent;
  color: #63756C;
  border: 1px solid #D1DCD6;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s ease;
}

.pf-btn-retake:hover {
  background: #F4F7F5;
  color: #132E27;
}

/* Email Save Form */
.pf-email-save-row {
  background: #F7FAF8;
  border: 1px solid #E1EBE6;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pf-email-input {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #CCD8D2;
  font-size: 0.9rem;
}

.pf-email-submit {
  background: #1A3E34;
  color: #FFFFFF;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.pf-email-submit:hover {
  background: #132E27;
}

.pf-disclaimer {
  font-size: 0.78rem;
  color: #7A8E84;
  line-height: 1.5;
  border-top: 1px solid #EBEFEA;
  padding-top: 16px;
  margin: 0;
}

@media (max-width: 768px) {
  .pf-card { padding: 24px 18px; }
  .pf-grid-2 { grid-template-columns: 1fr; }
  .pf-tier-box { flex-direction: column; align-items: flex-start; }
  .pf-btn-retake { margin-left: 0; width: 100%; text-align: center; }
  .pf-conversion-bar { flex-direction: column; align-items: stretch; }
  .pf-btn-wa, .pf-btn-book { justify-content: center; }
}
