/* ========== apply.css ========== */
/* 문의하기(/board/apply) 화이트 미니멀 플랫 — style.css/style_mob.css의 구 #apply_wrap 규칙 대체 */

/* 카드 없이 흰 배경 플랫 풀폭 리스트형 */
#apply_wrap form {
    width: 830px;
    max-width: 100%;
    margin: 0 auto;
}

#apply_wrap form .tit {
    font-size: 25px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 50px;
}

/* 2열 그리드 */
#apply_wrap form ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 36px;
}

#apply_wrap form ul li {
    width: calc((100% - 36px)/2);
}

#apply_wrap form ul li:last-child {
    width: 100%;
}

/* 라벨 + 필수 도트 */
#apply_wrap form ul li p {
    position: relative;
    width: fit-content;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

#apply_wrap form ul li p:after {
    content: '';
    position: absolute;
    right: -8px;
    top: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ef4444;
}

/* 인풋 공통 */
#apply_wrap form ul li input,
#apply_wrap form ul li select,
#apply_wrap form ul li textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    font-weight: 500;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#apply_wrap form ul li input,
#apply_wrap form ul li select {
    height: 56px;
    padding: 0 18px;
}

#apply_wrap form ul li textarea {
    height: 180px;
    padding: 16px 18px;
    resize: vertical;
}

#apply_wrap form ul li input::placeholder,
#apply_wrap form ul li textarea::placeholder {
    color: #94a3b8;
}

/* 포커스 글로우 링 */
#apply_wrap form ul li input:focus,
#apply_wrap form ul li select:focus,
#apply_wrap form ul li textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

/* select 화살표: 인라인 SVG */
#apply_wrap form ul li select {
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center #fff;
    padding-right: 44px;
}

#apply_wrap form ul li select:invalid {
    color: #94a3b8;
}

/* 제출 버튼 */
#apply_wrap form button {
    display: block;
    width: 210px;
    height: 56px;
    margin: 44px auto 0;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(37,99,235,.2);
    transition: background .2s ease;
}

#apply_wrap form button:hover {
    background: #1d4ed8;
}

/* 모바일 */
@media screen and (max-width:767px){
    #apply_wrap form .tit {
        font-size: 20px;
        padding-bottom: 22px;
        margin-bottom: 32px;
    }

    #apply_wrap form ul {
        gap: 22px;
    }

    #apply_wrap form ul li {
        width: 100%;
    }

    #apply_wrap form ul li p {
        font-size: 15px;
    }

    #apply_wrap form ul li p:after {
        right: -7px;
        width: 4px;
        height: 4px;
    }

    #apply_wrap form ul li input,
    #apply_wrap form ul li select {
        height: 48px;
        padding: 0 15px;
        font-size: 15px;
    }

    #apply_wrap form ul li select {
        background-position: right 15px center;
        padding-right: 38px;
    }

    #apply_wrap form ul li textarea {
        height: 160px;
        padding: 14px 15px;
        font-size: 15px;
    }

    #apply_wrap form button {
        width: 100%;
        max-width: 400px;
        height: 52px;
        margin-top: 36px;
        font-size: 15px;
    }
}

/* ========== tidingsDetail.css ========== */
/* 버튼 영역 사이즈 및 정렬 최적화 */
.detail_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid #e9e9e9;
}

/* 좌우 버튼이 차지할 영역을 동일하게 설정 (대칭 구조) */
.detail_btn .side_btn {
    flex: 1;
    display: flex;
    align-items: center;
}
.detail_btn .side_btn.left {
    justify-content: flex-end;
    padding-right: 20px;
}
.detail_btn .side_btn.right {
    justify-content: flex-start;
    padding-left: 20px;
}

.detail_btn .btn {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.detail_btn .btn:hover {
    color: #003061;
}
.detail_btn .btn i {
    font-size: 18px;
    font-weight: bold;
}
.detail_btn .btn.prev i {
    margin-right: 8px;
}
.detail_btn .btn.next i {
    margin-left: 8px;
}

/* 목록으로 버튼 크기 유지 */
.detail_btn .btn_st01 {
    flex-shrink: 0;
    min-width: 120px;
    text-align: center;
}

/* 에디터 스타일 */
.txt_box.ql-editor {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    min-height: 300px;
    padding: 40px 0;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .detail_btn {
        gap: 10px;
    }
    .detail_btn .side_btn {
        padding: 0;
    }
    .detail_btn .btn {
        font-size: 14px;
    }
    .detail_btn .btn_st01 {
        min-width: 100px;
    }
}

/* ========== notice-content.css ========== */
/* 소식(공지) 본문 공용 스타일 — 클라이언트 상세(tidings-detail)와 관리자 Quill 에디터 양쪽에 로드하여
   작성 화면과 게시 화면이 동일하게 보이도록 함. 모든 규칙은 .ql-editor 하위로 스코프 */

/* Quill 뷰어 기본 (에디터와 동일한 공백/줄바꿈 처리) */
.ql-editor {
    white-space: pre-wrap;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.ql-editor p {
    margin: 0;
}
.ql-editor strong {
    font-weight: 700;
}
.ql-editor em {
    font-style: italic;
}
.ql-editor u {
    text-decoration: underline;
}
.ql-editor a, .ql-snow .ql-editor a {
    color: #003061;
    text-decoration: underline;
}

.ql-editor ul, .ql-editor ol {
    margin: 8px 0;
    padding-left: 1.5em;
}
.ql-editor ul {
    list-style: disc;
}
.ql-editor ol {
    list-style: decimal;
}
.ql-editor li {
    margin: 4px 0;
}

.ql-editor img {
    max-width: 100%;
    height: auto;
}
.ql-editor iframe, .ql-editor .ql-video {
    max-width: 100%;
}

.ql-editor blockquote, .ql-snow .ql-editor blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 4px solid #ddd;
    background: #f7f8fa;
}

/* Quill 정렬/들여쓰기 클래스 */
.ql-editor .ql-align-center {
    text-align: center;
}
.ql-editor .ql-align-right {
    text-align: right;
}
.ql-editor .ql-align-justify {
    text-align: justify;
}
.ql-editor .ql-indent-1 {
    padding-left: 3em;
}
.ql-editor .ql-indent-2 {
    padding-left: 6em;
}
.ql-editor .ql-indent-3 {
    padding-left: 9em;
}
.ql-editor .ql-indent-4 {
    padding-left: 12em;
}
.ql-editor .ql-indent-5 {
    padding-left: 15em;
}
.ql-editor .ql-indent-6 {
    padding-left: 18em;
}
.ql-editor .ql-indent-7 {
    padding-left: 21em;
}
.ql-editor .ql-indent-8 {
    padding-left: 24em;
}

/* 제목 타이포그래피 — 포인트 라인형
   (.ql-snow .ql-editor 셀렉터는 quill.snow.css가 로드되는 관리자 에디터에서도 동일하게 보이도록 우선순위 확보용) */
.ql-editor h1, .ql-snow .ql-editor h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    margin: 40px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #111;
}
.ql-editor h2, .ql-snow .ql-editor h2 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    margin: 32px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #003061;
}
.ql-editor h3, .ql-snow .ql-editor h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    margin: 24px 0 8px;
}
.ql-editor h1:first-child, .ql-editor h2:first-child, .ql-editor h3:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .ql-editor h1, .ql-snow .ql-editor h1 {
        font-size: 22px;
    }
    .ql-editor h2, .ql-snow .ql-editor h2 {
        font-size: 19px;
    }
    .ql-editor h3, .ql-snow .ql-editor h3 {
        font-size: 17px;
    }
}

