:root {
  --ink: #2F2F2F;
  --muted: #6C675F;
  --line: rgba(108, 103, 95, 0.24);
  --page: #FAF7F2;
  --panel: #FAF7F2;
  --secondary-bg: #F1ECE4;
  --accent: #D8B4A8;
  --accent-strong: #87937A;
  --wood: #C49A6C;
  --paper: #A77B51;
  --shadow: 0 18px 42px rgba(47, 47, 47, 0.11);
  --paper-texture-image: url("papertexture.webp");
  --paper-texture-page-opacity: 0.15;
  --paper-texture-hero-opacity: 0.19;
  --paper-texture-card-opacity: 0.14;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(241, 236, 228, 0.7), transparent 360px),
    var(--page);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--paper-texture-page-opacity);
  mix-blend-mode: multiply;
  background-image: var(--paper-texture-image);
  background-size: 900px auto;
  background-position: center top;
}

.rose-scatter {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.rose-accent {
  position: absolute;
  display: block;
  width: var(--rose-width);
  height: var(--rose-height);
  background: center / contain no-repeat;
  opacity: var(--rose-opacity, 0.32);
  transform: rotate(var(--rose-rotation, 0deg));
  filter: saturate(1.04) contrast(1.02);
}

.rose-accent--hero-left {
  --rose-width: clamp(118px, 12vw, 190px);
  --rose-height: clamp(136px, 14vw, 225px);
  --rose-opacity: 0.32;
  --rose-rotation: -8deg;
  top: 176px;
  left: max(-46px, 1vw);
  background-image: url("assets/roses/rose-02.webp");
}

.rose-accent--hero-right {
  --rose-width: clamp(130px, 13vw, 215px);
  --rose-height: clamp(130px, 13vw, 215px);
  --rose-opacity: 0.3;
  --rose-rotation: 7deg;
  top: 74px;
  right: max(10px, 5vw);
  background-image: url("assets/roses/rose-05.webp");
}

.rose-accent--hero-soft {
  --rose-width: clamp(130px, 12vw, 205px);
  --rose-height: clamp(120px, 12vw, 198px);
  --rose-opacity: 0.18;
  --rose-rotation: -2deg;
  top: 186px;
  right: min(360px, 32vw);
  background-image: url("assets/roses/rose-03.webp");
}

.rose-accent--tabs-left {
  --rose-width: clamp(112px, 10vw, 170px);
  --rose-height: clamp(104px, 9vw, 160px);
  --rose-opacity: 0.24;
  --rose-rotation: 12deg;
  top: 420px;
  left: max(-22px, 4vw);
  background-image: url("assets/roses/rose-01.webp");
}

.rose-accent--tabs-right {
  --rose-width: clamp(96px, 8vw, 138px);
  --rose-height: clamp(118px, 10vw, 176px);
  --rose-opacity: 0.2;
  --rose-rotation: -9deg;
  top: 392px;
  right: max(34px, 12vw);
  background-image: url("assets/roses/rose-06.webp");
}

.rose-accent--form-left {
  --rose-width: clamp(108px, 9vw, 158px);
  --rose-height: clamp(108px, 9vw, 158px);
  --rose-opacity: 0.18;
  --rose-rotation: 5deg;
  top: 590px;
  left: max(-30px, 3vw);
  background-image: url("assets/roses/rose-07.webp");
}

.rose-accent--form-lower {
  --rose-width: clamp(125px, 11vw, 185px);
  --rose-height: clamp(160px, 15vw, 245px);
  --rose-opacity: 0.19;
  --rose-rotation: 6deg;
  top: 760px;
  left: min(430px, 32vw);
  background-image: url("assets/roses/rose-04.webp");
}

.rose-accent--quote-right {
  --rose-width: clamp(120px, 11vw, 185px);
  --rose-height: clamp(160px, 16vw, 250px);
  --rose-opacity: 0.24;
  --rose-rotation: -10deg;
  top: 640px;
  right: max(-20px, 5vw);
  background-image: url("assets/roses/rose-08.webp");
}

.rose-accent--quote-soft {
  --rose-width: clamp(112px, 9vw, 166px);
  --rose-height: clamp(102px, 8vw, 152px);
  --rose-opacity: 0.17;
  --rose-rotation: 11deg;
  top: 780px;
  right: min(510px, 40vw);
  background-image: url("assets/roses/rose-09.webp");
}

.rose-accent--gallery-left {
  --rose-width: clamp(95px, 8vw, 145px);
  --rose-height: clamp(135px, 12vw, 205px);
  --rose-opacity: 0.22;
  --rose-rotation: -4deg;
  top: 930px;
  left: max(18px, 7vw);
  background-image: url("assets/roses/rose-06.webp");
}

.rose-accent--gallery-mid {
  --rose-width: clamp(88px, 7vw, 128px);
  --rose-height: clamp(96px, 8vw, 150px);
  --rose-opacity: 0.17;
  --rose-rotation: 9deg;
  top: 1120px;
  right: min(460px, 34vw);
  background-image: url("assets/roses/rose-09.webp");
}

.rose-accent--gallery-right {
  --rose-width: clamp(145px, 14vw, 230px);
  --rose-height: clamp(165px, 16vw, 265px);
  --rose-opacity: 0.26;
  --rose-rotation: 8deg;
  top: 1030px;
  right: max(-38px, 2vw);
  background-image: url("assets/roses/rose-10.webp");
}

.rose-accent--gallery-lower {
  --rose-width: clamp(128px, 11vw, 190px);
  --rose-height: clamp(132px, 12vw, 198px);
  --rose-opacity: 0.18;
  --rose-rotation: -6deg;
  top: 1320px;
  left: max(24px, 15vw);
  background-image: url("assets/roses/rose-03.webp");
}

.rose-accent--lower-center {
  --rose-width: clamp(98px, 9vw, 150px);
  --rose-height: clamp(98px, 9vw, 150px);
  --rose-opacity: 0.18;
  --rose-rotation: -2deg;
  top: 1240px;
  left: min(620px, 52vw);
  background-image: url("assets/roses/rose-07.webp");
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 720px);
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 54px) clamp(16px, 4vw, 32px) 0;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 8px clamp(12px, 3vw, 30px) -18px;
  z-index: 0;
  opacity: var(--paper-texture-hero-opacity);
  mix-blend-mode: multiply;
  background-image: var(--paper-texture-image);
  background-size: 900px auto;
  background-position: center top;
  pointer-events: none;
}

.brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}

.hero-copy {
  position: relative;
  z-index: 1;
  isolation: isolate;
  padding: clamp(16px, 2.6vw, 28px) 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--wood);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title,
.quote-card h2,
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero-title {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: 760px;
  font-size: clamp(2.45rem, 5.4vw, 5.05rem);
}

.hero-title::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 51%;
  top: 55%;
  width: 118%;
  height: 88%;
  background: var(--accent);
  opacity: 0.48;
  mask: url("watercolorsplat.webp") center / 100% 100% no-repeat;
  -webkit-mask: url("watercolorsplat.webp") center / 100% 100% no-repeat;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  pointer-events: none;
}

.hero-title span {
  display: block;
}

.hero-copy p:last-child {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 650;
  line-height: 1.55;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.feature-badges span {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 34px;
  min-width: 0;
  padding: 0 22px 0 13px;
  border: 1px solid rgba(196, 154, 108, 0.38);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(250, 247, 242, 0.78);
  box-shadow: 0 8px 18px rgba(47, 47, 47, 0.06);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.feature-badges span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--wood);
  font-weight: 900;
}

.feature-badges span::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -18px;
  width: 58px;
  height: 58px;
  pointer-events: none;
  background: url("assets/roses/rose-09.webp") center / contain no-repeat;
  opacity: 0.18;
  transform: rotate(-8deg);
}

.feature-badges span:nth-child(2)::after {
  background-image: url("assets/roses/rose-06.webp");
  opacity: 0.16;
  transform: rotate(6deg);
}

.feature-badges span:nth-child(3)::after {
  background-image: url("assets/roses/rose-01.webp");
  opacity: 0.17;
  transform: rotate(11deg);
}

.main-content {
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(10px, 1.8vw, 20px) clamp(14px, 4vw, 32px) clamp(14px, 4vw, 32px);
}

.quote-card::after,
.gallery-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  filter: saturate(1.08) contrast(1.05);
}

.tab-list,
.tab-panel,
.app-shell {
  position: relative;
  z-index: 1;
}

.tab-list {
  overflow: hidden;
  display: inline-flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 247, 242, 0.82);
  box-shadow: 0 10px 24px rgba(47, 47, 47, 0.07);
}

