/* 发需求页 / AI 估价页的表单样式(2026-09-19)。依赖 landing.css 的变量和 .lp-btn。
   字大、偏粗、不密;输入框/按钮高度 ≥48px;左右 16px。 */

.lp-body { background: #F6F6F7; }
.lp-page {
    margin-top: calc(var(--header-height, 64px) + 80px);
    min-height: 60vh;
    padding: 24px 0 48px;
}
.lp-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.lp-head { margin: 0 0 18px; }
.lp-head h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 6.4vw, 34px);
    line-height: 1.25;
    font-weight: 900;
    color: var(--lp-text);
}
.lp-head-sub { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 600; color: var(--lp-text-2); }

.lp-draft-note {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #EEF6FF;
    color: #1d4f91;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.lp-form {
    background: #fff;
    border-radius: 16px;
    padding: 20px 16px 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.lp-field { margin-bottom: 22px; }
.lp-label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--lp-text);
}
.lp-req { font-style: normal; color: var(--lp-orange); margin-left: 3px; }
.lp-input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1.5px solid #cfcfcf;
    border-radius: 12px;
    background: #fff;
    font-size: 17px;
    font-weight: 500;
    color: var(--lp-text);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.lp-input:focus { outline: none; border-color: var(--lp-orange); box-shadow: 0 0 0 3px rgba(255, 110, 48, .15); }
.lp-input::placeholder { color: #9a9a9a; font-weight: 500; }
.lp-input.is-invalid { border-color: #d93025; }
.lp-select {
    background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
    background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 38px;
}
.lp-textarea { min-height: 140px; line-height: 1.55; resize: vertical; }

.lp-money { position: relative; }
.lp-money-sign {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 800;
    color: #555;
}
.lp-money .lp-input { padding-left: 32px; }

.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-chip {
    min-height: 48px;
    padding: 0 18px;
    border: 1.5px solid #cfcfcf;
    border-radius: 24px;
    background: #fff;
    font-size: 17px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.lp-chip[aria-checked="true"] {
    border-color: var(--lp-orange);
    background: var(--lp-orange-soft);
    color: #C94A12;
}
.lp-chip-loading { font-size: 16px; color: #888; line-height: 48px; }

.lp-hint { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: #777; }
.lp-err { margin: 8px 0 0; font-size: 15px; font-weight: 700; line-height: 1.5; color: #d93025; }

.lp-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-photo, .lp-photo-add {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}
.lp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-photo.is-uploading::after {
    content: attr(data-state);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.lp-photo-del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 20px;
    line-height: 30px;
    cursor: pointer;
}
.lp-photo-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #c6c6c6;
    background: #FAFAFA;
    color: #555;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.lp-photo-plus { font-size: 30px; line-height: 1; font-weight: 400; margin-bottom: 2px; }

.lp-verify {
    margin: 4px 0 22px;
    padding: 18px 14px;
    border-radius: 14px;
    background: #FFF7F2;
    border: 1.5px solid #FFD9C4;
}
.lp-verify-title { margin: 0 0 6px; font-size: 19px; font-weight: 900; color: var(--lp-text); }
.lp-verify-sub { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: #555; font-weight: 500; }
.lp-verify-row { display: flex; gap: 10px; margin-bottom: 10px; }
.lp-verify-row .lp-input { flex: 1 1 auto; min-width: 0; }
.lp-cc { flex: 0 0 96px !important; }
.lp-send { flex: 0 0 auto; min-height: 52px; padding: 0 14px; font-size: 16px; white-space: nowrap; }

.lp-form-error {
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 12px;
    background: #FDECEA;
    color: #B3261E;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}
.lp-submit { width: 100%; font-size: 20px; min-height: 58px; }
.lp-agree { margin: 12px 0 0; text-align: center; font-size: 14px; color: #777; line-height: 1.6; }
.lp-agree a { color: #555; text-decoration: underline; }

/* 成功页 */
.lp-success {
    background: #fff;
    border-radius: 16px;
    padding: 32px 18px 26px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.lp-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #1f9d55;
    position: relative;
}
.lp-success-icon::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 20px;
    width: 26px;
    height: 14px;
    border-left: 5px solid #fff;
    border-bottom: 5px solid #fff;
    transform: rotate(-45deg);
}
.lp-success .lp-success-title { margin: 0 0 12px; font-size: 28px; font-weight: 900; color: var(--lp-text); }
.lp-success-main { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.55; color: var(--lp-text); }
.lp-success-sub { margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: #555; }
.lp-success-apps, .lp-success-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.lp-success .lp-btn { width: 100%; }

@media (max-width: 768px) {
    .lp-page { margin-top: var(--header-height, 64px); padding-top: 18px; }
}
@media (min-width: 769px) {
    .lp-form { padding: 28px 28px 30px; }
    .lp-success-apps, .lp-success-links { flex-direction: row; }
}

/* 2026-09-19 Vivian:项目类型、希望什么时候开工 这两组(各 3 个)排成一行,不再折到第二行。
   等宽平分,窄屏(320)也放得下;其它 chip 组(设计/施工)维持原样。 */
#typeChips, #timeChips {
    flex-wrap: nowrap;
    gap: 8px;
}
#typeChips .lp-chip, #timeChips .lp-chip {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px;
    text-align: center;
    /* 英文比中文长(Reconstruction / Within a month),按钮内自动折行,仍保持一行三个 */
    white-space: normal;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-wrap: anywhere;
}
@media (max-width: 360px) {
    #typeChips .lp-chip, #timeChips .lp-chip { font-size: 15px; }
}
