#contact-container {
    width: 100%;
    background-color: #111; /* 전체 배경: 어두운 톤 유지 */
    padding: 3em; /* 상하 패딩 늘림 */
    text-align: center;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: #e0e0e0; /* 밝은 회색 텍스트 */
}

#contact-title {
    text-align: center;
    margin-bottom: 3em; /* 제목 아래 여백 */
}

#contact-title h1 {
    font-size: 3em;
    font-weight: bold;
    color: #ffffff; /* 순수 흰색 제목 */
    opacity: 1;
    transform: translateY(0);
}

#contact-content {
    width: 100%; /* 콘텐츠 영역 최대 너비 제한 */
    margin: 0 auto; /* 중앙 정렬 */
    display: flex;
    flex-direction: column;
    gap: 60px; /* 맵 영역과 FAQ 영역 사이 간격 */
}

.location-selector {
    display: flex;
    justify-content: center;
    align-items: center;      /* ✅ 수직 중앙 정렬 */
    gap: 1rem;
    margin: 0.8rem auto;        /* ✅ 상하 여백 및 수평 중앙 */
    height: 100px;            /* ✅ 필요 시 높이 지정 (예: 맵 위 고정 공간 확보) */
}

.radio-option {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: #a0d0ff;
    padding: 8px 18px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.05); /* 어두운 배경과 조화 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + span {
    background-color: rgba(160, 208, 255, 0.15); /* 강조 색상 */
    color: #ffffff;
    border: 1px solid #a0d0ff;
    padding: 8px 18px;
    border-radius: 20px;
}

/* 맵 영역 스타일 */
.post-card {
    width: 100%;
    height: 500px; /* 맵 영역 높이 */
    background-color: #222; /* 맵 영역 배경 */
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column; /* 내부 요소들을 세로 정렬 */
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    color: #bbb;
    margin-bottom: 2em;
    overflow: hidden;
}

#site-section {
    width: 80%;
    margin: 0 auto;
}

#site-section h2 {
    font-size: 2.2em;
    color: #a0d0ff; /* FAQ 제목 색상 */
    margin-bottom: 1.5em;
    text-align: center; /* FAQ 제목 중앙 정렬 */
}

.post-main {
    width: 100%;
    height: 100%;
}

#map {
    width: 100%;
    height: 100%;
}

.post-content {
    padding: 1em;
    font-size: 1em;
    text-align: center;
    background-color: #1a1a1a;
    width: 100%;
}

.post-phone {
    margin-top: 1em;
    text-align: center;
    font-size: 1.1em;
}

.post-phone a {
    color: #a0d0ff;
    text-decoration: none;
}

.post-phone a:hover {
    text-decoration: underline;
}

.copy-btn {
    margin-left: 0.5em;
    padding: 0.4em 0.8em;
    font-size: 0.9em;
    border: none;
    border-radius: 5px;
    background-color: #a0d0ff;
    color: #111;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: #7ab9f0;
}

/* FAQ 섹션 스타일 */
#faq-section {
    width: 100%;
    text-align: left; /* FAQ 텍스트 왼쪽 정렬 */
}

#faq-section h2 {
    font-size: 2.2em;
    color: #a0d0ff; /* FAQ 제목 색상 */
    margin-bottom: 1.5em;
    text-align: center; /* FAQ 제목 중앙 정렬 */
}

.faq-item {
    background-color: #1a1a1a; /* 각 FAQ 아이템 배경색 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 미세한 테두리 */
    border-radius: 10px;
    margin-bottom: 20px; /* FAQ 아이템 간 간격 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* 내부 내용 넘치지 않도록 */
    transition: all 0.3s ease; /* 호버 및 열림/닫힘 애니메이션 */
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* details 태그의 summary (질문) 스타일 */
.faq-item summary {
    font-size: 1.3em;
    font-weight: bold;
    color: #f0f0f0; /* 질문 텍스트 색상 */
    padding: 20px 25px;
    cursor: pointer;
    outline: none; /* 클릭 시 아웃라인 제거 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.faq-item summary:hover {
    background-color: #222; /* 호버 시 배경색 변경 */
}

/* summary의 기본 화살표 아이콘 제거 및 커스텀 아이콘 추가 */
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::marker {
    display: none;
}
.faq-item summary::after {
    content: '▶'; /* 닫혔을 때 화살표 */
    font-size: 0.8em;
    color: #a0d0ff;
    transition: transform 0.2s ease-in-out;
    margin-left: 15px;
}

/* details가 열렸을 때 summary (질문) 스타일 */
.faq-item[open] summary {
    background-color: #2a2a2a; /* 열렸을 때 배경색 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* 열렸을 때 하단 구분선 */
}

.faq-item[open] summary::after {
    content: '▼'; /* 열렸을 때 화살표 */
    transform: rotate(0deg);
}

/* FAQ 답변 스타일 */
.faq-answer {
    padding: 15px 25px 25px 25px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #bbb; /* 답변 텍스트 색상 */
    /* 답변 내용이 스르륵 나타나도록 하는 애니메이션 (선택 사항) */
    animation: fade-in-down 0.3s ease-out;
}

.faq-answer p {
    margin: 0;
}

#apply-section h2 {
    font-size: 2.2em;
    color: #a0d0ff; /* FAQ 제목 색상 */
    margin-bottom: 1.5em;
    text-align: center; /* FAQ 제목 중앙 정렬 */
}