.tab-button {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-width: 0;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.tab-button::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -22px;
  z-index: -1;
  width: 64px;
  height: 64px;
  pointer-events: none;
  background: url("assets/roses/rose-03.webp") center / contain no-repeat;
  opacity: 0.13;
  transform: rotate(8deg);
}

.tab-button.is-active {
  color: var(--ink);
  background: var(--accent);
}

.tab-button.is-active::after {
  opacity: 0.22;
}

.tab-button:focus-visible {
  outline: 3px solid rgba(196, 154, 108, 0.45);
  outline-offset: 2px;
}

.tab-panel[hidden] {
  display: none;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(18px, 3vw, 34px);
}

.quote-form,
.quote-card,
.preview-card,
.gallery-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 247, 242, 0.92);
  box-shadow: var(--shadow);
}

.quote-form::before,
.quote-card::before,
.preview-card::before,
.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--paper-texture-card-opacity);
  mix-blend-mode: multiply;
  background-image: var(--paper-texture-image);
  background-size: 900px auto;
  background-position: center top;
}

.quote-form > *,
.quote-card > *,
.preview-card > *,
.gallery-card > * {
  position: relative;
  z-index: 1;
}

.quote-form {
  display: grid;
  gap: 0;
}

.form-section {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.form-section > * {
  position: relative;
  z-index: 1;
}

.form-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: clamp(82px, 8vw, 126px);
  height: clamp(86px, 8vw, 132px);
  pointer-events: none;
  background: center / contain no-repeat;
  opacity: 0.19;
  filter: saturate(1.05) contrast(1.02);
}

.form-section:nth-of-type(1)::after {
  display: none;
}

.form-section:has(.date-field) {
  z-index: 4;
  overflow: visible;
}

.form-section:nth-of-type(2)::after {
  display: none;
}

.form-section:nth-of-type(2) .choice-card:nth-child(2)::after {
  display: none;
}

.form-section:nth-of-type(3)::after {
  left: -26px;
  bottom: -34px;
  background-image: url("assets/roses/rose-09.webp");
  transform: rotate(7deg);
}

.form-section:nth-of-type(3)::before {
  content: "";
  position: absolute;
  left: 86px;
  right: auto;
  bottom: 72px;
  z-index: 0;
  width: clamp(92px, 8vw, 128px);
  height: clamp(92px, 8vw, 128px);
  pointer-events: none;
  background: url("assets/roses/rose-05.webp") center / contain no-repeat;
  opacity: 0.18;
  transform: rotate(-11deg);
  filter: saturate(1.05) contrast(1.02);
}

.form-section:nth-of-type(4)::after {
  right: -18px;
  bottom: -30px;
  background-image: url("assets/roses/rose-06.webp");
  transform: rotate(-5deg);
}

.submit-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--secondary-bg);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
  font-weight: 900;
}

.section-heading h2,
.quote-card h2 {
  font-size: clamp(1.45rem, 2.3vw, 2.25rem);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-choice-toggle {
  display: none;
}

.choice-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.size-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
  cursor: pointer;
}

.choice-card > span {
  min-width: 0;
}

.choice-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -24px;
  z-index: 0;
  width: 82px;
  height: 82px;
  pointer-events: none;
  background: url("assets/roses/rose-07.webp") center / contain no-repeat;
  opacity: 0.12;
  transform: rotate(-8deg);
  filter: saturate(1.06) contrast(1.02);
}

.choice-card:nth-child(2n)::after {
  top: -26px;
  right: -14px;
  bottom: auto;
  background-image: url("assets/roses/rose-01.webp");
  opacity: 0.1;
  transform: rotate(10deg);
}

.choice-card:nth-child(3n)::after {
  background-image: url("assets/roses/rose-05.webp");
  opacity: 0.11;
  transform: rotate(5deg);
}

.choice-card:has(input:checked) {
  border-color: var(--wood);
  background: var(--secondary-bg);
}

.choice-card:has(input:checked)::after {
  opacity: 0.2;
}

.border-choices .choice-card::after {
  display: none;
}

.choice-card input {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--wood);
}

