/* ============================================================
   Full-screen modal wrapper
============================================================ */
.qnr-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #090909;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
body.qnr-modal-open { overflow: hidden !important; }
html.qnr-modal-open { overflow: hidden !important; }

.qnr-nav-strip {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9,9,9,.96);
  border-bottom: 1px solid rgba(184,144,42,0.26);
  padding: 0 clamp(16px, 5vw, 48px);
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Montserrat', sans-serif;
  color: #E8E0D0;
  flex-shrink: 0;
}
.qnr-nav-strip .qnr-nav-brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.qnr-nav-strip img { height: 100px; width: auto; display: block; max-width: 200px; }
.qnr-nav-strip .qnr-nav-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: .05em;
  color: #E8E0D0;
}
.qnr-nav-strip .qnr-back {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #9A9080;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.qnr-nav-strip .qnr-back:hover { color: #B8902A; }
.qnr-nav-strip .qnr-back::before { content: '\2190'; font-size: 12px; line-height: 1; }

.qnr-modal .qnr-wrap-fullscreen {
  flex: 1 0 auto;
  min-height: 0;
}

@media (max-width: 480px) {
  .qnr-nav-strip { padding: 0 16px; height: 56px; min-height: 56px; }
  .qnr-nav-strip img { height: 28px; }
  .qnr-nav-strip .qnr-back { font-size: 9px; letter-spacing: .16em; }
}

/* ============================================================
   Questionnaire — scoped to .qnr-wrap
============================================================ */
.qnr-wrap {
  --qnr-gold:        #B8902A;
  --qnr-gold-lt:     #D4AA4A;
  --qnr-gold-dim:    rgba(184,144,42,0.16);
  --qnr-gold-border: rgba(184,144,42,0.26);
  --qnr-black:       #090909;
  --qnr-dark:        #101010;
  --qnr-surface:     #151515;
  --qnr-surface2:    #1B1B1B;
  --qnr-text:        #E8E0D0;
  --qnr-muted:       #7A7060;
  --qnr-muted2:      #9A9080;
  --qnr-error:       #C0544A;

  position: relative;
  background: var(--qnr-black);
  color: var(--qnr-text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: .03em;
  padding: clamp(40px,7vh,80px) clamp(16px,5vw,32px) clamp(40px,5vh,60px);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.qnr-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(184,144,42,.07) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 96% 98%, rgba(184,144,42,.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.qnr-wrap > * { position: relative; z-index: 1; }

.qnr-wrap a { color: inherit; text-decoration: none; }

/* ============================================================
   Header
============================================================ */
.qnr-wrap .qnr-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto clamp(32px,5vh,52px);
  animation: qnrFadeDown .8s ease both;
}
.qnr-wrap .q-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--qnr-gold);
  margin: 0 0 14px;
}
.qnr-wrap .qnr-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px,5vw,50px);
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--qnr-text);
}
.qnr-wrap .qnr-header h1 em {
  font-style: italic;
  color: var(--qnr-gold-lt);
}
.qnr-wrap .qnr-desc {
  font-size: 12px;
  color: var(--qnr-muted);
  letter-spacing: .07em;
  line-height: 1.75;
  margin: 0;
}
.qnr-wrap .divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 180px;
  margin: 18px auto 0;
}
.qnr-wrap .div-line { flex: 1; height: 1px; background: var(--qnr-gold-border); }
.qnr-wrap .div-gem { width: 6px; height: 6px; background: var(--qnr-gold); transform: rotate(45deg); flex-shrink: 0; }

/* ============================================================
   Card
============================================================ */
.qnr-wrap .q-card {
  width: 100%;
  max-width: 680px;
  background: var(--qnr-surface);
  border: 1px solid var(--qnr-gold-border);
  padding: clamp(28px,5vw,52px) clamp(20px,5vw,52px);
  position: relative;
  animation: qnrFadeUp .8s .15s ease both;
}
.qnr-wrap .q-card::before, .qnr-wrap .q-card::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--qnr-gold);
  border-style: solid;
}
.qnr-wrap .q-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.qnr-wrap .q-card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ============================================================
   Progress
============================================================ */
.qnr-wrap .progress-wrap { margin-bottom: clamp(24px,4vh,36px); }
.qnr-wrap .progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--qnr-muted);
  margin-bottom: 10px;
}
.qnr-wrap .progress-meta .step-indicator { color: var(--qnr-gold); }
.qnr-wrap .progress-track {
  height: 1px;
  background: rgba(255,255,255,.06);
  position: relative;
}
.qnr-wrap .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--qnr-gold), var(--qnr-gold-lt));
  transition: width .5s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.qnr-wrap .progress-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 5px; height: 5px;
  background: var(--qnr-gold-lt);
}

/* ============================================================
   Steps
============================================================ */
.qnr-wrap .qnr-form .step { display: none; }
.qnr-wrap .qnr-form .step.active { display: block; animation: qnrStepIn .35s ease both; }
.qnr-wrap .step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px,3vw,26px);
  font-weight: 400;
  margin: 0 0 4px;
  color: var(--qnr-text);
}
.qnr-wrap .step-subtitle {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--qnr-muted);
  margin: 0 0 clamp(22px,4vh,32px);
}

/* ============================================================
   Fields
============================================================ */
.qnr-wrap .field { margin-bottom: clamp(18px,3vh,26px); }
.qnr-wrap .field-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--qnr-gold);
  margin-bottom: 10px;
}
.qnr-wrap .field-error {
  font-size: 10px;
  color: var(--qnr-error);
  letter-spacing: .08em;
  margin-top: 6px;
  display: none;
}
.qnr-wrap .field.has-error .field-error { display: block; }
.qnr-wrap .field.has-error .opts-wrap .opt { border-color: rgba(192,84,74,.3); }
.qnr-wrap .field.has-error .text-inp,
.qnr-wrap .field.has-error .styled-select { border-bottom-color: var(--qnr-error); }

