/* 一步一步 partner forms (房東加入, 服務洽詢, 業者報名, 創作者合作): the 馬上開始 block, the full-screen sheet and
   the parts of a stepped form. See scripts/step-form.js. Colours come from the platform theme tokens. */
/* stylelint-disable declaration-block-single-line-max-declarations, no-descending-specificity, declaration-property-value-allowed-list, selector-class-pattern */

/* Where the form was: one big button. */
.step-launch { display: grid; justify-items: start; gap: 10px; margin-top: 8px; }
.step-launch p { margin: 0; color: var(--muted); font-size: 14px; }
.step-launch__button { display: inline-flex; min-height: 56px; align-items: center; justify-content: center; padding: 0 40px; border: 0; border-radius: 999px; background: var(--moss); color: #fff; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s ease; }
.step-launch__button:hover, .step-launch__button:focus-visible { background: color-mix(in srgb, var(--moss) 85%, var(--ink)); color: #fff; }

/* The sheet covers the whole screen; only its middle scrolls. */
html.has-step-sheet { overflow: hidden; }
.step-sheet { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.step-sheet[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.step-sheet::backdrop { background: var(--paper); }
.step-sheet__top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; min-height: 64px; padding: env(safe-area-inset-top, 0) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); }
.step-sheet__icon { display: inline-flex; min-height: 44px; align-items: center; justify-self: start; gap: 4px; padding: 0 12px 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.step-sheet__icon svg { width: 22px; height: 22px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-sheet__icon:hover, .step-sheet__icon:focus-visible { background: var(--paper-deep); }
.step-sheet__close { grid-column: 3; justify-self: end; width: 44px; padding: 0; justify-content: center; }
.step-sheet__count { grid-column: 2; margin: 0; color: var(--muted); font-size: 14px; text-align: center; white-space: nowrap; }
.step-sheet__bar { height: 4px; margin: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); overflow: hidden; border-radius: 2px; background: var(--line); }
.step-sheet__bar span { display: block; width: 0; height: 100%; border-radius: 2px; background: var(--moss); transition: width .3s ease; }
.step-sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 5vh, 56px) max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px)); }
.step-sheet__body > * { width: min(560px, 100%); margin-inline: auto; }
.step-sheet__foot { padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); background: var(--paper); }
.step-sheet__next { display: flex; width: min(560px, 100%); min-height: 54px; align-items: center; justify-content: center; margin-inline: auto; border: 0; border-radius: 999px; background: var(--moss); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: background-color .2s ease; }
.step-sheet__next:hover, .step-sheet__next:focus-visible { background: color-mix(in srgb, var(--moss) 85%, var(--ink)); }
.step-sheet__next:disabled { opacity: .55; cursor: progress; }

@media (prefers-reduced-motion: reduce) { .step-sheet__bar span { transition: none; } }

/* A stepped form shows its current step only; the sheet's button sends it. */
.is-stepped [data-step]:not(.is-current) { display: none; }
.is-stepped [type="submit"] { display: none !important; }
.step-sheet form.is-stepped { display: block; max-width: none; margin-block: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }

/* One question per step. */
.form-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-step > * + * { margin-top: 18px; }

/* A legend floats so it lays out like a heading; what follows clears it. */
.form-step > legend { float: left; width: 100%; margin-bottom: 20px; padding: 0; }
.form-step > legend:has(+ .form-step__hint) { margin-bottom: 8px; }
.form-step > legend + * { clear: both; margin-top: 0; }
.form-step__q { margin: 0; font-size: clamp(24px, 4vw, 30px); font-weight: 700; line-height: 1.3; letter-spacing: .01em; outline: none; }
.form-step > .form-step__hint, .form-step__hint { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.form-step__note { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--moss) 9%, var(--paper)); color: color-mix(in srgb, var(--moss) 80%, var(--ink)); font-size: 14px; line-height: 1.6; }
.step-sheet .is-stepped fieldset.form-step, .step-sheet .is-stepped section.form-step { padding: 0; border: 0; border-radius: 0; background: transparent; }
.step-sheet .is-stepped .form-step > legend { margin: 0; padding: 0; font-size: clamp(24px, 4vw, 30px); }
.step-sheet .is-stepped :is(input:not([type="checkbox"], [type="radio"]), select, textarea) { min-height: 52px; font-size: 17px; }

