/* .contact-section {
    padding: 0px 0;
    background-color: #fcfcfc;
} */

/* --- 공통 수정 (중요!) --- */
.contact-flex-container {
    display: flex;
    align-items: flex-start;
    width: 100%;           /* 1500px 고정값 해제 */
    max-width: 1200px;     /* PC 최대 너비 제한 */
    justify-content: space-between;
    margin: 0 auto 100px;  /* 중앙 정렬 추가 */
    gap: 40px;             /* 기본 간격 설정 */
}

/* 왼쪽 정보 영역 */
.contact-info {
    flex: 1; /* 비율 설정 */
}

.contact-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a202c;
}

.contact-subtext {
    font-size: 16px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 30px;
    width: 400px;
    border-bottom: 2px solid #111;
}

.info-details {
    list-style: none;
    padding: 0;
}

.info-details li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: space-between;
}

.info-details .icon {
    font-size: 24px;
}
.info-details .text{
    width: 300px;
}

.info-details .text strong {
    display: block;
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 5px;
}

.info-details .text p {
    color: #4a5568;
    margin: 0;
}

/* 오른쪽 폼 영역 */
.contact-form-container {
    flex: 1.2; /* 폼 영역을 약간 더 넓게 */
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.158);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
}

.form-group input, 
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #3182ce;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background-color: #2c5282;
}

/* 반응형 처리 */
@media (max-width: 992px) {
    .contact-flex-container {
        flex-direction: column; /* 모바일/태블릿에선 위아래로 */
        gap: 50px;
    }
    
    .contact-form-container {
        width: 100%;
    }
}
/* --- 초소형 모바일 반응형 (440px 이하) --- */
@media screen and (max-width: 600px) {
    /* 1. 컨테이너 여백 조정 */
    .contact-flex-container {
        flex-direction: column;
        margin-bottom: 50px;
        padding: 0 15px; /* 좌우 잘림 방지 */
        gap: 30px;
    }

    /* 2. 왼쪽 정보 영역 최적화 */
    .contact-title {
        font-size: 28px; /* 제목 크기 축소 */
        text-align: center;
    }

    .contact-subtext {
        width: 100%;     /* 400px 고정값 해제 */
        font-size: 14px;
        text-align: center;
        padding-bottom: 20px;
    }

    .info-details li {
        flex-direction: column; /* 아이콘과 텍스트 위아래 배치 */
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .info-details .text {
        width: 100%; /* 300px 고정값 해제 */
    }

    /* 3. 오른쪽 폼 영역 최적화 */
    .contact-form-container {
        padding: 25px 20px; /* 내부 여백 축소 */
        width: 100%;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* 그림자 농도 조절 */
    }

    .form-row {
        flex-direction: column; /* '성함'과 '메일주소'를 세로로 */
        gap: 0;                 /* row gap 제거 (form-group의 margin 사용) */
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input, 
    .form-group textarea {
        font-size: 16px; /* iOS 자동 확대 방지 (최소 16px 권장) */
        padding: 10px;
    }

    .submit-btn {
        padding: 18px;   /* 터치하기 편하게 높이 확보 */
        font-size: 17px;
    }
}