/* STUDIO ASX: Order Redesign V1 (P2). Loaded only by the V1 order page.
   Builds on style.css (order-card, chip, upload-zone, form-group, btn) and uses
   theme tokens only, so light and dark themes come from the same variables. */

.ov1-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.ov1-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ov1-layout .ov1-aside { order: 2; grid-area: auto; }   /* order-steps-card sets grid-area: steps in style.css */
@media (min-width: 1000px) {
  .ov1-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .ov1-aside { position: sticky; top: 96px; }
}

/* Steps */
.ov1-step { border: 1px solid var(--color-border-soft); margin: 0; min-width: 0; }
.ov1-step-title {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 17px; font-weight: 700; color: var(--color-heading); padding: 0; margin-bottom: 16px; float: left; width: 100%;
}
.ov1-step-title + * { clear: both; }
.ov1-step-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-accent-surface); color: var(--color-accent-on);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.ov1-step-service { font-weight: 600; color: var(--color-text-faint); font-size: 14px; }
.ov1-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14.5px; color: var(--color-text); }
.ov1-optional { font-weight: 500; color: var(--color-text-hint); font-size: 13px; }
.ov1-row { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ov1-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ov1-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Selectable cards (service and package) */
.ov1-choice { display: block; cursor: pointer; margin: 0; font-weight: 400; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ov1-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ov1-choice-inner {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 18px; border: 2px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface);
  transition: border-color 90ms linear, background-color 90ms linear, box-shadow 90ms linear;
}
@media (hover: hover) { .ov1-choice:hover .ov1-choice-inner { border-color: var(--color-accent); } }
.ov1-choice input:checked + .ov1-choice-inner {
  border-color: var(--color-secondary); background: var(--color-primary-tint-soft); box-shadow: var(--shadow-sm);
}
.ov1-choice input:focus-visible + .ov1-choice-inner { outline: 2px solid var(--color-secondary); outline-offset: 2px; }
.ov1-choice-name { display: block; font-weight: 700; color: var(--color-heading); font-size: 16px; }
.ov1-choice-desc { display: block; font-size: 13.5px; color: var(--color-text-muted); line-height: 1.5; }
/* One obvious selected state: a check badge on the chosen card */
.ov1-choice-inner { position: relative; }
.ov1-choice input:checked + .ov1-choice-inner::after {
  content: '✓'; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-fill); color: var(--color-on-primary); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.ov1-service-cards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .ov1-service-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ov1-service-icon { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.ov1-service-price { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--color-secondary); }

.ov1-package-cards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ov1-package-cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } }
.ov1-package-cards.is-single { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.ov1-package-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-right: 28px; }
.ov1-package-price { font-size: 20px; font-weight: 800; color: var(--color-heading); white-space: nowrap; }
.ov1-package-price.is-quote { font-size: 14px; font-weight: 700; color: var(--color-secondary); }
.ov1-price-note { font-size: 12px; color: var(--color-text-faint); font-weight: 600; letter-spacing: .02em; }
.ov1-package-desc { display: block; font-size: 13.5px; color: var(--color-text-muted); line-height: 1.5; margin-top: 4px; }
.ov1-feature-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--color-border-soft); }
.ov1-feature { display: block; font-size: 13.5px; color: var(--color-text-body); padding-left: 20px; position: relative; line-height: 1.45; }
.ov1-feature::before { content: '✓'; position: absolute; left: 0; color: var(--color-success); font-weight: 700; }
.ov1-feature-inherit { font-weight: 700; color: var(--color-heading); padding-left: 0; }
.ov1-feature-inherit::before { content: none; }
.ov1-all-features { margin-top: 14px; font-size: 14px; }
.ov1-all-features summary { cursor: pointer; font-weight: 600; color: var(--color-secondary); }
.ov1-all-features summary:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; border-radius: 4px; }
.ov1-all-features-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 12px; }
.ov1-all-features-name { font-weight: 700; color: var(--color-heading); margin: 0 0 6px; }
.ov1-all-features ul { margin: 0; padding-left: 18px; color: var(--color-text-body); }
.ov1-price-hint { margin-top: 14px; }

/* Panels: without JavaScript every panel is shown (the server only reads the
   selected service's fields). With JavaScript only the active one is. */
.ov1-panel { display: flex; flex-direction: column; gap: 20px; }
.ov1.is-enhanced .ov1-panel:not(.is-active) { display: none; }
.ov1.is-enhanced .ov1-dynamic.is-off { display: none; }
.ov1-js-only { display: none; }
.ov1.is-enhanced .ov1-js-only:not([hidden]) { display: block; }
.ov1-choose-prompt { margin: 14px 0 0; color: var(--color-text-muted); font-size: 14px; }
.ov1.is-enhanced .ov1-budget:not(.is-always):not(.is-on) { display: none; }

.ov1-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ov1-check input { width: auto; margin-top: 3px; }

/* Uploads */
.ov1-upload { padding: 22px 18px; }
.ov1-file-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ov1-file-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 12px; border: 1px solid var(--color-border-soft); border-radius: 10px; background: var(--color-surface-subtle);
  font-size: 14px; color: var(--color-heading); overflow-wrap: anywhere;
}
.ov1-file-list button {
  background: none; border: none; cursor: pointer; color: var(--color-danger-strong); font-weight: 600; font-size: 13px; padding: 4px 6px;
}
.ov1-file-list button:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; border-radius: 6px; }

/* Errors */
.ov1-error-summary { max-width: 100%; }
.ov1-error-summary:focus { outline: 2px solid var(--color-danger); outline-offset: 2px; }
.ov1-error-title { margin: 0 0 6px; font-weight: 700; }
.ov1-error-summary ul { margin: 0; padding-left: 18px; }
.ov1-error-summary a { color: inherit; text-decoration: underline; }
.ov1 [aria-invalid="true"] { border-color: var(--color-danger); }

@media (prefers-reduced-motion: reduce) {
  .ov1-choice-inner { transition: none; }
}

/* Adding more files must stay possible after the first selection */
.ov1-upload.has-file .upload-input { pointer-events: auto; }