.quote-container {
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.quote-block {
    position: relative;
    font-size: 1.8rem;
    line-height: 1.6;
    width: 100%;
    padding: 2rem 2.5rem;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.quote-block::before,
.quote-block::after {
    content: "";
    position: absolute;
    font-size: 4.5rem;
    color: #f1efe6;
    font-family: serif;
    pointer-events: none;
    line-height: 1;
    z-index: 0;
}

.quote-block::before {
    content: "“";
    top: 1rem;
    left: -1.2rem;
}

.quote-block::after {
    content: "”";
    bottom: -4.5rem;  /* ✅ 글 아래에 배치 */
    right: -3.2rem;
}

#process-section h2 {
    font-size: 2.2em;
    color: #a0d0ff; /* FAQ 제목 색상 */
    margin-bottom: 1.5em;
    text-align: center; /* FAQ 제목 중앙 정렬 */
}

.selection-process {
    color: #fff;
    text-align: center;
    padding: 0 1rem;
    font-family: 'Pretendard', sans-serif;
}

.step-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 170px;
    margin-bottom: 1rem;
}

.step .contact-icon {
    width: 170px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.step .contact-icon img {
    width: 100%;
    height: auto;
}

.step-label {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.step-label span {
    font-weight: 400;
    font-size: 0.9rem;
}

.note-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #333;
    color: #ddd;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin: 0 auto 2rem;
    max-width: 700px;
}

.final-message {
    font-size: 1.1rem;
    font-weight: 500;
}

#card-guide-section h2 {
    font-size: 2.2em;
    color: #a0d0ff; /* FAQ 제목 색상 */
    text-align: center; /* FAQ 제목 중앙 정렬 */
}
.card-guide {
    background-color: #000;
    padding: 3rem 1rem;
    color: #fff;
    text-align: center;
}

.card-guide-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-guide-subtitle {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.card-guide-list {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.card-guide-item {
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-guide-img {
    width: 100%;
    max-width: 360px;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    display: block;
}

.card-guide-caption {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    max-width: 360px;
    word-break: keep-all;
    white-space: normal;
    line-height: 1.6;
}

.card-guide-number {
    width: 40px;
    height: auto;
    flex-shrink: 0;
    transform: translate(15px, -47px);
}

.card-guide-text {
    flex: 1;
    transform: translateY(15px);
}

.card-guide-text h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.card-guide-text p {
    margin: 0;
    font-size: 1rem;
    color: #aaa;
    line-height: 1.5;
}


/* 답변 애니메이션 키프레임 */
@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #contact-title h1 {
        font-size: 2.5em;
    }
    #map-area {
        height: 300px;
    }
    #faq-section h2 {
        font-size: 1.8em;
    }
    .faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .faq-answer {
        font-size: 1em;
        padding: 10px 20px 20px 20px;
    }

    .quote-block {
        font-size: 1.4rem;
        padding: 1.5rem;
    }

    .quote-block::before,
    .quote-block::after {
        font-size: 3.2rem;
    }

    .quote-block::before {
        top: 0;
        left: -1rem;
    }

    .quote-block::after {
        bottom: -2rem;
        right: -2rem;
    }

    .step {
        width: 45%;
    }

    #card-guide-section h2 {
        font-size: 1.5rem;
    }

    .card-guide-list {
        flex-direction: column;
        align-items: center;
    }

    .card-guide-item {
        width: 100%;
        max-width: 600px;
    }

    .card-guide-caption {
        gap: 0.75rem;
    }

    .card-guide-number {
        width: 30px;
    }

    .card-guide-text h3 {
        font-size: 1.1rem;
    }

    .card-guide-text p {
        font-size: 0.95rem;
    }

    .note-wrapper {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    #contact-title h1 {
        font-size: 2em;
    }
    #contact-container {
        padding: 2em 1em;
    }
    #map-area {
        height: 250px;
        font-size: 1em;
    }
    #faq-section h2 {
        font-size: 1.5em;
    }
    .faq-item summary {
        font-size: 1em;
        padding: 12px 15px;
    }
    .faq-answer {
        font-size: 0.9em;
        padding: 8px 15px 15px 15px;
    }

    .quote-block {
        font-size: 1.1rem;
        padding: 1.2rem;
    }

    .quote-block::before,
    .quote-block::after {
        font-size: 2.5rem;
    }

    .quote-block::before {
        top: 0.9rem;
        left: -0.8rem;
    }

    .quote-block::after {
        bottom: -1.9rem;
        right: -0.8rem;
    }

    .step {
        width: 100%;
    }

    .step .icon {
        width: 80px;
        height: 80px;
        border-width: 6px;
    }

    .step .icon img {
        width: 36px;
        height: 36px;
    }

    .step-label {
        font-size: 0.95rem;
    }

    .step-label span {
        font-size: 0.85rem;
    }

    .final-message {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .card-guide-title {
        font-size: 1.5rem;
    }

    .card-guide-subtitle {
        font-size: 0.9rem;
    }

    .card-guide-caption {
        flex-direction: row;
        align-items: flex-start;
    }

    .card-guide-text h3 {
        font-size: 1rem;
    }

    .card-guide-text p {
        font-size: 0.85rem;
    }

    .card-guide-number {
        width: 24px;
    }
}

@media screen and (max-width: 380px) {
    #apply-section h2 {
        font-size: 2rem;
    }

    .note-wrapper p {
        font-size: 1.2rem;
    }

    #card-guide-section .card-guide-title {
        font-size: 1.5rem;
    }
}