/* Eternina Studio — custom ring quote (2.3.0). Mobile first, scoped under .jstudio-quote.
   Built on the Eternina theme's "Atelier" system: Cormorant display, Jost body, ink and champagne, square controls,
   hairline rules. Each token reads the theme preset first, so the form also looks right without the theme. */
.jstudio-quote {
  --jsq-fg: var(--wp--preset--color--contrast, #111A18);
  --jsq-muted: var(--wp--preset--color--muted, #585F5C);
  --jsq-line: var(--wp--preset--color--line, #E6DFD4);
  --jsq-line2: #CFC5B5;
  --jsq-surface: var(--wp--preset--color--base, #FFFFFF);
  --jsq-soft: var(--wp--preset--color--surface, #FBF9F6);
  --jsq-stage: var(--wp--preset--color--stage, #F3EEE6);
  --jsq-accent: var(--wp--preset--color--primary, #13221F);
  --jsq-accent-fg: #FFFFFF;
  --jsq-champ: var(--wp--preset--color--champagne, #C6A777);
  --jsq-gold: var(--wp--preset--color--accent, #86663C);
  --jsq-danger: var(--wp--preset--color--danger, #A33A2A);
  --jsq-font: var(--wp--preset--font-family--body, "Jost", "Helvetica Neue", Arial, sans-serif);
  --jsq-display: var(--wp--preset--font-family--display, "Cormorant Garamond", Georgia, serif);
  --jsq-ease: cubic-bezier(.22, .68, .12, 1);
  color: var(--jsq-fg); font-family: var(--jsq-font); font-size: 16px; line-height: 1.5;
  box-sizing: border-box; margin-block: 8px 72px;
}
.jstudio-quote *, .jstudio-quote *::before, .jstudio-quote *::after { box-sizing: border-box; }
.jstudio-quote [hidden] { display: none !important; }
.jstudio-quote .jsq-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- layout: intro, form, side notes (phone); intro + notes beside the form (desktop) ---------- */
.jstudio-quote .jsq-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "main" "aside"; gap: 28px; }
.jstudio-quote .jsq-intro { grid-area: intro; min-width: 0; }
.jstudio-quote .jsq-main { grid-area: main; min-width: 0; }
.jstudio-quote .jsq-aside { grid-area: aside; min-width: 0; }

/* ---------- intro ---------- */
.jstudio-quote .jsq-eyebrow, .jstudio-quote .jsq-label, .jstudio-quote .jsq-aside h3 {
  font: 500 11.5px/1.3 var(--jsq-font); letter-spacing: .2em; text-transform: uppercase;
}
.jstudio-quote .jsq-eyebrow { margin: 0 0 12px; color: var(--jsq-gold); }
.jstudio-quote .jsq-title { margin: 0; font: 400 clamp(2.1rem, 1.5rem + 2.2vw, 3rem)/1.05 var(--jsq-display); letter-spacing: -.01em; color: var(--jsq-fg);
  text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.jstudio-quote .jsq-lede { margin: 14px 0 0; max-width: 30em; color: var(--jsq-muted); font-size: 16px; }
.jstudio-quote .jsq-trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.jstudio-quote .jsq-trust li { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--jsq-fg); }
.jstudio-quote .jsq-trust li::before { content: ""; width: 12px; height: 7px; flex: none; margin-top: -3px; border: solid var(--jsq-gold); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }

.jstudio-quote .jsq-alert { margin: 0 0 16px; border-radius: 0; }
.jstudio-quote .jsq-alert p { margin: 0 0 4px; }

/* ---------- the form card ---------- */
.jstudio-quote .jsq-form { position: relative; margin: 0; padding: 22px 18px 0; background: var(--jsq-surface); border: 1px solid var(--jsq-line);
  box-shadow: 0 1px 2px rgba(17,26,24,.04), 0 24px 48px -36px rgba(17,26,24,.35); }

/* progress: three hairline segments */
.jstudio-quote .jsq-progress { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jstudio-quote .jsq-progress li { display: flex; align-items: center; gap: 8px; margin: 0; padding-top: 12px; border-top: 2px solid var(--jsq-line);
  font-size: 12.5px; color: var(--jsq-muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .4s var(--jsq-ease), color .4s var(--jsq-ease); }
.jstudio-quote .jsq-progress span { font: 400 15px/1 var(--jsq-display); color: inherit; }
.jstudio-quote .jsq-progress li.is-done { border-top-color: var(--jsq-champ); color: var(--jsq-fg); }
.jstudio-quote .jsq-progress li[aria-current="step"] { border-top-color: var(--jsq-fg); color: var(--jsq-fg); font-weight: 500; }

/* steps */
.jstudio-quote .jsq-step { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; background: none; }
.jstudio-quote .jsq-step + .jsq-step { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--jsq-line); }
.jstudio-quote.is-wizard .jsq-step + .jsq-step { margin-top: 0; padding-top: 0; border-top: 0; }
.jstudio-quote .jsq-step-title { display: block; width: 100%; padding: 0; margin: 0 0 22px; font: 400 1.85rem/1.1 var(--jsq-display); color: var(--jsq-fg); outline: none; }
.jstudio-quote .jsq-step-num { display: block; margin-bottom: 6px; font: 500 11px/1.3 var(--jsq-font); letter-spacing: .2em; text-transform: uppercase; color: var(--jsq-gold); }
.jstudio-quote .jsq-optional { font: 400 13px/1 var(--jsq-font); letter-spacing: 0; text-transform: none; color: var(--jsq-muted); }
.jstudio-quote .jsq-step-title .jsq-optional { margin-left: 6px; }

/* fields */
.jstudio-quote .jsq-field { margin: 0 0 24px; min-width: 0; }
.jstudio-quote .jsq-label { display: block; margin: 0 0 12px; color: var(--jsq-fg); }
.jstudio-quote .jsq-req { color: var(--jsq-gold); }
.jstudio-quote .jsq-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--jsq-muted); }
.jstudio-quote .jsq-hint a { color: var(--jsq-fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--jsq-line2); }
.jstudio-quote .jsq-err { margin: 8px 0 0; font-size: 13px; font-weight: 500; color: var(--jsq-danger); }
.jstudio-quote input:not([type=checkbox]):not([type=radio]):not([type=file]), .jstudio-quote select, .jstudio-quote textarea {
  width: 100%; min-height: 52px; margin: 0; padding: 13px 14px; font: 400 16px/1.4 var(--jsq-font); color: var(--jsq-fg);
  background: var(--jsq-surface); border: 1px solid var(--jsq-line2); border-radius: 0; box-shadow: none;
  transition: border-color .25s var(--jsq-ease), box-shadow .25s var(--jsq-ease);
}
.jstudio-quote input::placeholder, .jstudio-quote textarea::placeholder { color: #9A9F9C; }
.jstudio-quote textarea { min-height: 112px; resize: vertical; }
.jstudio-quote input:not([type=checkbox]):not([type=radio]):hover, .jstudio-quote select:hover, .jstudio-quote textarea:hover { border-color: var(--jsq-muted); }
.jstudio-quote input:focus-visible, .jstudio-quote select:focus-visible, .jstudio-quote textarea:focus-visible {
  outline: none; border-color: var(--jsq-fg); box-shadow: 0 0 0 1px var(--jsq-fg);
}
.jstudio-quote [aria-invalid="true"] { border-color: var(--jsq-danger) !important; box-shadow: 0 0 0 1px var(--jsq-danger) !important; }
.jstudio-quote input[readonly] { background: var(--jsq-soft); color: var(--jsq-muted); }
.jstudio-quote .jsq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 18px; }

/* ---------- chips ---------- */
.jstudio-quote .jsq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jstudio-quote .jsq-chip { position: relative; margin: 0; cursor: pointer; min-width: 0; }
.jstudio-quote .jsq-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.jstudio-quote .jsq-chip span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; color: var(--jsq-fg);
  border: 1px solid var(--jsq-line2); border-radius: 0; background: var(--jsq-surface);
  font-size: 14px; line-height: 1.2; transition: border-color .25s var(--jsq-ease), background-color .25s var(--jsq-ease), box-shadow .25s var(--jsq-ease);
}
.jstudio-quote .jsq-chip b { font-weight: 400; }
.jstudio-quote .jsq-chip:hover span { border-color: var(--jsq-fg); }
.jstudio-quote .jsq-chip input:checked + span { border-color: var(--jsq-fg); background: var(--jsq-stage); box-shadow: inset 0 0 0 1px var(--jsq-fg); }
.jstudio-quote .jsq-chip input:checked + span b { font-weight: 500; }
.jstudio-quote .jsq-chip input:focus-visible + span { outline: 2px solid var(--jsq-fg); outline-offset: 2px; }
.jstudio-quote .jsq-chip svg { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }

/* what are we making: three tiles */
.jstudio-quote .jsq-chips--type { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jstudio-quote .jsq-chips--type .jsq-chip span { width: 100%; min-height: 104px; flex-direction: column; justify-content: center; gap: 10px; padding: 14px 8px; text-align: center; font-size: 13.5px; }
.jstudio-quote .jsq-chips--type .jsq-chip svg { width: 36px; height: 36px; }
.jstudio-quote .jsq-chips--type .jsq-chip input:checked + span svg { color: var(--jsq-gold); }

/* stone shapes: tiles with the outline */
.jstudio-quote .jsq-chips--shape { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.jstudio-quote .jsq-chips--shape .jsq-chip span { width: 100%; min-height: 86px; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 6px; text-align: center; font-size: 13px; }
.jstudio-quote .jsq-chips--shape .jsq-chip svg { width: 32px; height: 32px; color: var(--jsq-muted); transition: color .25s var(--jsq-ease); }
.jstudio-quote .jsq-chips--shape .jsq-chip:hover svg, .jstudio-quote .jsq-chips--shape .jsq-chip input:checked + span svg { color: var(--jsq-fg); }

/* metal: polished swatch dot */
.jstudio-quote .jsq-metal { width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(17,26,24,.14); }
.jstudio-quote .jsq-metal--yellow { background: linear-gradient(140deg, #F7E3AE 0%, #D9B05F 45%, #F2D898 62%, #B98E3E 100%); }
.jstudio-quote .jsq-metal--white { background: linear-gradient(140deg, #FBFBFA 0%, #DCDCD8 45%, #F4F4F2 60%, #C9C9C4 100%); }
.jstudio-quote .jsq-metal--rose { background: linear-gradient(140deg, #F8D7C8 0%, #DB9C84 45%, #F1C4B1 62%, #BF7C64 100%); }
.jstudio-quote .jsq-metal--platinum { background: linear-gradient(140deg, #F2F3F3 0%, #BFC2C3 45%, #E6E8E8 62%, #A7AAAB 100%); }

/* ---------- photos ---------- */
.jstudio-quote .jsq-drop { position: relative; }
.jstudio-quote.is-enhanced .jsq-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.jstudio-quote.is-enhanced .jsq-drop input[type=file]:focus-visible + .jsq-drop-ui { outline: 2px solid var(--jsq-fg); outline-offset: 2px; }
.jstudio-quote .jsq-drop-ui {
  display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left;
  min-height: 92px; padding: 18px 20px; border: 1px dashed var(--jsq-line2); background: var(--jsq-soft);
  transition: border-color .25s var(--jsq-ease), background-color .25s var(--jsq-ease);
}
.jstudio-quote .jsq-drop:hover .jsq-drop-ui, .jstudio-quote .jsq-drop.is-over .jsq-drop-ui { border-color: var(--jsq-fg); background: var(--jsq-stage); }
.jstudio-quote .jsq-drop.is-full { display: none; }
.jstudio-quote .jsq-drop-ui svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--jsq-gold); stroke-width: 1.2; stroke-linejoin: round; }
.jstudio-quote .jsq-drop-main { display: block; font-weight: 500; color: var(--jsq-fg); }
.jstudio-quote .jsq-drop-sub { display: block; font-size: 13px; color: var(--jsq-muted); }
.jstudio-quote .jsq-drop-ui > span + span { margin-left: -6px; }
.jstudio-quote .jsq-thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.jstudio-quote .jsq-thumbs:empty { display: none; }
.jstudio-quote .jsq-thumbs li { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--jsq-stage); border: 1px solid var(--jsq-line); }
.jstudio-quote .jsq-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jstudio-quote .jsq-thumbs .jsq-thumb-name { position: absolute; inset: auto 0 0; padding: 4px 6px; font-size: 11px; background: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jstudio-quote .jsq-thumbs .is-busy::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.6); }
.jstudio-quote .jsq-thumbs button {
  position: absolute; top: 4px; right: 4px; z-index: 1; width: 30px; height: 30px; min-height: 0; padding: 0; margin: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: rgba(17,26,24,.78); color: #fff; font-size: 17px; line-height: 1;
}
.jstudio-quote .jsq-thumbs button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* consent */
.jstudio-quote .jsq-checks { padding: 18px 0 0; border-top: 1px solid var(--jsq-line); }
.jstudio-quote .jsq-check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; cursor: pointer; }
.jstudio-quote .jsq-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--jsq-accent); }
.jstudio-quote .jsq-check input:focus-visible { outline: 2px solid var(--jsq-fg); outline-offset: 2px; }
.jstudio-quote .cf-turnstile { margin: 0 0 14px; }

/* ---------- buttons: the theme's square ink buttons ---------- */
.jstudio-quote .jsq-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; margin: 0;
  font: 500 12px/1 var(--jsq-font); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--jsq-accent); border-radius: 0; background: var(--jsq-accent); color: var(--jsq-accent-fg);
  transition: background-color .3s var(--jsq-ease), border-color .3s var(--jsq-ease), color .3s var(--jsq-ease);
}
.jstudio-quote .jsq-btn:hover { background: var(--wp--preset--color--primary-dark, #1A3C36); border-color: var(--wp--preset--color--primary-dark, #1A3C36); }
.jstudio-quote .jsq-btn--ghost { background: transparent; color: var(--jsq-fg); border-color: var(--jsq-line2); }
.jstudio-quote .jsq-btn--ghost:hover { background: transparent; color: var(--jsq-fg); border-color: var(--jsq-fg); }
.jstudio-quote .jsq-btn:focus-visible { outline: 2px solid var(--jsq-fg); outline-offset: 3px; }
.jstudio-quote .jsq-btn[disabled] { opacity: .6; cursor: progress; }
/* phone: the actions stay at the bottom of the screen while filling the form */
.jstudio-quote .jsq-nav {
  position: sticky; bottom: 0; z-index: 2; display: flex; gap: 10px; margin: 6px -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--jsq-surface); border-top: 1px solid var(--jsq-line);
}
.jstudio-quote .jsq-nav .jsq-next, .jstudio-quote .jsq-nav .jsq-submit { flex: 1; }
.jstudio-quote .jsq-sending { padding: 0 0 18px; }
.jstudio-quote .jsq-bar { height: 2px; background: var(--jsq-line); overflow: hidden; }
.jstudio-quote .jsq-bar span { display: block; height: 100%; width: 0; background: var(--jsq-fg); transition: width .2s; }
.jstudio-quote .jsq-sending-text { margin: 10px 0 0; font-size: 14px; color: var(--jsq-muted); }

/* ---------- side notes ---------- */
.jstudio-quote .jsq-aside { display: flex; flex-direction: column; gap: 26px; font-size: 14px; }
.jstudio-quote .jsq-aside section { margin: 0; }
.jstudio-quote .jsq-aside h3 { margin: 0 0 14px; color: var(--jsq-fg); }
.jstudio-quote .jsq-summary { padding: 18px 20px; background: var(--jsq-soft); border: 1px solid var(--jsq-line); }
.jstudio-quote .jsq-summary dl { margin: 0; }
.jstudio-quote .jsq-summary dl > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--jsq-line); }
.jstudio-quote .jsq-summary dt { color: var(--jsq-muted); font-size: 13px; }
.jstudio-quote .jsq-summary dd { margin: 0; color: #9A9F9C; font-size: 14px; }
.jstudio-quote .jsq-summary dd.is-set { color: var(--jsq-fg); }
.jstudio-quote .jsq-how { list-style: none; margin: 0; padding: 0; counter-reset: jsq; display: flex; flex-direction: column; gap: 14px; }
.jstudio-quote .jsq-how li { counter-increment: jsq; display: grid; grid-template-columns: 26px 1fr; gap: 2px 10px; margin: 0; }
.jstudio-quote .jsq-how li::before { content: counter(jsq, decimal-leading-zero); grid-row: span 2; font: 400 16px/1.3 var(--jsq-display); color: var(--jsq-gold); }
.jstudio-quote .jsq-how strong { font-size: 14px; font-weight: 500; }
.jstudio-quote .jsq-how span { color: var(--jsq-muted); }
.jstudio-quote .jsq-help p { margin: 0 0 4px; }
.jstudio-quote .jsq-help a { color: var(--jsq-fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--jsq-line2); }
.jstudio-quote .jsq-privacy { margin: 0; font-size: 13px; color: var(--jsq-muted); border-top: 1px solid var(--jsq-line); padding-top: 16px; }

/* link prefill */
.jstudio-quote .jsq-prefill { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; padding: 14px 18px; background: var(--jsq-stage); font-size: 13.5px; }
.jstudio-quote .jsq-prefill p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.jstudio-quote .jsq-prefill b { font-weight: 500; }
.jstudio-quote .jsq-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.jstudio-quote .jsq-tags span { background: var(--jsq-surface); border: 1px solid var(--jsq-line); padding: 3px 10px; font-size: 12.5px; }
.jstudio-quote .jsq-prefill__d { color: var(--jsq-muted); flex-basis: 100%; }
.jstudio-quote .jsq-prefill a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

@media (min-width: 600px) {
  .jstudio-quote .jsq-form { padding: 32px 32px 0; }
  .jstudio-quote .jsq-nav { margin: 6px -32px 0; padding: 16px 32px; }
  .jstudio-quote .jsq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jstudio-quote .jsq-nav .jsq-next, .jstudio-quote .jsq-nav .jsq-submit { flex: 0 0 auto; margin-inline-start: auto; min-width: 220px; }
}
@media (min-width: 960px) {
  .jstudio-quote .jsq-layout { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "intro main" "aside main"; gap: 28px 64px; align-items: start; }
  .jstudio-quote .jsq-intro { padding-top: 6px; }
  .jstudio-quote .jsq-aside { position: sticky; top: calc(110px + var(--wp-admin--admin-bar--height, 0px)); }
  .jstudio-quote .jsq-form { padding: 40px 44px 0; }
  .jstudio-quote .jsq-nav { position: static; margin: 10px -44px 0; padding: 20px 44px; }
  .jstudio-quote .jsq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jstudio-quote .jsq-step[data-step="3"] .jsq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .jstudio-quote * { transition: none !important; } }
