/* contact.css - 연락처 페이지 스타일 */

/* 배경 이미지 */
#contact {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/gpt/g26.png') no-repeat center center/cover;
}

#contact .section-title {
    margin-bottom: 10px;
}

/* 연락처 섹션 스타일 */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
    width: 100%;
    justify-content: space-between;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: calc(50% - 20px);
}

.contact-info h3, .contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* 지도 스타일 */
.map-container {
    width: 100%;
    height: 260px;
    background-color: #eee;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 연락처 상세 정보 */
.contact-details {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details strong {
    color: var(--primary-color);
}

/* 문의 폼 스타일 */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #16233e;
}

/* 위치 탭 */
.location-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.location-tab {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-tab.active {
    background-color: var(--primary-color);
    color: white;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .contact-info, .contact-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info, .contact-form {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .contact-info, .contact-form {
        padding: 20px;
    }
    
    .location-tab {
        padding: 8px 15px;
        font-size: 14px;
    }
}

 /* 폼 스타일 개선 */
 .form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #424D83;
    box-shadow: 0 0 0 3px rgba(66, 77, 131, 0.1);
}

.submit-btn {
    background-color: #424D83;
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #343c68;
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 체크박스 스타일 개선 */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

/* 개인정보 모달 스타일 */
.privacy-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.privacy-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.privacy-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.privacy-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
}

.privacy-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.privacy-content {
    color: #333;
    line-height: 1.6;
}

.privacy-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #424D83;
}

.privacy-content p, 
.privacy-content ul {
    margin-bottom: 15px;
}

.privacy-content ul {
    padding-left: 20px;
}

.privacy-content li {
    margin-bottom: 5px;
}

.privacy-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.agree-btn {
    background-color: #424D83;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.agree-btn:hover {
    background-color: #363f6d;
}

.close-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.close-btn:hover {
    background-color: #e9e9e9;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .privacy-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .privacy-modal-header h3 {
        font-size: 16px;
    }
}