/* Options */
.qnr-wrap .opts-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.qnr-wrap .opt {
  cursor: pointer;
  padding: clamp(8px,1.5vw,11px) clamp(13px,2vw,18px);
  border: 1px solid rgba(255,255,255,.1);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
    color: #ffffff;
  background: transparent;
  transition: all .2s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.qnr-wrap .opt:hover { border-color: var(--qnr-gold); color: var(--qnr-text); }
.qnr-wrap .opt.selected { border-color: var(--qnr-gold); background: var(--qnr-gold-dim); color: var(--qnr-gold-lt); }
.qnr-wrap .opt:active { transform: scale(.97); }

/* Text inputs & textarea */
.qnr-wrap .text-inp {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 10px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--qnr-text);
  letter-spacing: .05em;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.qnr-wrap .text-inp:focus { border-bottom-color: var(--qnr-gold); }
.qnr-wrap .text-inp::placeholder { color: rgba(255, 255, 255, 1); }
.qnr-wrap .textarea-inp {
  resize: vertical;
  min-height: 80px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

/* Select */
.qnr-wrap .select-wrap { position: relative; }
.qnr-wrap .styled-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 10px 28px 10px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--qnr-text);
  letter-spacing: .05em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s;
  border-radius: 0;
}
.qnr-wrap .styled-select:focus { border-bottom-color: var(--qnr-gold); }
.qnr-wrap .styled-select option { background: var(--qnr-dark); color: var(--qnr-text); }
.qnr-wrap .select-arrow {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--qnr-gold);
  font-size: 10px;
  pointer-events: none;
  line-height: 1;
}

/* ============================================================
   Navigation
============================================================ */
.qnr-wrap .nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(28px,5vh,44px);
  padding-top: clamp(18px,3vh,26px);
  border-top: 1px solid rgba(255,255,255,.05);
  flex-wrap: wrap;
  gap: 12px;
}
.qnr-wrap .confidential-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: var(--qnr-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  flex: 1;
  min-width: 140px;
}
.qnr-wrap .lock-icon {
  width: 16px; height: 16px;
  border: 1px solid var(--qnr-muted);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px;
  flex-shrink: 0;
}
.qnr-wrap .btn-nav {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: clamp(11px,2vw,14px) clamp(22px,4vw,32px);
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  -webkit-tap-highlight-color: transparent;
  border-radius: 0;
}
.qnr-wrap .btn-back {
  background: transparent;
  color: var(--qnr-muted2);
  border: 1px solid rgba(255,255,255,.09);
}
.qnr-wrap .btn-back:hover { color: var(--qnr-text); border-color: rgba(255,255,255,.22); }
.qnr-wrap .btn-next {
  background: var(--qnr-gold);
  color: var(--qnr-black);
}
.qnr-wrap .btn-next:hover { background: var(--qnr-gold-lt); transform: translateY(-1px); }
.qnr-wrap .btn-next:active, .qnr-wrap .btn-back:active { transform: scale(.97); }
.qnr-wrap .btn-submit {
  background: transparent;
  color: var(--qnr-gold);
  border: 1px solid var(--qnr-gold);
}
.qnr-wrap .btn-submit:hover { background: var(--qnr-gold-dim); transform: translateY(-1px); }
.qnr-wrap .btn-submit:disabled { opacity: .6; cursor: wait; transform: none; }

/* ============================================================
   Success panel
============================================================ */
.qnr-wrap .success-panel {
  display: none;
  text-align: center;
  padding: clamp(16px,4vh,32px) 0;
  animation: qnrFadeUp .6s ease both;
}
.qnr-wrap .success-panel.active { display: block; }
.qnr-wrap .success-gem {
  width: 56px; height: 56px;
  border: 1px solid var(--qnr-gold);
  margin: 0 auto clamp(20px,4vh,32px);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(45deg);
}
.qnr-wrap .success-gem span {
  transform: rotate(-45deg);
  display: block;
  font-size: 20px;
  color: var(--qnr-gold);
}
.qnr-wrap .success-panel h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px,4vw,34px);
  font-weight: 300;
  margin: 0 0 12px;
  color: var(--qnr-text);
}
.qnr-wrap .success-panel p {
  font-size: 12px;
  color: var(--qnr-muted2);
  line-height: 1.85;
  letter-spacing: .06em;
  max-width: 380px;
  margin: 0 auto 28px;
}
.qnr-wrap .success-panel a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--qnr-gold);
  border: 1px solid var(--qnr-gold-border);
  padding: 13px 28px;
  display: inline-block;
  transition: all .2s;
}
.qnr-wrap .success-panel a:hover {
  background: var(--qnr-gold-dim);
  border-color: var(--qnr-gold);
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 480px) {
  .qnr-wrap .nav-row { flex-direction: row; }
  .qnr-wrap .confidential-note { min-width: 0; font-size: 8px; }
}

/* ============================================================
   Animations
============================================================ */
@keyframes qnrFadeDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes qnrFadeUp   { from { opacity: 0; transform: translateY(18px); }  to { opacity: 1; transform: translateY(0); } }
@keyframes qnrStepIn   { from { opacity: 0; transform: translateX(14px); }  to { opacity: 1; transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
  .qnr-wrap *, .qnr-wrap *::before, .qnr-wrap *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
