/* 고객 가입 신청서 (match/apply.php, apply_done.php) */
.ema { max-width: 860px; margin: 40px auto 80px; padding: 0 16px; color: var(--eh-text, #2a2f3a); font-size: 15px; line-height: 1.6; }
.ema-head { margin-bottom: 24px; }
.ema-title { margin: 0 0 8px; color: var(--eh-night, #16213e); font-size: 28px; font-weight: 800; }
.ema-lead { margin: 0; color: #555; }
.ema-notice { padding: 20px; border-radius: 8px; background: #fff6e5; }
.ema-section-title { margin: 0 0 12px; padding: 0; font-size: 18px; font-weight: 700; }
.ema-req, .ema-req-note { color: #d33; font-weight: 400; font-size: 13px; }
.ema-help { margin: 8px 0 0; color: #666; font-size: 13px; }

.ema-plans { margin-bottom: 24px; }
.ema-plan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ema-plan { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid #e9e4e0; border-radius: 8px; background: var(--eh-cream, #fff9f4); }
.ema-plan-name { font-size: 17px; }
.ema-plan-meta { color: #555; }
.ema-plan-price { font-size: 20px; font-weight: 700; color: var(--eh-point, #cf4127); }

.ema-box { margin: 0 0 20px; padding: 20px; border: 1px solid #e2e2e2; border-radius: 8px; }
/* 사이트 기본 스타일이 legend를 화면 밖으로 숨기므로 신청서에서는 다시 보이게 한다. */
.ema .ema-box > legend { position: static; float: left; width: 100%; height: auto; overflow: visible; text-indent: 0; font-size: 18px; line-height: 1.5; }
.ema-box legend + * { clear: both; }
.ema-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 16px; }
.ema-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ema-field--wide { grid-column: 1 / -1; margin-top: 14px; }
.ema-field > span { font-weight: 600; font-size: 14px; }
.ema input[type=text], .ema input[type=tel], .ema input[type=email], .ema input[type=date], .ema input[type=number], .ema select, .ema textarea {
    width: 100%; box-sizing: border-box; height: 42px; padding: 0 10px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font-size: 15px;
}
.ema textarea { height: auto; padding: 10px; resize: vertical; }
.ema-range { display: flex; align-items: center; gap: 8px; }
.ema-range input { flex: 1; }
.ema-radios, .ema-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; min-height: 42px; align-items: center; }
.ema-radios label, .ema-checks label { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; cursor: pointer; }

.ema-box--offday { border-color: #f3c9bd; background: var(--eh-cream, #fff9f4); }
.ema-days label { min-width: 52px; justify-content: center; padding: 8px 10px; border: 1px solid #e2dcd8; border-radius: 8px; background: #fff; }
.ema-days label:has(input:checked) { border-color: var(--eh-point, #cf4127); background: var(--eh-point-soft, #fff1ea); color: var(--eh-point-dark, #b23519); font-weight: 700; }
.ema-consent { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0 0 12px; padding: 14px; border-radius: 6px; background: #f6f6f6; font-size: 14px; }
.ema-consent dt { font-weight: 600; }
.ema-consent dd { margin: 0; }
.ema-agree { display: flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.ema-captcha { margin: 0 0 12px; }

.ema-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ema-actions { margin-top: 20px; text-align: center; }
.ema-submit { display: inline-block; min-width: 220px; padding: 14px 24px; border: 0; border-radius: 8px; background: var(--eh-point, #cf4127); color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ema-submit:disabled { opacity: .6; cursor: default; }
.ema-steps { margin: 24px 0; padding: 0; list-style: none; }
.ema-steps li { margin-bottom: 10px; padding: 14px; border-radius: 8px; background: #fafafa; }
.ema-steps strong { margin-right: 8px; }
.ema--done { text-align: left; }

@media (max-width: 600px) {
    .ema { margin-top: 24px; }
    .ema-title { font-size: 23px; }
    .ema-box { padding: 16px; }
    .ema-consent { grid-template-columns: 1fr; }
    .ema-submit { width: 100%; }
}
