/* =========================
   Global reset / base
   ========================= */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* 기본 리스트 간격 */
li {
    line-height: 24px;
}

/* 이미지 공통 반응형 */
.responsive {
    max-width: 100%;
    height: auto;
}

/* =========================
   레이아웃: 카드 + 컨택트 폼
   ========================= */

/* 전체 래퍼: 모바일 우선(세로), 데스크탑에서 좌우로 */
.contact-wrapper {
    display: flex;
    flex-direction: column;   /* 모바일: 위아래로 쌓기 */
    gap: 24px;
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 12px;
}

/* 왼쪽 소개 박스(카드) - 공통 */
.started {
    background-color: #eee;
    margin: 10px 0;
    padding: 24px 28px;
    border-radius: 8px;
}

/* 카드 내부 텍스트 */
.started_info {
    margin: 10px 0;
    width: 100%;
}

.text_body {
    line-height: 24px;
    margin: 0 30px 0 10px;
}

.text_body .red {
    color: red;
}

/* 오른쪽 폼 영역 - 공통(모바일에서는 100%) */
.contact_us {
    width: 100%;
    overflow: hidden;
}

/* ===== 데스크탑(769px 이상)에서 좌우 2컬럼 배치 ===== */
@media (min-width: 769px) {

    .contact-wrapper {
        flex-direction: row;          /* 가로 배치 */
        align-items: flex-start;
        justify-content: space-between;
        padding: 0;                   /* 데스크탑에서는 좌우 여백을 wrapper 밖에서 처리 */
        gap: 32px;
    }


}

/* =========================
   Contact 모듈 기본 스타일
   ========================= */

.contactTitle {
    overflow: hidden;
    margin: 20px 0 30px;
    padding: 0 0 8px;
    border-bottom: 1px solid #e1e1e1;
    zoom: 1;
}

.contactTitle h2 {
    float: left;
    margin: 0;
    padding: 0;
    color: #1e2831;
    font-family: Verdana, sans-serif;
    font-size: 16px;
}

.contactTitle a {
    float: right;
    padding-left: 14px;
    background: url('../img/iconSetup.gif') no-repeat 0 0 transparent;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
}

#terms .termsTitle,
.termsTitle {
    margin: 0 0 18px;
    color: #444;
    font-size: 12px;
}

#terms .termsTitle h3 {
    margin: 0;
    font-size: 12px;
}

#terms {
    overflow: hidden;
    width: 100%;
    margin-bottom: 30px;
    text-align: justify;
}

#terms-main p {
    margin-bottom: 6px;
    font-size: 11px;
}

#agree_check {
    padding: 10px 0 0 0;
    margin: 10px 0 0 0;
    border-top: 1px dotted #ccc;
}

#agree_check input {
    margin: 2px 9px 0;
}

#agree_check span {
    padding-left: 8px;
    vertical-align: top;
}

#contact_form {
    margin: 20px 0 0;
}

/* 폼 상단 타이틀 바 */
.formTitle {
    min-width: 100%;
    margin: 0 0 15px;
    padding: 0 0 8px 24px;
    border-bottom: 1px solid #e6e6e6;
    background: url(../img/icon2.gif) no-repeat 0 0;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
}

.formTitle p {
    margin: 0;
}

.formTitle p img {
    padding-left: 6px;
    vertical-align: middle;
}

/* 폼 컨테이너 */
#formComponents {
    position: relative;
    width: 100%;
}

#formComponents::after {
    content: "";
    display: block;
    clear: both;
}

#formComponents dl,
#formComponents dt,
#formComponents dd {
    margin: 0;
    padding: 0;
}

#formComponents dl {
    margin: 0 0 22px;
}

#formComponents dt {
    margin-bottom: 6px;
    font-weight: bold;
}

#formComponents dt img {
    margin-left: 4px;
    vertical-align: middle;
}

#formComponents dd ul {
    overflow: hidden;
    margin: 0;
    padding: 0;
    zoom: 1;
}

#formComponents dd ul li {
    float: left;
    margin: 0;
    margin-right: 8px;
    padding: 0;
    list-style: none;
}

#formComponents dd ul li input {
    margin: 1px 4px 0 0;
    *vertical-align: middle\9;
    _vertical-align: top;
}

#formComponents dd ul li label {
    color: #62676a;
}

/* 텍스트/텍스트에어리어 폭 – 폼 영역 100% 채우도록 */
#formComponents input.text {
    width: 100%;
    max-width: 100%;
}

#formComponents textarea {
    width: 100%;
    height: 80px;
    font-size: 11px;
}

.comment_textarea textarea {
    width: 100%;
    height: 152px !important;
    font-size: 11px;
}

textarea {
    width: 100%;
}

/* 필수 필드 block */
.mandatory_field {
    position: relative;
    display: block;
    width: 100%;
}

.mandatory_field::after {
    content: "";
    display: block;
    clear: both;
}

/* 필드셋 / 성공 메시지 등 */
fieldset {
    border: 0;
    padding-left: 0;
    padding-right: 6px;
}

#success_form {
    margin-top: 20px;
}

#link_back_contact {
    margin-top: 20px;
}

#link_back_contact a {
    color: black;
}

.subject {
    width: 250px;
}

/* 폼 하단 Send 버튼 영역 */
.send {
    text-align: center;
}

/* 메일 내용 리스트 */
#mail_content ul {
    margin: 0;
    padding: 0;
}

#mail_content li {
    margin: 0 0 5px;
    list-style: none;
}

#mail_content li .mail_var_title {
    margin-right: 5px;
}

/* 이용 약관 박스 */
#terms-main {
    border: 1px solid #ddd;
    padding: 15px 15px 10px 15px;
    border-radius: 5px;
    background: #f8f8f8;
    margin-bottom: 15px;
}

.termsText {
    max-height: 200px;
    overflow: auto;
}

.text-center {
    text-align: center;
}

/* 공통 버튼 스타일 */
.p-btn {
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.428571429;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    color: #fff;
    background-color: #cc4036;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
}