.choice-card strong,
.choice-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.choice-card strong {
  font-size: 1.04rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.choice-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.character-items-field {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.custom-size,
.contact-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.shipping-address-fields {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(241, 236, 228, 0.72);
}

.shipping-address-fields .field-label {
  margin: 0;
}

.shipping-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shipping-address-grid .address-wide {
  grid-column: 1 / -1;
}

.detail-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.detail-grid > label,
.detail-grid > .character-items-field,
.detail-grid > .field-group {
  min-width: 0;
  align-self: start;
}

.character-item-list {
  display: grid;
  gap: 8px;
}

.character-items-actions {
  display: grid;
  gap: 8px;
}

.character-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.add-character-item,
.remove-character-item {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(196, 154, 108, 0.45);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(250, 247, 242, 0.9);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
}

.add-character-item {
  justify-self: start;
  width: 100%;
  color: var(--wood);
}

.remove-character-item {
  color: var(--muted);
}

.add-character-item:hover,
.remove-character-item:hover {
  border-color: var(--wood);
  background: var(--secondary-bg);
}

.add-character-item:focus-visible,
.remove-character-item:focus-visible {
  outline: 3px solid rgba(196, 154, 108, 0.4);
  outline-offset: 2px;
}

.is-hidden {
  display: none;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  align-self: start;
  min-height: 48px;
  max-height: 54px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf3;
  overflow: hidden;
}

.input-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 12px;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  outline: none;
}

.input-row span {
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
}

.text-input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fffaf3;
  font-weight: 750;
  outline: none;
}

.text-input {
  min-height: 48px;
  padding: 0 13px;
}

.required-label::after {
  content: " *";
  color: var(--secondary-accent);
  font-weight: 900;
}

.text-input.is-invalid {
  border-color: var(--secondary-accent);
  box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.16);
}

.date-field {
  position: relative;
  display: grid;
  gap: 8px;
  max-width: 320px;
}

.date-field-label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.date-picker-trigger {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  min-height: 48px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fffaf3;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.date-picker-trigger:focus-visible {
  outline: 3px solid rgba(196, 154, 108, 0.4);
  outline-offset: 2px;
}

.date-picker-icon {
  position: relative;
  justify-self: end;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 4px;
}

.date-picker-icon::before,
.date-picker-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 2px;
  height: 7px;
  border-radius: 999px;
  background: var(--ink);
}

.date-picker-icon::before {
  left: 4px;
}

.date-picker-icon::after {
  right: 4px;
}

.date-picker-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 12;
  width: min(320px, calc(100vw - 40px));
  padding: 14px;
  border: 1px solid rgba(196, 154, 108, 0.38);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(rgba(250, 247, 242, 0.94), rgba(250, 247, 242, 0.94)),
    var(--paper-texture-image),
    var(--page);
  background-size: auto, 900px auto, auto;
  box-shadow: 0 18px 34px rgba(47, 47, 47, 0.16);
}

.date-picker-popover[hidden] {
  display: none;
}

.date-picker-header,
.date-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.date-picker-header {
  margin-bottom: 10px;
}

.date-picker-header strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.date-picker-controls {
  display: inline-flex;
  gap: 6px;
}

.date-picker-nav,
.date-picker-footer button,
.date-picker-day {
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.date-picker-nav,
.date-picker-footer button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(196, 154, 108, 0.34);
  border-radius: 999px;
  color: var(--wood);
  background: rgba(255, 250, 243, 0.68);
  font-size: 0.76rem;
}

.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.date-picker-weekday {
  display: grid;
  place-items: center;
  min-height: 28px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-picker-day {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.date-picker-day:not(:disabled):hover,
.date-picker-day:not(:disabled):focus-visible {
  background: rgba(216, 180, 168, 0.38);
  outline: none;
}

.date-picker-day.is-outside-month {
  color: rgba(108, 103, 95, 0.48);
}

.date-picker-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(196, 154, 108, 0.7);
}

.date-picker-day.is-selected {
  color: var(--ink);
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(196, 154, 108, 0.72);
}

.date-picker-day:disabled {
  color: rgba(108, 103, 95, 0.3);
  cursor: not-allowed;
}

.date-picker-footer {
  justify-content: flex-end;
  margin-top: 12px;
}

textarea {
  resize: vertical;
  min-height: 140px;
  padding: 13px;
  line-height: 1.45;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-label {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  white-space: nowrap;
}

.field-hint {
  margin-top: -2px;
  color: var(--wood);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
  white-space: normal;
}

.border-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.border-choices .choice-card {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
}

.border-choices .choice-card > span {
  display: grid;
  align-content: center;
}

.border-choices .choice-card strong {
  font-size: clamp(0.86rem, 1.15vw, 1.02rem);
  line-height: 1.1;
  white-space: normal;
}

.border-choices .choice-card small {
  margin-top: 3px;
  line-height: 1.15;
}

.compact-choice {
  min-height: 86px;
}

@media (min-width: 641px) {
  .character-items-actions {
    grid-template-columns: auto;
    align-items: center;
  }

  .add-character-item {
    width: auto;
  }

}

.quote-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  position: sticky;
  top: 18px;
}

.preview-card {
  padding: clamp(12px, 2vw, 18px);
}

.collapsible-toggle {
  display: none;
}

.preview-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  width: clamp(84px, 8vw, 132px);
  height: clamp(84px, 8vw, 132px);
  pointer-events: none;
  background: url("assets/roses/rose-07.webp") center / contain no-repeat;
  opacity: 0.2;
  transform: rotate(9deg);
  filter: saturate(1.05) contrast(1.02);
}

