/* ── 预约 CTA 条 ── */
.apply {
    padding: 50px 0;
    background: linear-gradient(135deg, #f5a623 0%, #e8890f 100%);
    text-align: center;
    color: #fff;
}
.apply h2 { font-size: 34px; margin-bottom: 10px; font-weight: 800; }
.apply > .container > p { font-size: 16px; opacity: .9; margin-bottom: 28px; }

.apply-trigger {
    display: inline-block;
    padding: 14px 40px;
    background: #111;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 32px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background .2s, box-shadow .2s, transform .15s;
    font-family: inherit;
}
.apply-trigger:hover {
    background: #222;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

.apply-note { margin-top: 16px; font-size: 13px; opacity: .75; }

/* ════════════════════════════
   弹窗遮罩
════════════════════════════ */
.apply-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.apply-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ════════════════════════════
   弹窗主体
════════════════════════════ */
.apply-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 460px;
    padding: 40px 36px 32px;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform .28s cubic-bezier(.22,.8,.25,1);
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.apply-modal-overlay.is-open .apply-modal {
    transform: translateY(0) scale(1);
}

/* 关闭按钮 */
.apply-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f2f2f2;
    border-radius: 50%;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    font-family: inherit;
}
.apply-modal-close:hover { background: #e5e5e5; color: #333; }

/* 头部 */
.apply-modal-hd { margin-bottom: 28px; }

.apply-modal-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f5a623;
    margin-bottom: 10px;
}

.apply-modal-hd h3 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 6px;
    line-height: 1.2;
}

.apply-modal-hd p {
    font-size: 13.5px;
    color: #888;
    line-height: 1.7;
    margin: 0;
}

/* 表单 */
.apply-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.amf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amf-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.3px;
}

.amf-field input,
.amf-field select {
    padding: 12px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    font-family: inherit;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    background: #fafafa;
    width: 100%;
}
.amf-field input:focus,
.amf-field select:focus {
    border-color: #f5a623;
    box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
    background: #fff;
}

/* ── 自定义下拉 ── */
.amf-cs {
    position: relative;
}

.amf-cs-trigger {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    background: #fafafa;
    font-size: 14px;
    font-family: inherit;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    transition: border-color .18s, box-shadow .18s, background .18s;
    outline: none;
}
.amf-cs-trigger:hover,
.amf-cs.is-open .amf-cs-trigger {
    border-color: #f5a623;
    background: #fff;
}
.amf-cs.is-open .amf-cs-trigger {
    box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}
.amf-cs-trigger.has-val { color: #222; }

.amf-cs-arrow {
    flex-shrink: 0;
    transition: transform .2s;
}
.amf-cs.is-open .amf-cs-arrow {
    transform: rotate(180deg);
}

.amf-cs-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #ebebeb;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.amf-cs.is-open .amf-cs-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.amf-cs-opt {
    padding: 11px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background .12s, color .12s;
    border-bottom: 1px solid #f5f5f5;
}
.amf-cs-opt:last-child { border-bottom: none; }
.amf-cs-opt:hover { background: #fff8ee; color: #f5a623; }
.amf-cs-opt.is-selected {
    color: #f5a623;
    font-weight: 600;
    background: #fff8ee;
}

.amf-submit {
    margin-top: 4px;
    padding: 14px;
    background: #f5a623;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.5px;
    font-family: inherit;
    transition: background .2s, box-shadow .2s, transform .15s;
}
.amf-submit:hover {
    background: #e09010;
    box-shadow: 0 4px 16px rgba(245,166,35,0.35);
    transform: translateY(-1px);
}

/* 底部注释 */
.apply-modal-note {
    margin-top: 16px;
    font-size: 12px;
    color: #ccc;
    text-align: center;
}

/* ── 响应式 ── */

@media (max-width: 768px) {
    .apply { padding: 40px 0; }
    .apply h2 { font-size: 28px; }
}

@media (max-width: 480px) {
    .apply-modal { padding: 32px 22px 26px; }
    .apply-modal-hd h3 { font-size: 20px; }
    .apply h2 { font-size: 26px; }
    .apply > .container > p { font-size: 15px; }
}

@media (max-width: 390px) {
    .apply h2 { font-size: 22px; }
    .apply > .container > p { font-size: 14px; margin-bottom: 20px; }
    .apply-modal { padding: 28px 18px 22px; }
    .apply-modal-hd h3 { font-size: 18px; }
    .apply-modal-hd p { font-size: 13px; }
    .amf-field input,
    .amf-cs-trigger { padding: 11px 14px; font-size: 14px; }
    .amf-submit { padding: 13px; font-size: 14px; }
    .apply-trigger { padding: 12px 28px; font-size: 15px; }
}
