/* style/contact.css */

.contact-section {
    padding: 40px 0;
    background-color: #fff;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.2em;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-form, .contact-info {
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.contact-form h3, .contact-info h3 {
    margin-top: 0;
    color: #007bff;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
}

.contact-info strong {
    margin-right: 10px;
}

#map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

.checkbox-container {
    display: flex; /* 체크박스와 텍스트를 같은 줄에 배치 */
    align-items: center; /* 세로 중앙 정렬 */
    margin-bottom: 10px; /* 아래 여백 추가 */
}

.checkbox-container input[type="checkbox"] {
    width: 20px; /* 체크박스 너비 */
    height: 20px; /* 체크박스 높이 */
    margin-right: 10px; /* 체크박스와 텍스트 사이 여백 */
    flex-shrink: 0; /* 체크박스가 줄어들지 않도록 */
}

.checkbox-container label {
    margin-bottom: 0; /* 기본 label 마진 제거 */
    display: inline; /* label을 인라인으로 변경 */
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Center vertically and horizontally */
    padding: 40px;
    border: 1px solid #888;
    width: 80%; /* Could be more specific */
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
}

.modal-content h3 {
    color: #007bff;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

.modal-button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.modal-button:hover {
    background-color: #0056b3;
}