/* events.css (v1, Nov 30 2026) — Shop by Wedding Event pages (Mehndi & Haldi / Nikah / Reception):
   hero intro, product sections, arrangement tiles and the customization inquiry forms (events.js).
   Linked only on categories/mehndi.html, nikkah.html, reception.html; own ?v counter (build.py EV_ASSET_V). */

.event-page { --evt-gold: #C9A24A; --evt-gold-text: #B08A35; --evt-err: #B3261E; }

/* ---------- hero ---------- */
.evt-hero { display: grid; gap: 1.5rem; align-items: center; margin: .5rem 0 1.75rem; }
.evt-eyebrow { margin: 0 0 .35rem; color: var(--evt-gold-text, #B08A35); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.evt-hero h1 { font-family: var(--font-serif, "Playfair Display", Georgia, serif); font-weight: 600; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.08; margin: 0 0 .75rem; color: var(--purple-deep); }
.evt-lede { font-size: 1.06rem; line-height: 1.65; color: var(--ink); margin: 0 0 1.25rem; max-width: 40rem; }
.evt-hero-btns { display: flex; flex-wrap: wrap; gap: .65rem; }
.evt-hero-btns .btn { min-height: 48px; }
.evt-hero-btns .btn-outline { border-color: var(--evt-gold); }
.evt-hero-media { margin: 0; justify-self: center; width: min(100%, 340px); }
.evt-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--evt-gold), 0 14px 30px rgba(75, 26, 99, .14); }
@media (min-width: 900px) {
  .evt-hero { grid-template-columns: minmax(0, 1fr) 380px; gap: 3rem; margin-top: 1rem; }
  .evt-hero--noimg { grid-template-columns: 1fr; }
  .evt-hero-media { width: 380px; }
}

/* ---------- jump chips + sections ---------- */
.evt-jump { margin-bottom: 1rem; }
.evt-jump .chip--accent { border-color: var(--evt-gold); color: var(--purple-deep); font-weight: 700; }
.evt-sec { scroll-margin-top: 90px; margin-top: 2.25rem; }
.evt-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-bottom: .9rem; }
.evt-sec-head .coll-h { margin: 0; font-family: var(--font-serif, "Playfair Display", Georgia, serif); font-weight: 600; color: var(--purple-deep); }
.evt-count { color: var(--ink-muted); font-size: .85rem; white-space: nowrap; }
.evt-sec-desc { margin: -.25rem 0 1rem; color: var(--ink-muted); }
.event-page h2.coll-h { scroll-margin-top: 90px; }

