/* contact-style.css */



/* CSS 변수 및 기본 설정 */
:root {
    --brand-color: #b50000;
    --brand-color-hover: #9d0000;
    --text-gray-primary: #1f2937;
    --text-gray-secondary: #4b5563;
    --text-gray-light: #d1d5db;
    --text-white: #ffffff;
    --bg-dark: #151515;
    --bg-light: #f9fafb;
    --border-color: #d1d5db;
}

/* =================================================================
   모든 요소의 박스 모델 계산 방식을 표준화
================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

/* =================================================================
   PC 기본 스타일 (1025px 이상)
================================================================= */
body {
    background-color: var(--bg-dark);
    color: var(--text-gray-primary);
    overflow-x: hidden; /* 가로 스크롤 방지 */
}

.main-container {          
    max-width: 72rem;
    width: 100%;
    margin: 120px auto; /* PC용 상하 마진 */
    padding: 0 30px; /* PC용 좌우 여백 */
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem; /* PC용 폰트 크기 */
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
}

.page-description {
    margin-top: 1rem;
    font-size: 1.125rem; /* PC용 폰트 크기 */
    color: var(--text-gray-light);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    word-break: keep-all; /* 단어 단위 줄바꿈 */
}

.contact-card {
    background-color: #fcfaf8;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PC에서는 2단 레이아웃 */
}

.info-section,
.form-section {
    padding: 3rem; /* PC용 내부 여백 */
    min-width: 0; /* 그리드/플렉스 아이템의 최소 너비 초기화 */
}

.info-section h2,
.form-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.info-section .info-description,
.form-section p {
    color: var(--text-gray-secondary);
    margin-bottom: 2.5rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
}

.info-icon-wrapper {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--brand-color);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon-wrapper svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--text-white);
}

.info-text-wrapper {
    margin-left: 1rem;
    word-break: break-all; /* 긴 텍스트 강제 줄바꿈 */
}

.info-text-wrapper h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-top:0px;
    margin-bottom:0px;
}

.info-text-wrapper p, .info-text-wrapper a {
    color: var(--text-gray-secondary);
    text-decoration: none;
    transition: color 0.2s;
    margin-top:0px;
}

.info-text-wrapper a:hover {
    color: var(--brand-color);
    text-decoration: underline;
}

.map-link {
    display: block;
    margin-top: 3rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #d1d5db;
}

.map-image {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.map-link:hover .map-image {
    transform: scale(1.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input, .accordion-header {
    width: 100%; /* overflow 방지 */
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .accordion-header:focus-within {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 2px rgba(181, 0, 0, 0.2);
    outline: none;
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: white;
}

.accordion-header .selected-text {
     color: var(--text-gray-secondary);
}

.accordion-item.active .accordion-content { max-height: 250px; }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    margin-top: 0.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.accordion-options { 
    list-style: none; 
    padding-inline-start: 0px;
}

.accordion-options li {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.accordion-options li:hover { background-color: #fff7ed; }

.arrow-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-gray-secondary);
    transition: transform 0.3s ease-in-out;
}

.accordion-item.active .arrow-icon { transform: rotate(180deg); }

.form-input[type="file"] {
    padding: 0;
    color: var(--text-gray-secondary);
}

.form-input[type="file"]::file-selector-button {
    background-color: var(--brand-color);
    color: var(--text-white);
    font-weight: 500;
    border: none;
    padding: 0.75rem 1rem;
    margin-right: 1rem;
    border-radius: 0.5rem 0 0 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-input[type="file"]::file-selector-button:hover {
    background-color: var(--brand-color-hover);
}

.file-list-container {
    margin-top: -0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray-secondary);
}

.file-list-container ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.file-list-container li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    margin-top: 0.25rem;
    word-break: break-all;
}

.delete-file-btn {
    background: none;
    border: none;
    color: var(--text-gray-secondary);
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    padding: 0 0.25rem;
    margin-left: 0.5rem;
    transition: color 0.2s;
}

.delete-file-btn:hover {
    color: var(--brand-color);
}

.submit-button {
    width: 100%;
    background-color: var(--brand-color);
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--brand-color-hover);
}

.submit-button:disabled {
    background-color: #D1D5DB;
    cursor: not-allowed;
    opacity: 0.7;
}


/* 태블릿 및 모바일 반응형 스타일 (1024px 이하) */
@media (max-width: 1024px) {
    .contact-card {
        display: block; /* Grid 대신 Block으로 변경하여 수직 정렬 */
    }

    .main-container {
        margin: 120px auto;
    }
}

/* 모바일 반응형 스타일 (767px 이하) */
@media (max-width: 767px) {
    .main-container {
        margin: 80px auto;
        padding: 0 20px;
    }
    
    .contact-card {
        margin: 0;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-description {
        font-size: 0.9rem;
    }

    .info-section, .form-section {
        padding: 1.5rem;
    }
}

