/* /static/css/contact.css */

#contact-form-section .contact-form-wrapper {
    max-width: 800px; /* 폼 전체 너비 조정 */
    margin: 0 auto;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--white-color);
}

#contact-form-section .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--primary-color);
}

#contact-form-section .form-header .title-decorated {
    margin-bottom: 0; /* 기본 마진 제거 */
    font-size: 1.5rem;
}

#contact-form-section .required-notice {
    font-size: 0.85rem;
    color: var(--light-text-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 기본 2열 그리드 */
    gap: 1.5rem 2rem; /* 행 간격, 열 간격 */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark-text-color);
}

.form-group label .required {
    color: red;
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: var(--font-family);
}

.form-group select {
    appearance: none; /* 기본 화살표 숨기기 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem; /* 화살표 공간 확보 */
}

.form-group textarea {
    resize: vertical; /* 세로 크기만 조절 가능하도록 */
    min-height: 150px;
}

.form-group.full-width {
    grid-column: 1 / -1; /* 2열 전체 차지 */
}

.form-group.terms-agreement {
    display: flex;
    flex-direction: row; /* 가로 정렬 */
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}
.form-group.terms-agreement input[type="checkbox"] {
    width: auto; /* 기본 크기 사용 */
    margin-right: 0.3rem;
}
.form-group.terms-agreement label {
    margin-bottom: 0; /* 레이블 하단 마진 제거 */
    font-weight: normal;
}

.btn-privacy {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 3px;
    text-decoration: none;
}
.btn-privacy:hover {
    background-color: var(--dark-text-color);
    color: var(--white-color);
}

.form-actions {
    margin-top: 2rem;
    text-align: right; /* 보내기 버튼 오른쪽 정렬 */
}

.btn-submit {
    /* 기존 .btn, .btn-primary 스타일 활용 */
    padding: 0.3rem 1.5rem;
    font-size: 1rem;
    display: inline-flex; /* 아이콘과 텍스트를 한 줄에 정렬하고 수직 중앙 정렬하기 위함 */
    align-items: center; /* 수직 중앙 정렬 */
    justify-content: center;
}

/* .btn-submit img 스타일 제거 또는 주석 처리
.btn-submit img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}
*/

.btn-submit .icon-envelope {
    margin-right: 8px; /* 아이콘과 "보내기" 텍스트 사이 간격 */
    font-size: 2.5em;  /* 버튼 텍스트 크기 기준으로 아이콘 크기 조정 (조정 가능) */
    line-height: 1;    /* 아이콘이 줄 높이에 영향을 덜 받도록 */
    /* 색상 등은 버튼 기본 텍스트 색상을 따르거나, 필요시 여기서 지정 */
    /* 예: color: white; (버튼 배경이 어두울 경우) */
}



/* 반응형 스타일 */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr; /* 모바일에서는 1열로 변경 */
        gap: 1rem;
    }
    #contact-form-section .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .form-actions {
        text-align: center; /* 모바일에서 보내기 버튼 중앙 정렬 */
    }
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    .btn-submit {
        width: 100%;
        padding: 0.3rem 1.5rem;
    }
    .btn-submit .icon-envelope {
        margin-right: 6px;
        font-size: 2.5em; /* 모바일에서 아이콘 크기 미세 조정 */
    }
}

