/* ============================================================
 * 发送/消息 留言页样式 - 复刻原站 add_save_leave 表单视觉
 * 纯本地实现，不引入 wpcf7 外部 CSS。
 * 品牌红：#e30613   深色 hero：#1f2a38   复选框蓝：#007bff
 * ============================================================ */

/* ---------- (a) 顶部 hero 全宽标题 banner（仿 et_pb_fullwidth_slider） ---------- */
.rfq-hero {
    width: 100%;
    padding: 90px 0;
    min-height: 340px;
    box-sizing: border-box;
    background-color: #1f2a38;
    background-image: url("/static/cms/images/rfq-hero-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.rfq-hero__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: left;
}
.rfq-hero__title {
    margin: 0;
    text-align: left;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}
.rfq-hero__slash {
    color: #e30613;
    font-weight: 700;
    margin: 0 2px;
}

/* ---------- 内容容器（仿 et_pb_row：max-width 居中 + 分段 padding） ---------- */
#et-main-area {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 15px 60px;
    box-sizing: border-box;
}

/* ---------- (b) 面包屑（仿原站 breadcrumbs） ---------- */
.rfq-breadcrumbs {
    font-size: 14px;
    color: #888;
    margin: 4px 0 22px;
    line-height: 1.6;
}
.rfq-breadcrumbs a {
    color: #555;
    text-decoration: none;
}
.rfq-breadcrumbs a:hover {
    color: #e30613;
    text-decoration: underline;
}
.rfq-breadcrumbs__sep {
    color: #bbb;
    margin: 0 2px;
}
.rfq-breadcrumbs__current {
    color: #333;
    font-weight: 600;
}

/* ---------- 页面标题 / 说明文字（仿 et_pb_text） ---------- */
.rfq-page-title {
    margin: 8px 0 0;
}
.rfq-page-title h1 {
    font-size: 36px;
    color: #1a1a1a;
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: .5px;
}
.rfq-intro {
    font-size: 15px;
    margin: 6px 0 30px;
    color: #555;
    line-height: 1.7;
}

/* 必填红星 */
.rfq-req {
    color: #e30613;
    font-weight: 700;
    margin-left: 1px;
}

/* ---------- 表单区块卡片 ---------- */
.rfq-form-block {
    margin-bottom: 56px;
    padding: 34px 36px;
    border: 1px solid #ececec;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

/* ---------- 三列网格（名称/邮箱/电话 | 公司/国家/选择 | 信息全宽） ---------- */
.rfq-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 24px;
}
.rfq-field {
    box-sizing: border-box;
}
.rfq-field--full {
    grid-column: 1 / -1;
}

/* ---------- 输入框 / 下拉 / 文本域（细灰边框矩形，无圆角） ---------- */
.rfq-input {
    width: 100%;
    display: block;
    height: 48px;
    padding: 0 12px;
    border: 1px solid #d5d5d5;
    border-radius: 2px;
    font-size: 15px;
    line-height: 1.4;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.rfq-input:focus {
    border-color: #1f2a38;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 42, 56, .10);
}
/* 占位符：灰色，正常字号 */
.rfq-input::placeholder {
    color: #999;
    opacity: 1;
    font-size: 15px;
}
/* 下拉箭头配色 */
.rfq-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23999' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}
.rfq-select::-ms-expand {
    display: none;
}
/* 文本域：大框 */
.rfq-textarea {
    height: 200px;
    padding: 12px;
    resize: vertical;
    line-height: 1.6;
}

/* ---------- 同意条款复选框（蓝色勾选框 + 黑字 + 红色链接） ---------- */
.rfq-accept-row {
    margin-top: 18px;
}
.rfq-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.7;
    cursor: pointer;
}
.rfq-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    flex: 0 0 auto;
    accent-color: #007bff;
    cursor: pointer;
}
.rfq-check__text {
    display: inline;
}

/* ---------- 提交按钮（红色斜角/箭头按钮，白字「发送>」） ---------- */
.rfq-submit-wrap {
    margin-top: 26px;
    text-align: right;
}
.rfq-submit {
    display: inline-block;
    border: none;
    background: #e30613;
    color: #fff;
    padding: 14px 54px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: inherit;
    /* 平行四边形 / 箭头斜角形状 */
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
    transition: background .15s ease;
}
.rfq-submit:hover {
    background: #b50f10;
}

/* ---------- 返回顶部小箭头（仿 et_pb_scroll_top） ---------- */
.et_pb_scroll_top {
    display: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .rfq-hero {
        padding: 38px 0;
    }
    .rfq-hero__title {
        font-size: 30px;
    }
    .rfq-page-title h1 {
        font-size: 28px;
    }
    .rfq-form-block {
        padding: 22px 18px;
    }
    .rfq-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .rfq-submit-wrap {
        text-align: center;
    }
}