#bannerPreview {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 540;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--secondary-bg);
}

.quote-card {
  padding: clamp(20px, 3vw, 32px);
}

.quote-card::after {
  right: -58px;
  bottom: -72px;
  width: 260px;
  height: 230px;
  background-image: url("assets/roses/rose-08.webp");
  opacity: 0.32;
  transform: rotate(-8deg);
}

.quote-total {
  display: inline-flex;
  align-items: baseline;
  margin: 12px 0 20px;
  color: var(--wood);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  line-height: 1;
  white-space: nowrap;
}

.quote-total.is-discussion {
  font-size: clamp(2.25rem, 3.8vw, 3.5rem);
}

.quote-currency {
  margin-right: 0.03em;
  font-size: 0.82em;
  line-height: 1;
}

.quote-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 18px;
}

.quote-meta div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.quote-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-meta dd {
  margin: 0;
  font-weight: 900;
}

.line-items {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
}

.line-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
}

.line-item strong {
  color: var(--ink);
}

.quote-notes,
.fine-print {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.5;
}

.quote-notes {
  min-height: 42px;
  padding: 12px;
  border-radius: 6px;
  background: var(--secondary-bg);
}

.fine-print {
  margin: 14px 0 0;
}

.primary-button,
.secondary-button {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.primary-button {
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  background: var(--page);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.modal-open {
  overflow: hidden;
}

.message-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.message-modal[hidden] {
  display: none;
}

.message-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(47, 47, 47, 0.34);
  backdrop-filter: blur(3px);
}

.message-modal-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(92vw, 520px);
  padding: clamp(24px, 5vw, 34px);
  border: 1px solid rgba(196, 154, 108, 0.32);
  border-radius: 12px;
  background: var(--page);
  box-shadow: 0 22px 70px rgba(47, 47, 47, 0.2);
  text-align: center;
}

.message-modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--paper-texture-image);
  background-size: 900px auto;
  opacity: var(--paper-texture-card-opacity);
  mix-blend-mode: multiply;
}

.message-modal-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -34px;
  z-index: -1;
  width: 150px;
  height: 150px;
  background: url("assets/roses/rose-06.webp") center / contain no-repeat;
  opacity: 0.22;
  transform: rotate(-8deg);
}

.message-modal-card h2 {
  margin: 6px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
}

.message-modal-card p:not(.eyebrow) {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.45;
}

.message-modal[data-type="error"] .message-modal-card::after,
.message-modal[data-type="warning"] .message-modal-card::after {
  opacity: 0.14;
}

.gallery-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 18px;
}

.gallery-panel > * {
  position: relative;
  z-index: 1;
}

.gallery-panel::before {
  left: -54px;
  top: 76px;
  width: 270px;
  height: 250px;
  background-image: url("assets/roses/rose-06.webp");
  opacity: 0.34;
  transform: rotate(-7deg);
}

.gallery-header {
  display: grid;
  gap: 6px;
}

.gallery-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 24px);
}

.gallery-card {
  display: grid;
}

.gallery-media {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(216, 180, 168, 0.22), rgba(135, 147, 122, 0.15)),
    var(--secondary-bg);
}

.gallery-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 6px;
}

