/* ============================================================
   DAYO RFQ — Front-end stylesheet (V14)
   Brand tokens (locked design system, do NOT alter):
     --emerald : #092d1f
     --gold    : #c59f52
     --sand    : #fcfaf7
   Fonts: Playfair Display (display) + Plus Jakarta Sans (body)
   No prices / no checkout styling anywhere. Responsive 320px+.
   ============================================================ */

:root {
  --emerald: #092d1f;
  --emerald-700: #0d3a29;
  --gold: #c59f52;
  --gold-600: #b08a3e;
  --sand: #fcfaf7;
  --ink: #1c241f;
  --muted: #6b756e;
  --line: #e4ddcf;
  --danger: #b23b3b;
  --ok: #2f7d4f;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(9, 45, 31, 0.08);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.dayo-rfq {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  box-sizing: border-box;
}

.dayo-rfq *,
.dayo-rfq *::before,
.dayo-rfq *::after { box-sizing: border-box; }

.dayo-rfq__header { margin-bottom: 20px; }
.dayo-rfq__title {
  font-family: var(--font-display);
  color: var(--emerald);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  margin: 0 0 6px;
}
.dayo-rfq__subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

/* ---- two-column layout on wide screens ---- */
.dayo-rfq__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 820px) {
  .dayo-rfq__grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ---- card ---- */
.dayo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.dayo-card__title {
  font-family: var(--font-display);
  color: var(--emerald);
  font-size: 20px;
  margin: 0 0 14px;
}

/* ---- cart table ---- */
.dayo-cart { width: 100%; border-collapse: collapse; }
.dayo-cart th,
.dayo-cart td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}
.dayo-cart th {
  color: var(--emerald);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dayo-cart__thumb {
  width: 48px; height: 48px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); background: var(--sand);
}
.dayo-cart__sku { color: var(--muted); font-size: 12px; }
.dayo-cart__qty {
  width: 64px; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit;
}
.dayo-cart__style {
  max-width: 120px; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; background: #fff;
}
.dayo-cart__remove {
  border: none; background: transparent; color: var(--danger);
  cursor: pointer; font-size: 13px; padding: 4px 6px; border-radius: 6px;
}
.dayo-cart__remove:hover { background: rgba(178, 59, 59, 0.08); }
.dayo-cart__empty { color: var(--muted); font-style: italic; padding: 18px 0; }
.dayo-cart__total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--emerald);
  font-weight: 600; color: var(--emerald);
}

/* ---- form ---- */
.dayo-field { margin-bottom: 14px; }
.dayo-field__label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 6px;
}
.dayo-field__req { color: var(--gold-600); }
.dayo-field__input,
.dayo-field__textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; color: var(--ink); background: #fff;
}
.dayo-field__input:focus,
.dayo-field__textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 159, 82, 0.18);
}
.dayo-field__textarea { min-height: 86px; resize: vertical; }
.dayo-field__hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.dayo-field__error { font-size: 12px; color: var(--danger); margin-top: 4px; display: none; }
.dayo-field--invalid .dayo-field__input,
.dayo-field--invalid .dayo-field__textarea { border-color: var(--danger); }
.dayo-field--invalid .dayo-field__error { display: block; }

/* honeypot — visually hidden but present for bots */
.dayo-rfq__hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* checkboxes */
.dayo-check {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px;
  color: var(--ink); margin-bottom: 10px; line-height: 1.4;
}
.dayo-check input { margin-top: 2px; accent-color: var(--gold); }
.dayo-check a { color: var(--emerald); text-decoration: underline; }

/* button */
.dayo-btn {
  display: inline-block; width: 100%;
  background: var(--emerald); color: #fff; border: none;
  padding: 13px 18px; border-radius: 10px; font: 600 15px/1 var(--font-body);
  letter-spacing: 0.02em; cursor: pointer; transition: background .15s ease, transform .05s ease;
}
.dayo-btn:hover { background: var(--emerald-700); }
.dayo-btn:active { transform: translateY(1px); }
.dayo-btn:disabled { background: #9aa39d; cursor: not-allowed; }
.dayo-btn--ghost {
  background: #fff; color: var(--emerald); border: 1px solid var(--emerald);
  width: auto;
}
.dayo-btn--gold { background: var(--gold); }
.dayo-btn--gold:hover { background: var(--gold-600); }

/* download links (confirmation) */
.dayo-dl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.dayo-dl a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 10px; text-decoration: none;
  background: #fff; border: 1px solid var(--gold); color: var(--emerald);
  font-weight: 600; font-size: 14px;
}
.dayo-dl a:hover { background: var(--gold); color: #fff; }

/* status / messages */
.dayo-msg {
  padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px;
}
.dayo-msg--ok { background: rgba(47, 125, 79, 0.1); color: var(--ok); border: 1px solid rgba(47,125,79,.3); }
.dayo-msg--err { background: rgba(178, 59, 59, 0.08); color: var(--danger); border: 1px solid rgba(178,59,79,.3); }
.dayo-msg--info { background: rgba(197,159,82,0.12); color: var(--gold-600); border: 1px solid rgba(197,159,82,.35); }

.dayo-rfq__loading { opacity: .6; pointer-events: none; }

/* sticky submit bar on mobile */
.dayo-rfq__submit-bar { margin-top: 18px; }
@media (max-width: 480px) {
  .dayo-rfq { padding: 18px 14px 56px; }
  .dayo-card { padding: 16px; }
  .dayo-cart { table-layout: fixed; }
  .dayo-cart th:first-child, .dayo-cart td:first-child { display: none; }
  .dayo-cart th:nth-child(2), .dayo-cart td:nth-child(2) { width: 42%; }
  .dayo-cart th:nth-child(3), .dayo-cart td:nth-child(3) { width: 28%; }
  .dayo-cart th:nth-child(4), .dayo-cart td:nth-child(4) { width: 18%; }
  .dayo-cart th:nth-child(5), .dayo-cart td:nth-child(5) { width: 12%; }
  .dayo-cart th, .dayo-cart td { padding: 8px 4px; font-size: 12px; }
  .dayo-cart td:nth-child(2) { overflow-wrap: anywhere; }
  .dayo-cart__style { width: 100%; max-width: 100%; min-width: 0; padding: 6px 3px; font-size: 12px; }
  .dayo-cart__qty { width: 100%; min-width: 0; padding: 6px 3px; font-size: 12px; }
  .dayo-cart__remove { padding: 4px 0; font-size: 11px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .dayo-btn { transition: none; }
}
