/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --ink: #183128;
  --muted: #627068;
  --paper: #f7f1e6;
  --paper-deep: #e9ddc8;
  --accent: #b75436;
  --cream: #fbf8f1;
  --line: #d9d5ca;
}

* { box-sizing: border-box; }

.envelopery-body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.designer-shell { max-width: 1240px; margin: 0 auto; padding: 0 32px 72px; }
.designer-header { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); text-decoration: none; font: 700 18px/1 Georgia, serif; letter-spacing: .16em; }
.cart-link { color: var(--ink); text-underline-offset: 5px; }
.designer-hero { max-width: 800px; padding: 76px 0 58px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font: 500 clamp(46px, 7vw, 84px)/.98 Georgia, serif; letter-spacing: -.04em; }
.lede { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.designer-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 28px; align-items: stretch; }
.preview-card, .form-card, .quote-card { border: 1px solid var(--line); background: white; }
.preview-card { display: flex; min-height: 590px; flex-direction: column; justify-content: center; padding: 40px; background: var(--paper); }
.preview-card svg, .quote-art svg { width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgb(24 49 40 / 8%)); }
.preview-caption { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid #cfc4b1; color: var(--muted); font-size: 13px; }
.form-card { padding: 42px; }
.form-card h2 { margin: 0 0 10px; font: 500 32px/1.1 Georgia, serif; }
.form-intro, .tax-note, .quote-expiry { color: var(--muted); font-size: 14px; line-height: 1.55; }
.designer-form { display: grid; gap: 26px; margin-top: 34px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 9px; }
.field label { font-size: 13px; font-weight: 700; }
.field input[type="number"] { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font-size: 17px; }
.input-with-unit { position: relative; }
.input-with-unit input { padding-right: 50px !important; }
.input-with-unit span { position: absolute; right: 14px; top: 16px; color: var(--muted); font-size: 14px; }
.check-row { display: flex; gap: 13px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.check-row span { display: grid; gap: 4px; }
.check-row small { color: var(--muted); }
.primary-button { display: block; width: 100%; border: 0; padding: 17px 22px; background: var(--ink); color: white; font-size: 15px; font-weight: 700; cursor: pointer; }
.primary-button:hover { background: var(--accent); }
.form-errors { padding: 15px 18px; border-left: 3px solid var(--accent); background: #fff1ec; color: #7e321e; font-size: 14px; }
.form-errors p { margin-top: 0; font-weight: 700; }
.proof-note { display: grid; grid-template-columns: 150px 1fr; gap: 20px; margin-top: 28px; padding: 22px 26px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.5; }
.proof-note strong { color: var(--ink); }
.quote-page { min-height: 100vh; }
.quote-layout { display: grid; grid-template-columns: 1fr 440px; gap: 54px; padding: 74px 0; align-items: center; }
.quote-art h1 { font-size: clamp(45px, 6vw, 74px); }
.quote-art svg { max-width: 680px; margin-top: 40px; }
.quote-card { padding: 42px; }
.quote-status { display: inline-block; margin: 0 0 22px; padding: 7px 10px; background: #eaf2ed; color: #28573f; font-size: 12px; font-weight: 700; }
.quote-card h2 { margin: 0; font: 500 56px/1 Georgia, serif; }
.quote-details { margin: 34px 0; border-top: 1px solid var(--line); }
.quote-details div { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.quote-details dt { color: var(--muted); }
.quote-details dd { margin: 0; text-align: right; font-weight: 600; }
.quote-expiry { margin: 17px 0 0; }
.flash { padding: 14px 24px; text-align: center; font-size: 14px; }
.flash.notice { background: #eaf2ed; color: #28573f; }
.flash.alert { background: #fff1ec; color: #7e321e; }

@media (max-width: 820px) {
  .designer-shell { padding: 0 18px 48px; }
  .designer-header { height: 70px; }
  .designer-hero { padding: 50px 0 38px; }
  .designer-grid, .quote-layout { grid-template-columns: 1fr; }
  .preview-card { min-height: 0; padding: 24px; }
  .preview-caption { flex-direction: column; }
  .form-card, .quote-card { padding: 28px; }
  .quote-layout { gap: 30px; padding: 50px 0; }
}
