@charset "utf-8";


.contact-wrap {
    display: flex;
    height: 100vh;
    width: 100%;
    background: #fff;
}

/* LEFT PANEL */
.contact-left {
    width: 50%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-left img {
    width: 50%;
    opacity: 0.9;
}

/* RIGHT PANEL */
.contact-right {
    width: 50%;
    padding: 60px;
    overflow-y: auto;
}

.contact-right h2 {
    font-size: 26px;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Form */
.form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
}

label span {
    color: red;
}

/* Input 기본 스타일 */
input, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s;
    background: #f9f9f9;
}

input:focus, textarea:focus {
    border-color: #000;
    background: #fff;
    outline: none;
}

.chip.selected {
    background: #000;
    color: #fff;
}

/* Chips */
.chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 8px 14px;
    border-radius: 20px;
    background: #f1f1f1;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

.chip:hover {
    background: #000;
    color: #fff;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 13px;
    background: #000;
    color: #fff;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.submit-btn:hover {
    background: #333;
}

.agree-box {
    margin-top: 20px;
}

.required-dot {
    color: red;
    font-size: 14px;
}

.agree-text {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 15px;
    height: 150px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
    border-radius: 6px;
}

.agree-check {
    margin-top: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agree-check input {
    width: 16px;
    height: 16px;
}

/* 프로젝트 유형 선택 */


.project-types {
    margin-bottom: 20px;
}

.project-types label {
    font-weight: 700;
    font-size: 16px;
}

.project-types .sub-text {
    font-weight: 400;
    color: #888;
    font-size: 14px;
    margin-left: 4px;
}

.type-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.type-btn {
    padding: 12px 20px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
}

.type-btn:hover {
    border-color: #333;
}

.type-btn.active {
     background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.form-slide-wrapper {
    pointer-events: none;
}

.form-slide-wrapper.show {
    pointer-events: auto;
}

/* 프로젝트 유형 전체 영역 클릭 풀기 */
.project-types,
.project-types * {
    pointer-events: auto !important;
}

/* 버튼이 클릭되도록 z-index 올리기 */
.type-btn {
    position: relative;
    z-index: 5;
}


/* 페이지 들어왔을 때 */


.form-slide-wrapper {
    opacity: 0;
    transform: translateX(-80px);   /* 왼쪽에서 등장 */
    transition: all 0.8s ease;
}

/* 애니메이션 완료 상태 */
.form-slide-wrapper.show {
    opacity: 1;
    transform: translateX(0);
}


/* 오류시 빨간테두리 */

/* 기본 상태 */
.input-error {
    border: 1.5px solid #e63946 !important;
    background-color: #fff8f8;
}

.error-msg,
.agree-error-msg {
    color: #e63946;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.label-error {
    color: #e63946 !important;
}

.form-top-error {
    display: none;
    background: #ffe3e3;
    color: #d90429;
    border: 1px solid #ffb3b3;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: white;
    padding: 25px 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    font-size: 16px;
}

.modal-box button {
    margin-top: 15px;
    padding: 8px 18px;
    background: #7d2cff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.modal-overlay.show {
    display: flex;
}

/* 빨간 테두리 */
input.error, textarea.error {
    border: 1.8px solid #ff4d4d !important;
    background: #fff6f6;
}

/* 커스텀 팝업 배경 */
#customPopup {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.25s ease;
    z-index: 9999;
}

/* 오류(error) 상태 */
.type-btn.error {
    border-color: #ff4d4d !important;
    color: #ff4d4d !important;
    background: transparent !important;
    pointer-events: auto !important; /* 클릭 막힘 방지 */
}

.type-btn.active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* 전체 박스는 붉게 강조하지 않음 → UI 깨짐 방지 */
/* 전체 박스 error가 선택을 막지 않도록 */
.project-types.error {
    pointer-events: auto !important;
}
/* 팝업 등장 */
#customPopup.show {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    background: #fff;
    padding: 35px 45px;
    border-radius: 12px;
    text-align: center;
    font-size: 17px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

#popupClose {
    margin-top: 20px;
    padding: 10px 25px;
    background: #7b32f0;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}


.email-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-wrap input,
.email-wrap select {
    flex: none;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}

.email-wrap input {
    width: 180px;
}

.email-wrap select {
    width: 160px;
}

.email-at {
    font-size: 16px;
    font-weight: bold;
}

#emailDomainCustom {
    margin-top: 8px;
    padding: 12px;
    width: 200px;
}

.hide {
    display: none;
}



/* 반응형 */
@media (max-width: 900px) {
    .contact-wrap {
        flex-direction: column;
        height: auto;
    }
    .contact-left,
    .contact-right {
        width: 100%;
        height: auto;
    }
    .contact-left img {
        width: 50%;
        margin: 30px 0;
    }
}
