/* ============================================================================
   Costco97 — Post a Deal page (from Post a Deal.dc.html).
   ========================================================================== */

.c97pd-wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px 20px; }

/* ---- Hero ---- */
.c97pd-hero { background: linear-gradient(180deg, var(--c97-blue-tint) 0%, #f7f9fc 55%, #fff 100%); }
.c97pd-crumbwrap { max-width: var(--c97-container); margin: 0 auto; padding: 16px var(--c97-gutter) 0; }
.c97pd-hero__inner { max-width: 760px; margin: 0 auto; padding: 44px 22px 52px; text-align: center; }
.c97pd-kicker { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c97-blue); margin-bottom: 18px; }
.c97pd-h1 { margin: 0; font-size: 56px; line-height: 1.04; font-weight: 600; letter-spacing: -.03em; color: var(--c97-ink); text-wrap: balance; }
.c97pd-x97 { white-space: nowrap; }
.c97pd-x97 span { color: var(--c97-navy); }
.c97pd-sub { margin: 22px auto 0; max-width: 560px; font-size: 21px; line-height: 1.5; font-weight: 300; color: #484850; }

/* ---- Shell ---- */
.c97pd-shell { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.c97pd-card { background: #fff; border: 1px solid var(--c97-line-soft); border-radius: 24px; padding: 38px 40px; box-shadow: 0 24px 60px -40px rgba(0,42,92,.4); }

/* Honeypot — off-screen, not display:none (some bots skip hidden fields). */
.c97pd-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Steps + fields ---- */
.c97pd-step { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.c97pd-step__n { width: 26px; height: 26px; border-radius: 50%; background: var(--c97-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.c97pd-step h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--c97-ink); }
.c97pd-opt { font-size: 14px; font-weight: 400; color: var(--c97-muted); }
.c97pd-rule { height: 1px; background: #eeeef1; margin: 30px 0; }
.c97pd-field { margin-bottom: 16px; }
.c97pd-field > label { display: block; font-size: 13.5px; font-weight: 600; color: #3a3a3f; margin-bottom: 7px; }
.c97pd-req { color: #c0392b; }
.c97pd-field input[type="text"], .c97pd-field input[type="email"], .c97pd-field textarea {
	width: 100%; font-size: 15.5px; color: var(--c97-ink); background: #fff; border: 1px solid #d7d7dd; border-radius: 12px; padding: 13px 15px; font-family: inherit; transition: border-color .2s, box-shadow .2s; }
.c97pd-field textarea { line-height: 1.5; resize: vertical; }
.c97pd-field input:focus, .c97pd-field textarea:focus { border-color: var(--c97-blue); box-shadow: 0 0 0 3px rgba(0,96,169,.14); outline: none; }
.c97pd-field ::placeholder { color: #b6b6bf; font-weight: 400; }
.c97pd-hint { font-size: 11.5px; color: #a1a1aa; margin-top: 5px; line-height: 1.5; }
.c97pd-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.c97pd-row .c97pd-field { margin-bottom: 0; }
.c97pd-money { position: relative; }
.c97pd-money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15.5px; color: var(--c97-muted); }
.c97pd-money input { padding-left: 26px !important; }

/* ---- Photos ---- */
.c97pd-phototip { display: flex; align-items: flex-start; gap: 10px; background: #fff7ed; border: 1px solid #fde3c4; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.c97pd-phototip svg { flex: none; margin-top: 1px; }
.c97pd-phototip div { font-size: 13.5px; line-height: 1.5; color: #8a5a12; }
.c97pd-phototip b { font-weight: 600; }
.c97pd-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; border: 2px dashed #cdd3dd; border-radius: 16px; padding: 34px 20px; cursor: pointer; transition: border-color .2s, background .2s; background: #fbfbfd; }
.c97pd-drop:hover, .c97pd-drop.is-drag { border-color: var(--c97-blue); background: #f5f9fe; }
.c97pd-drop__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--c97-blue-tint); display: flex; align-items: center; justify-content: center; color: var(--c97-blue); }
.c97pd-drop__t { font-size: 16px; font-weight: 600; color: var(--c97-ink); }
.c97pd-drop__t span { font-weight: 400; color: var(--c97-muted); }
.c97pd-drop__b { font-size: 13px; color: #a1a1aa; }
.c97pd-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.c97pd-chip { display: flex; align-items: center; gap: 9px; background: #f0f6fc; border: 1px solid #d5e5f5; border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--c97-blue); max-width: 220px; }
.c97pd-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c97pd-chip__x { flex: none; background: transparent; border: none; color: var(--c97-blue); font-size: 17px; line-height: 1; cursor: pointer; padding: 0 2px; }
.c97pd-chip__x:hover { color: var(--c97-blue-press); }

/* ---- Warehouse combobox ---- */
.c97pd-loc { position: relative; }
.c97pd-loc__pin { position: absolute; left: 15px; top: 24px; transform: translateY(-50%); pointer-events: none; }
.c97pd-loc__chev { position: absolute; right: 15px; top: 24px; transform: translateY(-50%); pointer-events: none; }
.c97pd-loc input[type="text"] { padding-left: 42px; padding-right: 42px; }
.c97pd-loc__drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid #e0e0e6; border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(0,42,92,.4); max-height: 288px; overflow-y: auto; padding: 6px; }
.c97pd-loc__opt { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; background: transparent; border: none; border-radius: 9px; padding: 11px 12px; cursor: pointer; font-size: 15px; color: var(--c97-ink); font-family: inherit; transition: background .15s; }
.c97pd-loc__opt:hover { background: #f0f6fc; }
.c97pd-loc__opt svg { flex: none; }
.c97pd-loc__none { padding: 14px 12px; font-size: 13.5px; line-height: 1.5; color: var(--c97-muted); }

/* ---- Privacy / captcha / submit ---- */
.c97pd-privacy { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
.c97pd-privacy svg { flex: none; margin-top: 2px; }
.c97pd-privacy div { font-size: 12.5px; line-height: 1.5; color: var(--c97-muted); }
.c97pd-privacy b { color: #3a3a3f; font-weight: 600; }
.c97pd-captcha { margin-top: 30px; }
.c97pd-error { margin-top: 22px; background: #fdeceb; border: 1px solid #f4cfcd; border-radius: 12px; padding: 13px 16px; font-size: 14.5px; line-height: 1.5; color: #8a2c28; }
.c97pd-submit { width: 100%; margin-top: 22px; background: var(--c97-blue); color: #fff; border: none; border-radius: var(--c97-r-pill); padding: 16px; font-size: 17px; font-weight: 600; cursor: pointer; font-family: inherit; }
.c97pd-submit:hover { background: var(--c97-blue-press); }
.c97pd-submit:disabled { opacity: .6; cursor: default; }
.c97pd-terms { text-align: center; font-size: 12.5px; color: #a1a1aa; margin-top: 14px; line-height: 1.5; }

/* ---- Success state ---- */
.c97pd-success { text-align: center; }
.c97pd-success__icon { width: 56px; height: 56px; border-radius: 50%; background: #e8f5ee; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.c97pd-success h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.015em; color: var(--c97-ink); }
.c97pd-success p { margin: 12px auto 0; max-width: 400px; font-size: 16px; line-height: 1.55; color: var(--c97-muted-2); }
.c97pd-success__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.c97pd-againbtn { background: #fff; color: var(--c97-ink); border: 1px solid var(--c97-line); border-radius: var(--c97-r-pill); padding: 12px 24px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: inherit; }
.c97pd-againbtn:hover { border-color: #b0b0b6; background: var(--c97-wash-2); }

/* ---- Aside ---- */
.c97pd-aside { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 16px; }
.c97pd-textcard { background: var(--c97-blue); border-radius: 20px; padding: 24px 22px; color: #fff; box-shadow: 0 24px 54px -38px rgba(0,42,92,.7); }
.c97pd-textcard__label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-bottom: 12px; }
.c97pd-textcard__t { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.c97pd-textcard p { margin: 9px 0 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.85); }
.c97pd-textcard a { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; background: #fff; color: var(--c97-blue); border-radius: var(--c97-r-pill); padding: 11px 18px; font-size: 15px; font-weight: 600; }
.c97pd-textcard a:hover { background: #eaf1fb; text-decoration: none; }
.c97pd-tips { background: #fff; border: 1px solid var(--c97-line-soft); border-radius: 20px; padding: 24px 22px; }
.c97pd-tips__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c97-muted); margin-bottom: 14px; }
.c97pd-tips__list { display: flex; flex-direction: column; gap: 13px; }
.c97pd-tip { display: flex; align-items: flex-start; gap: 10px; }
.c97pd-tip svg { flex: none; margin-top: 1px; }
.c97pd-tip div { font-size: 14px; line-height: 1.5; color: #3a3a3f; }
.c97pd-newhere { background: var(--c97-wash); border: 1px solid #e2e2e7; border-radius: 20px; padding: 20px 22px; }
.c97pd-newhere__t { font-size: 14px; font-weight: 600; color: var(--c97-ink); margin-bottom: 5px; }
.c97pd-newhere p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--c97-muted-2); }
.c97pd-newhere a { font-size: 13.5px; font-weight: 500; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.c97pd-h1 { font-size: 44px; }
	.c97pd-row { grid-template-columns: 1fr; }
	.c97pd-shell { grid-template-columns: 1fr; }
	.c97pd-aside { position: static; order: -1; }
}
@media (max-width: 640px) {
	.c97pd-h1 { font-size: 34px; }
	.c97pd-card { padding: 26px 20px; }
}

/* Ghosted orientation cues inside the photo dropzone (portrait = no, landscape = yes). */
.c97pd-drop { position: relative; overflow: hidden; }
.c97pd-drop > * { position: relative; z-index: 1; }
.c97pd-drop__ghost { position: absolute; top: 50%; transform: translateY(-50%); z-index: 0; opacity: .16; pointer-events: none; }
.c97pd-drop__ghost--no { left: 7%; width: 74px; height: 98px; }
.c97pd-drop__ghost--yes { right: 6%; width: 108px; height: 74px; }
@media (max-width: 640px) { .c97pd-drop__ghost { opacity: .1; } .c97pd-drop__ghost--no { left: 2%; } .c97pd-drop__ghost--yes { right: 2%; } }
