/* House of Rose brand tokens (from established brand identity) */
:root {
  --hor-gold: #AB9040;
  --hor-black: #222222;
  --hor-cream: #F8F6F2;
  --hor-white: #FFFFFF;
  --hor-gold-soft: rgba(171, 144, 64, 0.14);
  --hor-line: rgba(34, 34, 34, 0.12);
  --radius: 2px;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--hor-cream);
  color: var(--hor-black);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 64px;
}

.hor-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hor-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--hor-gold);
  margin-bottom: 10px;
}

.hor-card {
  width: 100%;
  max-width: 640px;
  background: var(--hor-white);
  border: 1px solid var(--hor-line);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-top: 24px;
}

.hor-header {
  width: 100%;
  max-width: 640px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.hor-brand-title {
  font-size: 28px;
  margin: 0;
}

.hor-staff-field {
  font-size: 12px;
  color: rgba(34,34,34,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hor-staff-field select {
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--hor-line);
  background: var(--hor-white);
  color: var(--hor-black);
}

.hor-progress {
  width: 100%;
  max-width: 640px;
  height: 2px;
  background: var(--hor-line);
  margin-top: 20px;
}
.hor-progress-fill {
  height: 100%;
  background: var(--hor-gold);
  transition: width 200ms ease;
}

.hor-step-label {
  font-size: 12px;
  color: rgba(34,34,34,0.55);
  margin-top: 8px;
}

h2.hor-question {
  font-size: 24px;
  margin: 0 0 22px;
  font-weight: 500;
}

p.hor-lede {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(34,34,34,0.8);
  margin: 0 0 20px;
}

.hor-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.hor-option {
  border: 1px solid var(--hor-line);
  background: var(--hor-white);
  padding: 16px 16px;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color 120ms ease, background 120ms ease;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.hor-option:hover { border-color: var(--hor-gold); }

.hor-option.selected {
  border-color: var(--hor-gold);
  background: var(--hor-gold-soft);
}

.hor-fields { display: grid; gap: 14px; }

.hor-field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(34,34,34,0.6);
  margin-bottom: 6px;
}

.hor-field input {
  width: 100%;
  padding: 12px 12px;
  font-size: 16px;
  border: 1px solid var(--hor-line);
  border-radius: var(--radius);
  background: var(--hor-white);
  color: var(--hor-black);
  font-family: Arial, Helvetica, sans-serif;
}

.hor-field input:focus, .hor-option:focus-visible {
  outline: 2px solid var(--hor-gold);
  outline-offset: 1px;
}

.hor-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.hor-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 16px;
}
.hor-consent input { margin-top: 3px; }

.hor-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.hor-btn {
  border: 1px solid var(--hor-black);
  background: var(--hor-black);
  color: var(--hor-white);
  padding: 13px 26px;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: var(--radius);
}
.hor-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.hor-btn.secondary {
  background: transparent;
  color: var(--hor-black);
  border-color: var(--hor-line);
}

.hor-error {
  color: #8a3b2f;
  font-size: 13px;
  margin-top: 14px;
}

.hor-fine {
  font-size: 12px;
  color: rgba(34,34,34,0.5);
  line-height: 1.6;
  margin-top: 24px;
}

/* ---- Results ---- */

.hor-scoregrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 8px;
}

.hor-score {
  border: 1px solid var(--hor-line);
  padding: 16px;
  border-radius: var(--radius);
}
.hor-score .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(34,34,34,0.55);
}
.hor-score .value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  margin: 4px 0 2px;
}
.hor-score .band {
  font-size: 12px;
  color: var(--hor-gold);
}

.hor-overall {
  border: 1px solid var(--hor-gold);
  background: var(--hor-gold-soft);
  padding: 22px;
  border-radius: var(--radius);
  margin-top: 8px;
}
.hor-overall .value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 44px;
  margin: 4px 0;
}

.hor-rec {
  border-top: 1px solid var(--hor-line);
  padding: 16px 0;
}
.hor-rec:first-of-type { border-top: none; }
.hor-rec .rec-head { display: flex; justify-content: space-between; align-items: baseline; }
.hor-rec .rec-name { font-size: 17px; font-weight: bold; }
.hor-rec .rec-provider { font-size: 12px; color: rgba(34,34,34,0.55); }
.hor-rec ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: rgba(34,34,34,0.8); }
.hor-stars { color: var(--hor-gold); font-size: 13px; }

.hor-plan { display: grid; gap: 10px; margin-top: 6px; }
.hor-plan-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; font-size: 14px; }
.hor-plan-row .month { color: rgba(34,34,34,0.55); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; padding-top: 3px; }

.hor-note {
  background: var(--hor-cream);
  border: 1px solid var(--hor-line);
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 18px;
  border-radius: var(--radius);
}

@media print {
  .hor-header, .hor-nav, .no-print { display: none !important; }
  body { background: white; }
  .hor-card { border: none; padding: 0; }
}

@media (max-width: 480px) {
  .hor-row { grid-template-columns: 1fr; }
  .hor-scoregrid { grid-template-columns: 1fr; }
  .hor-card { padding: 28px 20px; }
}
