/* ==========================================================
   [online_consult.css] 온라인 상담 신청 페이지 전용 스타일
========================================================== */
:root {
    --lawsee-primary: #00796b; 
    --lawsee-grey-bg: #f4f7f6;
    --lawsee-text-dark: #333;
    --lawsee-text-light: #777;
}

body { margin: 0; padding: 0; background-color: var(--lawsee-grey-bg); font-family: 'Pretendard', sans-serif; }

.main-header { max-width: 1100px; margin: 0 auto; padding: 15px 20px; background: #fff; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.logo-area img { height: 40px; }

.consult-wrap { padding: 60px 20px; }
.consult-container { max-width: 760px; margin: 0 auto; background: #ffffff; padding: 50px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.consult-header { text-align: center; margin-bottom: 45px; }
.consult-header h2 { font-size: 32px; color: #1a1a1a; margin-bottom: 12px; letter-spacing: -0.5px; font-weight: 700;}
.consult-header p { font-size: 16px; color: var(--lawsee-text-light); line-height: 1.6; }

/* ★ 지정 상담 시 뜨는 안내 박스 스타일 */
.target-expert-box { display: none; background: #f0fdf4; border: 1px solid #27ae60; padding: 20px; border-radius: 12px; margin-bottom: 30px; text-align: center; }
.target-expert-box strong { font-size: 18px; color: #27ae60; }
.target-expert-box .sub-notice { font-size: 13px; color: #666; margin-top: 8px; line-height: 1.4; }

.job-tabs { display: flex; gap: 12px; margin-bottom: 45px; }
.job-tab { flex: 1; padding: 16px 0; border: 1.5px solid #eee; border-radius: 12px; text-align: center; font-size: 17px; font-weight: 600; color: #888; background: #fff; cursor: pointer; transition: all 0.3s ease; }
.job-tab:hover { background: #f9f9f9; border-color: #ddd; }
.job-tab.active { background: var(--lawsee-primary) !important; color: #fff !important; border-color: var(--lawsee-primary) !important; box-shadow: 0 4px 12px rgba(0, 79, 107, 0.2); font-weight: 700 !important; transform: translateY(1px); }

.form-group { margin-bottom: 35px; text-align: left; }
.form-group label { display: block; font-size: 16px; font-weight: 700; color: var(--lawsee-text-dark); margin-bottom: 12px; }
.req { color: #ff5252; font-size: 13px; margin-left: 5px; vertical-align: middle; }
.opt { color: #aaa; font-size: 13px; margin-left: 5px; font-weight: 400; }
.guide-txt { font-size: 13.5px; color: #999; margin-top: 10px; display: block; line-height: 1.5; }

.form-control { width: 100%; padding: 16px 20px; border: 1px solid #e0e0e0; border-radius: 12px; font-size: 16px; box-sizing: border-box; background: #fafafa; transition: all 0.2s; font-family: inherit; }
.form-control:focus { border-color: var(--lawsee-primary); background: #fff; box-shadow: 0 0 0 4px rgba(0,121,107,0.05); outline: none; }
textarea.form-control { min-height: 250px; line-height: 1.8; resize: vertical; }

.file-wrap { display: flex; flex-direction: row; gap: 8px; align-items: center; }
#file-name-display { flex: 1; }
.btn-file { background: #fff; color: var(--lawsee-primary); border: 1px solid var(--lawsee-primary); padding: 0 16px; height: 54px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.btn-file:hover { background: var(--lawsee-primary); color: #fff; }
.file-hidden { display: none; }

.agree-box { background: #f8fbfb; padding: 22px; border-radius: 12px; margin: 40px 0; border: 1px solid #e1e9e8; display: flex; align-items: center; justify-content: center; gap: 8px; }
.agree-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14.5px; color: #555; margin: 0; }

.submit-wrap { display: flex; gap: 15px; }
.btn-cancel, .btn-submit { padding: 20px 0; font-size: 18px; font-weight: 700; border-radius: 15px; cursor: pointer; border: none; flex: 1; transition: all 0.3s; }
.btn-cancel { background: #f0f0f0; color: #777; }
.btn-submit { background: #1a1a1a; color: #fff; }
.btn-submit:hover { background: var(--lawsee-primary); transform: translateY(-2px); }

.lawsee-modal-open-btn { background: none; border: none; padding: 0; color: var(--lawsee-text-light); text-decoration: underline; cursor: pointer; font-size: 14px; transition: color 0.2s; white-space: nowrap; flex-shrink: 0; }
.lawsee-modal-open-btn:hover { color: var(--lawsee-primary); }
.mobile-only { display: none; }

@media screen and (max-width: 600px) {
    .consult-wrap { padding: 20px 10px; }
    .consult-container { padding: 25px 15px; border-radius: 12px; }
    .consult-header h2 { font-size: 24px; }
    .consult-header p { font-size: 14px; word-break: keep-all; line-height: 1.5; }
    .job-tabs { gap: 6px; }
    .job-tab { padding: 12px 0; font-size: 14px; border-radius: 8px; }
    .submit-wrap { gap: 10px; }
    .btn-cancel, .btn-submit { padding: 15px 0; font-size: 15px; border-radius: 10px; letter-spacing: -0.5px; }
    .agree-label { font-size: 13px; line-height: 1.4; }
    .mobile-only { display: block; }
}

