@charset "utf-8";

/*
 * 선생님 입점 신청 (폰 목업 셸 전용)
 *
 * 폼 규격은 회원정보 수정(page/css/edit_info.css)과 동일하게 맞춘다.
 * 원본은 placeholder 만으로 항목을 알리고 인라인 style 로 폭을 잡았는데,
 * 항목 제목(.tit-frm) + 입력창의 2단 구조로 바꾸고 인라인 style 을 걷어냈다.
 * 입력 필드 id 는 counselor_application.js 가 참조하므로 그대로다.
 *
 * ⚠️ 폰 프레임은 높이가 고정이라 키보드가 올라오면 화면이 밀릴 수 있다.
 *    mypage_shell.js 가 visualViewport resize 를 듣고 --app-viewport-height 를
 *    다시 주입하므로 프레임 자체는 따라오지만, 실기기 확인이 필요하다.
 */

.apply-content {
    min-height: calc(var(--phone-visible-height, 740px) - 50px);
    padding: 20px;
    background: #fff;
}

.form_box {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 2단 구조 — 항목 제목 아래로 입력창. 라벨 길이와 무관하게 폭이 320px 로 같다. */
.input_box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tit-frm {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

/* 이름 + 예명처럼 한 줄에 둘 */
.input_box--half {
    flex-direction: row;
    gap: 8px;
}

.input_col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* box-sizing 을 명시하지 않으면 padding 때문에 폭을 넘어 프레임을 벗어난다. */
.input_text,
.input_textrea {
    box-sizing: border-box;
    width: 100%;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-family: Pretendard, sans-serif;
    font-size: 13px;
}

.input_text { height: 40px; }


.input_textrea {
    min-height: 120px;
    padding: 12px;
    line-height: 1.5;
    resize: vertical;
}

.input_text::placeholder,
.input_textrea::placeholder { color: #bbb; }

/* ── 프로필 사진 첨부 ─────────────────────────────── */

/* input[type=file] 은 숨기고 label 을 버튼처럼 쓴다 */
#id_profile_img { display: none; }

.input_file_label {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.input_file_label img { width: 18px; height: 18px; object-fit: contain; }

/* ── 신청 버튼 ────────────────────────────────────── */

.form_box .btn-custom {
    width: 100%;
    height: 44px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: Pretendard, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* 비활성 — 회원정보 수정과 동일 규격 (counselor_v3.css:5555 기준) */
.form_box .btn-custom:disabled {
    background: #d8d8d8;
    border-color: #d8d8d8;
    color: #fff;
    cursor: default;
}

/* ── 분야 드롭다운 ────────────────────────────────
 *
 * 상담사 전용 페이지(counselor_data_dashboard_v3.css:13207 .auto-on-time-*)와
 * 동일한 규격이다. 네이티브 select 는 hidden 으로 남아 값만 담는다.
 * 폭만 320px 고정 대신 100% 로 두어 .form_box 안에서 다른 입력창과 나란히 맞춘다.
 */

.field-dropdown {
    position: relative;
    width: 100%;
    z-index: 4;
}

.field-trigger {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
    color: #9a9a9a;
    font-family: Pretendard, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.field-trigger.has-value {
    color: #313131;
    font-weight: 700;
}

.field-chevron {
    width: 17.6px;
    height: 17.6px;
    flex: 0 0 17.6px;
    fill: none;
    stroke: #7a7a7a;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}

.field-dropdown.is-open .field-trigger { border-radius: 8px 8px 0 0; }
.field-dropdown.is-open .field-chevron { transform: rotate(180deg); }

.field-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 8;
    max-height: 192px;
    display: none;
    overflow-y: auto;
    padding: 0;
    border: 1px solid #e2e2e2;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 8px 14px rgba(0, 0, 0, .10);
    box-sizing: border-box;
    scrollbar-width: none;
}

.field-menu::-webkit-scrollbar { display: none; }

.field-dropdown.is-open .field-menu { display: block; }

.field-menu button {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    color: #555;
    font-family: Pretendard, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.field-menu button:last-child { border-bottom: 0; }

.field-menu button:hover,
.field-menu button:focus-visible,
.field-menu button.is-active {
    outline: none;
    background: #f5f5f5;
    color: #313131;
    font-weight: 700;
}