/* Choices as big buttons: cards, a two-column grid of cards, or chips. */
.choice-list { display: grid; gap: 10px; }
.choice-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-list--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: block !important; margin: 0; cursor: pointer; }

/* The real input covers its card (the whole card is the click target) and stays reachable by keyboard. */
.choice input[type] { position: absolute; z-index: 1; inset: 0; width: 100% !important; height: 100% !important; min-height: 0 !important; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.choice > span { position: relative; display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.choice strong { font-size: 17px; font-weight: 600; line-height: 1.4; }
.choice small { color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.5; }
.choice:hover > span { border-color: var(--ink); }
.choice input:checked + span { border-color: var(--ink); background: var(--paper-deep); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--moss); outline-offset: 2px; }

/* A ticked card shows a check in a dark circle (drawn in CSS: the page's policy allows no data: images). */
.choice input[type="checkbox"]:checked + span::before { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); content: ""; }
.choice input[type="checkbox"]:checked + span::after { position: absolute; top: 14px; right: 17px; width: 5px; height: 10px; border: solid var(--paper); border-width: 0 2px 2px 0; content: ""; transform: rotate(45deg); }
.choice-list--grid .choice > span { padding: 14px 40px 14px 14px; }
.choice-list--grid .choice strong { font-size: 15px; }
.choice-list--grid .choice small { font-size: 13px; }
.choice-list--chips .choice > span { padding: 9px 18px; border-radius: 999px; }
.choice-list--chips .choice strong { font-size: 15px; font-weight: 500; }
.choice-list--chips .choice input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.choice-list--chips .choice input[type="checkbox"]:checked + span::before, .choice-list--chips .choice input[type="checkbox"]:checked + span::after { display: none; }

/* 洽詢's service groups open like rows, with a chevron that turns when open. */
.is-stepped .pricing-form-group summary { min-height: 56px; list-style: none; }
.is-stepped .pricing-form-group summary::-webkit-details-marker { display: none; }
.is-stepped .pricing-form-group summary::after { width: 8px; height: 8px; margin: 0 6px 4px auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); content: ""; transform: rotate(45deg); transition: transform .2s ease; }
.is-stepped .pricing-form-group[open] summary::after { margin-bottom: -4px; transform: rotate(-135deg); }

/* The last step lists every answer with a 修改 button. */
.step-summary { margin: 0; border-top: 1px solid var(--line); }
.step-summary > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.step-summary dt { color: var(--muted); font-size: 13px; }
.step-summary dd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.step-summary__edit { flex: none; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.is-stepped :is([data-error-for], .pricing-field-error):empty { display: none; }

/* 房東加入 inside the sheet: each part is plain, its own button full width. */
.step-sheet .publisher-panel { padding: 0; border: 0; border-radius: 0; background: transparent; }
.step-sheet .publisher-panel + .publisher-panel { margin-top: 0; }
.step-sheet .publisher-panel-label { display: none; }
.step-sheet .publisher-panel h3 { font-size: clamp(24px, 4vw, 30px); font-weight: 700; line-height: 1.3; }
.step-sheet .publisher-panel :is(input, select, textarea) { min-height: 52px; font-size: 17px; }
.step-sheet .publisher-panel-form > .button { width: 100%; min-height: 54px; border-radius: 999px; font-size: 17px; font-weight: 700; }
.step-sheet .publisher-status:empty { display: none; }
.step-sheet .publisher-status { margin-bottom: 16px; }

/* 房東合作's first screen: one 馬上開始 under the title. Phones already show the sign-up card right there. */
.designed-hero-actions { margin: 8px 0 0; }

@media (width <= 820px) { .platform-page-body .designed-partners .designed-hero-actions { display: none; } }

@media (width <= 520px) {
  .step-launch, .step-launch__button { width: 100%; }
}
/* 房源封面照片 (/host/register/): one big tap target that becomes the chosen photo. */
.publisher-cover-pick{position:relative;display:grid;place-items:center;gap:10px;min-height:200px;padding:16px;border:1.5px dashed var(--lb-line,#c9ced6);border-radius:16px;background:var(--lb-surface-soft,#f5f7fa);color:var(--lb-link,#006bff);font-weight:600;text-align:center;cursor:pointer;overflow:hidden}
.publisher-cover-pick img{width:100%;max-height:320px;object-fit:cover;border-radius:12px}
.publisher-cover-pick input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.publisher-cover-pick:focus-within{outline:2px solid var(--lb-link,#006bff);outline-offset:2px}