/* arrangement tiles (Reception) */
.evt-tile { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.evt-tile-media { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.evt-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.evt-tile:hover .evt-tile-media img { transform: scale(1.03); }
.evt-tile-label { margin-top: .55rem; font-weight: 700; color: var(--purple-deep); }
.evt-tile-desc { font-size: .85rem; color: var(--ink-muted); }
.evt-more { margin: 1rem 0 0; }
.evt-custom-tile { background: var(--mist); border: 1px solid var(--line); border-left: 4px solid var(--evt-gold); border-radius: 14px; padding: 1.25rem 1.25rem; }
.evt-custom-tile p { margin: 0 0 1rem; }
.evt-custom-tile .btn { min-height: 46px; }

/* ---------- Customize section ---------- */
.evc { scroll-margin-top: 80px; margin: 3.25rem 0 1rem; padding: 2.25rem 1.5rem; background: linear-gradient(180deg, var(--mist), #fff 70%); border: 1px solid var(--line); border-radius: 22px; }
.evc-head { text-align: center; max-width: 44rem; margin: 0 auto 1.5rem; }
.evc-head h2 { font-family: var(--font-serif, "Playfair Display", Georgia, serif); font-weight: 600; font-size: clamp(1.6rem, 4.5vw, 2.2rem); margin: 0 0 .6rem; color: var(--purple-deep); }
.evc-head p:last-child { margin: 0; line-height: 1.65; }
.evf-card { max-width: 780px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 1.75rem 1.5rem; box-shadow: 0 0 0 1px var(--line), 0 10px 28px rgba(75, 26, 99, .07); }
.evf-title { font-family: var(--font-serif, "Playfair Display", Georgia, serif); font-weight: 600; font-size: 1.35rem; text-align: center; margin: 0 0 .5rem; color: var(--purple-deep); }
.evf-intro { text-align: center; color: var(--ink-muted); margin: 0 0 1.25rem; line-height: 1.6; }
.evf-req { font-size: .85rem; color: var(--ink-muted); margin: 0 0 .5rem; }
.evf .req, .evf-req span { color: var(--evt-err); }
.evf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.evf-sec { display: flex; flex-wrap: wrap; gap: 0 1rem; border-top: 1px solid var(--line); padding: 1.35rem 0 .35rem; }
.evf-sec[hidden] { display: none; }
.evf-sec > * { flex: 1 1 100%; }
.evf-sec-h { margin: 0 0 .25rem; font-family: var(--font-serif, "Playfair Display", Georgia, serif); font-weight: 600; font-size: 1.15rem; color: var(--purple-deep); }
.evf-sec-h::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--evt-gold); vertical-align: middle; margin-right: .5rem; }
.evf-sec-intro { margin: 0 0 .75rem; color: var(--ink-muted); font-size: .92rem; }
.evf-row { margin: 0 0 1rem; min-width: 0; border: 0; padding: 0; }
.evf-row[hidden] { display: none; }
.evf-half { flex: 1 1 calc(50% - .5rem); }
.evf-label, .evf-row > label.evf-label, .evf-choice legend.evf-label { display: block; font-weight: 700; color: var(--ink); margin: 0 0 .35rem; padding: 0; font-size: .95rem; line-height: 1.35; }
.evf-help { margin: -.15rem 0 .45rem; color: var(--ink-muted); font-size: .85rem; }
.evf input[type=text], .evf input[type=email], .evf input[type=tel], .evf input[type=date], .evf input[type=number], .evf textarea {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: .7rem .8rem; border: 1px solid #CFC3D4; border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); }
.evf textarea { min-height: 96px; resize: vertical; }
.evf input:focus, .evf textarea:focus { outline: 2px solid var(--purple-light); outline-offset: 1px; border-color: var(--purple); }
.evf input[type=date] { -webkit-appearance: none; appearance: none; }
.evf-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; }
.evf-opt { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .55rem .75rem; border: 1px solid #D9CEDD; border-radius: 10px; background: #fff; cursor: pointer; line-height: 1.3; font-size: .95rem; box-sizing: border-box; }
.evf-opt input { width: 20px; height: 20px; margin: 0; flex: 0 0 20px; accent-color: var(--purple); }
.evf-opt:has(input:checked) { border-color: var(--purple); background: #F8F2F9; box-shadow: inset 0 0 0 1px var(--purple); }
.evf-opt:has(input:focus-visible) { outline: 2px solid var(--purple-light); outline-offset: 2px; }
.evf-sec[data-sec=want] .evf-opts, .evf-sec[data-sec=items] .evf-opts { grid-template-columns: 1fr; }

/* photo pickers */
.evf-thumbs { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.evf-thumbs:empty { display: none; }
.evf-thumb { position: relative; width: 92px; }
.evf-thumb img, .evf-thumb .evf-thumb-ph { display: block; width: 92px; height: 92px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--mist); }
.evf-thumb .evf-thumb-ph { display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--ink-muted); text-align: center; padding: 4px; box-sizing: border-box; word-break: break-all; }
.evf-thumb-name { display: block; font-size: .68rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.evf-thumb-rm { position: absolute; top: -10px; right: -10px; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.evf-thumb-rm span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--purple-deep); color: #fff; font-size: 16px; line-height: 1; box-shadow: 0 0 0 2px #fff; }
.evf-thumb.is-busy img, .evf-thumb.is-busy .evf-thumb-ph { opacity: .45; }
.evf-add { position: relative; min-height: 46px; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; border-color: var(--evt-gold) !important; }
.evf-add:focus-within { outline: 2px solid var(--purple-light); outline-offset: 2px; }
.evf-add .evf-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.evf-add.is-disabled { opacity: .5; pointer-events: none; }
.evf-photo-total { margin: .25rem 0 .75rem; font-size: .88rem; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.evf-photo-msg { color: var(--evt-err); font-size: .875rem; font-weight: 600; margin: .1rem 0 .5rem; }

/* errors (message sits on the field itself) */
.evf .field-err { color: var(--evt-err); font-size: .875rem; font-weight: 600; margin: .35rem 0 0; }
.evf .is-invalid-field input, .evf .is-invalid-field textarea, .evf input.is-invalid-field { border-color: var(--evt-err) !important; box-shadow: 0 0 0 2px rgba(179, 38, 30, .15); }
.evf .is-invalid-field .evf-opt { border-color: var(--evt-err); }
.evf-error { color: var(--evt-err); font-weight: 600; margin: 0 0 .75rem; }
.evf-actions .btn { width: 100%; min-height: 52px; font-size: 1rem; letter-spacing: .02em; }
.evf-submit[disabled] { opacity: .75; cursor: progress; }
.evf-note { text-align: center; font-size: .85rem; color: var(--ink-muted); margin: .75rem 0 0; }

/* confirmation */
.evf-thanks { text-align: center; padding: .5rem 0; scroll-margin-top: 90px; }
.evf-thanks:focus { outline: none; }
.evf-thanks-icon { font-size: 2rem; color: var(--evt-gold); margin: 0; }
.evf-thanks h3 { font-family: var(--font-serif, "Playfair Display", Georgia, serif); font-size: 1.6rem; margin: .25rem 0 .5rem; color: var(--purple-deep); }
.evf-recap { text-align: left; max-width: 30rem; margin: 1rem auto; padding: .9rem 1rem; background: var(--mist); border-radius: 12px; border: 1px solid var(--line); }
.evf-recap div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; padding: .3rem 0; }
.evf-recap dt { font-weight: 700; color: var(--ink-muted); font-size: .88rem; }
.evf-recap dd { margin: 0; }
.evf-thanks-next { font-weight: 700; color: var(--purple-deep); }
.evf-ref { font-size: .9rem; color: var(--ink-muted); }

@media (max-width: 640px) {
  .evc { padding: 1.5rem .85rem; margin-left: calc(-1 * var(--gutter, 1.25rem) / 2); margin-right: calc(-1 * var(--gutter, 1.25rem) / 2); border-radius: 18px; }
  .evf-card { padding: 1.25rem 1rem; }
  .evf-opts { grid-template-columns: 1fr; }
  .evf-half { flex-basis: 100%; }
  .evf-recap div { grid-template-columns: 1fr; gap: 0; }
  .evt-sec-head { flex-wrap: wrap; }
}
