/* ============================================================
   Request a Quote — Project Brief Form Styles (方案 B · 纯静态版)
   Elythra Beauty | elythrabeauty.com/request-a-quote/
   ------------------------------------------------------------
   加载方式：用 WPCode 注入 <link> 引用本文件（见步骤说明）
   选择器以 .rq-block 为根，作用于 Custom HTML 区块内的表单
   ============================================================ */

.rq-block { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #1A3A40; line-height: 1.7; -webkit-font-smoothing: antialiased; }
.rq-block *, .rq-block *::before, .rq-block *::after { box-sizing: border-box; }
.rq-block h1, .rq-block h2, .rq-block h3, .rq-block h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; margin: 0; }
.rq-block a { text-decoration: none; color: inherit; }
.rq-block button { font-family: inherit; }

.rq-block .rq-section { padding: 72px 0; background: #fff; }
.rq-block .rq-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .rq-block .rq-container { padding: 0 24px; } }

.rq-block .rq-form-card { background: #fff; border: 1px solid rgba(26,58,64,0.10); border-radius: 20px; padding: 44px 44px 40px; box-shadow: 0 8px 40px rgba(26,58,64,0.06); position: relative; overflow: hidden; }
.rq-block .rq-form-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #2991A6, #064E54); }
@media (max-width: 640px) { .rq-block .rq-form-card { padding: 28px 22px; } }

.rq-block .rq-form-section { border: 1px solid rgba(26,58,64,0.06); border-radius: 14px; padding: 28px 28px 24px; margin-bottom: 20px; background: #F5F8FA; }
@media (max-width: 640px) { .rq-block .rq-form-section { padding: 22px 18px; } }
.rq-block .rq-form-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.rq-block .rq-form-section-num { width: 38px; height: 38px; border-radius: 10px; background: #2991A6; color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.rq-block .rq-form-section-head h3 { font-size: 18px; font-weight: 700; color: #1A3A40; }
.rq-block .rq-form-section-head p { font-size: 12.5px; color: #8AA0A8; margin-top: 2px; }

.rq-block .rq-field-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: #4A6571; margin-bottom: 10px; }
.rq-block .rq-field-label .rq-opt { color: #8AA0A8; font-weight: 500; text-transform: none; letter-spacing: 0; }
.rq-block .rq-field-hint { font-size: 12.5px; color: #8AA0A8; margin-top: 8px; line-height: 1.6; }
.rq-block .rq-field { margin-bottom: 18px; }
.rq-block .rq-field:last-child { margin-bottom: 0; }
.rq-block .rq-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.rq-block .rq-form-row .rq-field { margin-bottom: 0; }
@media (max-width: 640px) { .rq-block .rq-form-row { grid-template-columns: 1fr; } }

.rq-block input[type="text"], .rq-block input[type="email"], .rq-block input[type="tel"], .rq-block input[type="url"], .rq-block select, .rq-block textarea {
    width: 100%; padding: 12px 16px; border: 1px solid rgba(26,58,64,0.10); border-radius: 10px;
    font-family: inherit; font-size: 14px; color: #1A3A40; background: #fff;
    transition: all 0.2s; -webkit-appearance: none; appearance: none;
}
.rq-block input:focus, .rq-block select:focus, .rq-block textarea:focus { outline: none; border-color: #2991A6; box-shadow: 0 0 0 3px rgba(41,145,166,0.12); }
.rq-block input::placeholder, .rq-block textarea::placeholder { color: #8AA0A8; }
.rq-block select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238AA0A8' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }
.rq-block textarea { resize: vertical; min-height: 120px; }

/* Chips（多选/单选 pill） */
.rq-block .rq-chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.rq-block .rq-chip { display: inline-flex; align-items: center; border: 1.5px solid rgba(26,58,64,0.10); background: #fff; color: #4A6571; font-size: 13.5px; font-weight: 500; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: all 0.2s ease; position: relative; }
.rq-block .rq-chip:hover { border-color: #2991A6; color: #2991A6; }
.rq-block .rq-chip.selected { background: rgba(41,145,166,0.10); border-color: #2991A6; color: #2991A6; font-weight: 600; }
.rq-block .rq-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; cursor: pointer; margin: 0; }
.rq-block .rq-chip-group.rq-stacked { flex-direction: column; align-items: stretch; max-width: 420px; }
.rq-block .rq-chip-group.rq-stacked .rq-chip { text-align: left; border-radius: 10px; padding: 13px 18px; }

/* Radio 卡片（Benchmark Yes/No） */
.rq-block .rq-radio-inline { display: flex; gap: 12px; flex-wrap: wrap; }
.rq-block .rq-radio-card { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid rgba(26,58,64,0.10); background: #fff; padding: 12px 24px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; color: #4A6571; transition: all 0.2s; position: relative; }
.rq-block .rq-radio-card .rq-radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(26,58,64,0.10); position: relative; flex-shrink: 0; transition: all 0.2s; }
.rq-block .rq-radio-card.selected { border-color: #2991A6; color: #2991A6; background: rgba(41,145,166,0.08); }
.rq-block .rq-radio-card.selected .rq-radio-dot { border-color: #2991A6; }
.rq-block .rq-radio-card.selected .rq-radio-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #2991A6; }
.rq-block .rq-radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }

.rq-block .rq-bench-extra { display: none; margin-top: 18px; padding: 20px; background: #fff; border: 1px dashed rgba(41,145,166,0.4); border-radius: 12px; }
.rq-block .rq-bench-extra.rq-visible { display: block; }
.rq-block .rq-bench-title { font-size: 13px; font-weight: 700; color: #1A3A40; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.rq-block .rq-bench-emo { font-size: 15px; }

/* Upload zone */
.rq-block .rq-upload { border: 2px dashed rgba(26,58,64,0.10); border-radius: 12px; padding: 32px 24px; text-align: center; cursor: pointer; transition: all 0.25s; background: #fff; }
.rq-block .rq-upload:hover, .rq-block .rq-upload.rq-drag { border-color: #2991A6; background: rgba(41,145,166,0.04); }
.rq-block .rq-upload-ico { display: block; font-size: 30px; line-height: 1; margin: 0 auto 10px; }
.rq-block .rq-upload b { display: block; font-size: 14.5px; color: #1A3A40; margin-bottom: 4px; font-weight: 600; }
.rq-block .rq-upload span { font-size: 12.5px; color: #8AA0A8; }
.rq-block .rq-upload input[type="file"] { display: none; }
.rq-block .rq-file-list { margin-top: 12px; display: none; flex-direction: column; gap: 8px; }
.rq-block .rq-file-list.rq-visible { display: flex; }
.rq-block .rq-file { display: flex; align-items: center; gap: 10px; background: #F5F8FA; border: 1px solid rgba(26,58,64,0.06); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #1A3A40; }
.rq-block .rq-file .rq-fname { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-block .rq-file .rq-fsize { color: #8AA0A8; font-size: 12px; }
.rq-block .rq-file .rq-fdel { background: none; border: none; color: #8AA0A8; cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; }
.rq-block .rq-file .rq-fdel:hover { color: #E05656; }

/* Submit */
.rq-block .rq-submit-wrap { margin-top: 28px; }
.rq-block .rq-btn { display: inline-flex; align-items: center; justify-content: center; padding: 17px 40px; font-size: 15px; font-weight: 600; border-radius: 8px; transition: all 0.3s ease; cursor: pointer; border: none; letter-spacing: 0.3px; }
.rq-block .rq-btn-primary { background: linear-gradient(135deg, #2991A6, #064E54); color: #fff; width: 100%; }
.rq-block .rq-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,176,187,0.30); }
.rq-block .rq-submit-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #8AA0A8; margin-top: 14px; line-height: 1.6; }
.rq-block .rq-submit-note .rq-lock-emo { font-size: 13px; flex-shrink: 0; margin-top: 2px; }

/* ==================== 站内成功弹窗（AJAX 提交）==================== */
.rq-block .rq-modal-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(26,58,64,0.55);
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.rq-block .rq-modal {
    background: #fff; border-radius: 20px; padding: 44px 40px 36px;
    max-width: 460px; width: 100%; text-align: center;
    box-shadow: 0 24px 60px rgba(26,58,64,0.25);
    position: relative; animation: rqFadeUp 0.3s ease;
}
@keyframes rqFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.rq-block .rq-modal-ok { display: block; font-size: 52px; line-height: 1; margin: 0 auto 14px; }
.rq-block .rq-modal h3 { font-size: 21px; font-weight: 700; color: #1A3A40; margin-bottom: 10px; }
.rq-block .rq-modal p { font-size: 14.5px; color: #4A6571; line-height: 1.7; margin: 0 0 22px; }
.rq-block .rq-modal-close {
    display: inline-block; background: linear-gradient(135deg, #2991A6, #064E54); color: #fff;
    border: none; border-radius: 8px; padding: 12px 32px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.rq-block .rq-modal-close:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,176,187,0.30); }