.gallery-sample-banner {
  display: grid;
  place-items: center;
  width: min(100%, 460px);
  aspect-ratio: 5 / 3;
  padding: 24px;
  border: 4px solid #7A5638;
  color: #fffaf3;
  background:
    linear-gradient(90deg, rgba(122, 86, 56, 0.2), transparent 18%, transparent 82%, rgba(122, 86, 56, 0.2)),
    var(--paper);
  box-shadow: 0 20px 34px rgba(47, 47, 47, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.gallery-card-body {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.gallery-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.gallery-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.gallery-card span {
  color: var(--wood);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .site-header,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .site-header {
    justify-items: center;
    gap: 10px;
    text-align: center;
  }

  .brand-logo {
    width: min(320px, 86vw);
  }

  .hero-title {
    width: auto;
    justify-items: center;
  }

  .hero-copy p:last-child {
    margin-right: auto;
    margin-left: auto;
  }

  .feature-badges {
    justify-content: center;
  }

  .main-content {
    margin-top: 0;
  }

  .quote-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(180deg, rgba(241, 236, 228, 0.82), transparent 280px),
      var(--page);
  }

  .site-header {
    gap: 8px;
    padding: 16px 12px 0;
  }

  .site-header::after {
    inset: 2px 8px -10px;
    background-size: 760px auto;
  }

  .rose-accent--hero-left {
    --rose-width: 94px;
    --rose-height: 112px;
    --rose-opacity: 0.18;
    top: 154px;
    left: -38px;
  }

  .rose-accent--hero-right {
    --rose-width: 88px;
    --rose-height: 88px;
    --rose-opacity: 0.17;
    top: 28px;
    right: -34px;
  }

  .rose-accent--tabs-left,
  .rose-accent--tabs-right,
  .rose-accent--hero-soft,
  .rose-accent--form-left,
  .rose-accent--form-lower,
  .rose-accent--quote-right,
  .rose-accent--quote-soft,
  .rose-accent--gallery-left,
  .rose-accent--gallery-mid,
  .rose-accent--gallery-right,
  .rose-accent--gallery-lower,
  .rose-accent--lower-center {
    display: none;
  }

  .brand-logo {
    width: min(260px, 82vw);
  }

  .hero-copy {
    padding: 4px 0 0;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .hero-title {
    font-size: clamp(2.05rem, 13vw, 3.2rem);
  }

  .hero-copy p:last-child {
    margin-top: 10px;
    font-size: 0.96rem;
  }

  .feature-badges {
    gap: 6px;
    margin-top: 12px;
  }

  .feature-badges span {
    min-height: 30px;
    padding: 0 18px 0 10px;
    font-size: clamp(0.68rem, 2.6vw, 0.73rem);
  }

  .main-content {
    padding: 14px 10px 22px;
  }

  .quote-card::after,
  .gallery-panel::before {
    display: none;
  }

  .choice-grid,
  .choice-grid.two-col,
  .custom-size,
  .contact-grid,
  .shipping-address-grid,
  .detail-grid,
  .gallery-grid,
  .submit-section {
    grid-template-columns: 1fr;
  }

  .mobile-choice-toggle {
    position: relative;
    z-index: 1;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 36px 0 13px;
    overflow: hidden;
    border: 1px solid rgba(196, 154, 108, 0.32);
    border-radius: 6px;
    color: var(--wood);
    background: rgba(250, 247, 242, 0.74);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }

  .mobile-choice-toggle::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: translateY(-65%) rotate(45deg);
    transform-origin: center;
    transition: transform 0.16s ease;
  }

  .mobile-choice-toggle[aria-expanded="true"]::after {
    transform: translateY(-35%) rotate(225deg);
  }

  .choice-grid.is-mobile-collapsed .choice-card:not(:has(input:checked)) {
    display: none;
  }

  .tab-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
  }

  .tab-button {
    min-height: 44px;
    padding: 0 8px;
    font-size: clamp(0.74rem, 3.4vw, 0.86rem);
  }

  .app-shell,
  .quote-panel,
  .gallery-panel {
    gap: 12px;
  }

  .quote-form {
    display: contents;
  }

  .quote-form::before {
    display: none;
  }

  .quote-form,
  .quote-card,
  .preview-card,
  .gallery-card {
    box-shadow: 0 12px 26px rgba(47, 47, 47, 0.09);
  }

  .quote-form > * {
    position: relative;
    z-index: 1;
  }

  .quote-form .form-section,
  .quote-form .submit-section {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(250, 247, 242, 0.92);
    box-shadow: 0 12px 26px rgba(47, 47, 47, 0.09);
  }

  .quote-form .form-section:nth-of-type(1) {
    order: 1;
  }

  .quote-form .form-section:nth-of-type(2) {
    order: 2;
  }

  .quote-form .form-section:nth-of-type(3) {
    order: 3;
  }

  .quote-panel {
    order: 4;
  }

  .quote-form .form-section:nth-of-type(4) {
    order: 5;
  }

  .quote-form .submit-section {
    order: 6;
  }

  .form-section {
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .quote-form .form-section:has(.date-field) {
    z-index: 4;
    overflow: visible;
  }

  .form-section::after {
    width: 76px;
    height: 82px;
    opacity: 0.12;
  }

  .form-section:nth-of-type(3)::before {
    left: 18px;
    bottom: 24px;
    width: 68px;
    height: 68px;
    opacity: 0.09;
  }

  .section-heading {
    gap: 10px;
  }

  .section-heading span {
    width: 28px;
    height: 28px;
  }

  .section-heading h2,
  .quote-card h2 {
    font-size: 1.45rem;
  }

  .choice-card {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    min-height: 64px;
    padding: 12px;
  }

  .choice-card strong {
    font-size: clamp(0.96rem, 5vw, 1.04rem);
    white-space: normal;
  }

  .choice-card input {
    width: 18px;
    height: 18px;
  }

  label,
  .field-label {
    font-size: 0.88rem;
  }

  .date-field {
    max-width: none;
  }

  .character-items-field {
    max-width: none;
  }

  .input-row {
    min-height: 46px;
    max-height: none;
  }

  textarea {
    min-height: 120px;
  }

  .submit-section {
    gap: 8px;
    padding: 16px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    font-size: clamp(0.82rem, 4.2vw, 0.95rem);
  }

  .preview-card {
    padding: 10px;
  }

  .collapsible-toggle {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 0 36px 0 13px;
    border: 1px solid rgba(196, 154, 108, 0.32);
    border-radius: 6px;
    color: var(--wood);
    background: rgba(250, 247, 242, 0.78);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: left;
    cursor: pointer;
  }

  .collapsible-toggle::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transform-origin: center;
    transition: transform 0.16s ease;
  }

  .collapsible-toggle[aria-expanded="true"]::after {
    transform: translateY(-35%) rotate(225deg);
  }

  .collapsible-toggle-label {
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0;
  }

  .preview-card .collapsible-toggle {
    margin-bottom: 10px;
  }

  .quote-card .collapsible-toggle {
    margin: -4px 0 14px;
  }

  .collapsible-card.is-collapsed .collapsible-toggle {
    margin-bottom: 0;
  }

  .preview-card.is-collapsed::after {
    display: none;
  }

  .preview-card::after {
    right: 8px;
    bottom: 8px;
    width: 70px;
    height: 70px;
    opacity: 0.12;
  }

  .quote-card {
    padding: 18px;
  }

  .quote-total {
    margin: 10px 0 16px;
    font-size: clamp(2.2rem, 14vw, 3.25rem);
  }

  .quote-total.is-discussion {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .quote-meta {
    gap: 0;
    margin-bottom: 14px;
  }

  .line-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .line-item > span:last-child {
    color: var(--ink);
    font-weight: 900;
  }

  .gallery-header h2 {
    font-size: 2rem;
  }

  .gallery-media {
    min-height: 190px;
    padding: 16px;
  }

  .gallery-sample-banner {
    padding: 16px;
    border-width: 3px;
    font-size: clamp(1.35rem, 9vw, 2.35rem);
  }

  .gallery-card-body {
    padding: 16px;
  }

  .quote-meta div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .feature-badges {
    display: grid;
    grid-template-columns: 1fr;
    width: min(230px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .tab-button {
    font-size: clamp(0.7rem, 3.2vw, 0.8rem);
  }

  .form-section,
  .quote-card {
    padding: 14px;
  }
}

@media print {
  body::before {
    display: none;
  }

  .site-header::after {
    display: none;
  }

  body {
    background: var(--page);
  }

  .site-header,
  .tab-list,
  .gallery-panel,
  .quote-form,
  .preview-card {
    display: none;
  }

  .app-shell {
    display: block;
    padding: 0;
  }

  .main-content {
    padding: 0;
  }

  .quote-card {
    border: 0;
    box-shadow: none;
  }
}
