/* 애니메이션 */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    90% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* 메시지 알림 */
.message-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 15px 30px;
    border: 1px solid;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: fadeInOut 3s ease-in-out;
}

.message-notification.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.message-notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* 관리자 버튼 */
.admin-btn {
    padding: 8px 16px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
}

.admin-btn-container {
    margin-top: 15px;
}

/* FAQ 스타일 */
.faq-empty-message {
    text-align: center;
    padding: 50px;
    color: #666;
}

.faq-question-clickable {
    cursor: pointer;
}

.faq-toggle-no-pointer {
    pointer-events: none;
}

.faq-answer {
    display: none;
    padding: 18px 28px 22px;
    background-color: #FAFBFD;
    border-top: 1px solid #ECEFF4;
}

.faq-answer p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.faq-admin-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.faq-edit-btn {
    padding: 6px 12px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.faq-delete-btn {
    padding: 6px 12px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.faq-delete-form {
    display: inline;
    margin: 0;
}

/* Contact Section */
.contact-phone-link {
    color: inherit;
    text-decoration: none;
}

/* PC/모바일 디스플레이 제어 */
.desktop-only {
    display: flex;
}

/* Hero Section */
.hero-section {
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
    background-color: #14213D;
    background-image: url('/image/heroBg-48e6045b71c3803d98add7ffd1400015.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero-bg-shape {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 130px 80px;
    display: flex;
    align-items: center;
}

.hero-text {
    flex: 1;
}

.hero-illustration {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 40px;
}

.hero-illustration img {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: block;
}

.hero-title {
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin: 0 0 36px 0;
    letter-spacing: -0.5px;
}

.hero-title-accent {
    color: #F4D120;
    font-weight: 800;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.hero-btn-mail {
    background-color: #F4D120;
    color: #1A2D52;
}

.hero-btn-mail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(244, 209, 32, 0.35);
    filter: brightness(1.05);
}

.hero-btn-storage {
    background-color: #2D6BC4;
    color: #ffffff;
}

.hero-btn-storage:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(45, 107, 196, 0.4);
    filter: brightness(1.08);
}


/* ============================================
   우측 상단 고정 상담 버튼 (PC/모바일 모두 표시)
   ============================================ */
.fixed-consult-buttons {
    position: fixed;             /* 화면에 고정 (스크롤해도 위치 유지) */
    display: flex;               /* Flexbox 사용 */
    flex-direction: column;      /* 세로 배치 (카톡상담, 전화상담 순서로) */
    right: 15px;                 /* PC 기본값: 오른쪽에서 15px */
    top: 120px;                  /* PC 기본값: 헤더 아래 120px */
    gap: 8px;                    /* 버튼 간 간격 8px */
    z-index: 50;                 /* 헤더(z-index: 100)보다는 낮지만 다른 요소보다 높게 */
}

/* 모바일용 고정 버튼 스타일 - 박스 형태 */
.fixed-consult-btn {
    background-color: #ffffff;   /* 기본 흰색 배경 */
    border: none;                /* 테두리 없음 */
    border-radius: 0;            /* 모서리 각지게 */
    padding: 14px 12px;          /* 내부 여백 */
    display: flex;
    flex-direction: column;      /* 세로 배치: 아이콘 위, 텍스트 아래 */
    align-items: center;
    justify-content: center;
    gap: 8px;                    /* 아이콘과 텍스트 간격 */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    width: 110px;                /* 고정 너비 */
    min-height: 100px;           /* 최소 높이 */
}

/* 카카오톡 상담 버튼 - 노란색 배경 */
.fixed-consult-btn.kakao-btn {
    background-color: #FEE500;   /* 카카오톡 노란색 */
}

.fixed-consult-btn.kakao-btn span {
    color: #392020;              /* 어두운 갈색 텍스트 */
}

/* 전화 상담 버튼 - 회색 배경 */
.fixed-consult-btn.call-btn {
    background-color: #E8E8E8;   /* 밝은 회색 배경 */
    display: none;               /* PC에서는 숨김 */
}

.fixed-consult-btn.call-btn span {
    color: #333333;              /* 어두운 회색 텍스트 */
}

/* 버튼 호버 효과 */
.fixed-consult-btn:hover {
    transform: scale(1.05);      /* 살짝 확대 */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* 아이콘 크기 */
.fixed-consult-btn img {
    width: 45px;                 /* 아이콘 크기 줄임 */
    height: 45px;
    object-fit: contain;
    display: block;
}

/* 텍스트 스타일 */
.fixed-consult-btn span {
    font-size: 14px;
    font-weight: 700;
    transition: none;
}

/* Features Section */
.features-section {
    background-color: #ffffff;
}

.features-section .section-title-icon {
    width: 36px;
    height: 36px;
    vertical-align: middle;
    margin-right: 10px;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .features-section .section-title-icon {
        width: 28px;
        height: 28px;
    }
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 장점 카드 */
.feature-card {
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
}

/* 애니메이션 활성화 시 */
.feature-card.animate {
    animation: slideUpFade 0.8s ease-out forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 장점 이미지 디자인 */
.feature-card img {
    width: 300px;
    height: 300px;
    margin: 0 auto 16px;
    display: block;
    object-fit: contain;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background-color: #f0f4f8;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 10px;
}

.feature-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

.feature-text .highlight {
    color: #2168A3;
    background-color: #E3F2FD;  /* 밝은 파란색 형광펜 효과 */
    padding: 0.5px 3px;            /* 글자 주변 여백 */
    border-radius: 3px;          /* 둥근 모서리 */
    font-weight: bold;           /* 볼드 처리 */
}

/* 모바일 전용 줄바꿈 - PC에서는 숨김 */
.mobile-br {
    display: none;
}

/* FAQ Section */
.faq-section {
    background-color: #F8F9FB;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(26, 51, 83, 0.04);
    border: 1px solid #ECEFF4;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(26, 51, 83, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    cursor: pointer;
    gap: 16px;
}

.faq-q-text {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1a3353;
}

.faq-q-prefix {
    color: #1a3353;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-toggle {
    background-color: #EAF1FA;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1a3353;
    flex-shrink: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.faq-chevron {
    display: block;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-toggle:hover {
    background-color: #d6e4f3;
}

/* Contact Section */
.contact-section {
    background-color: #ffffff;
}

.contact-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-item {
    padding: 22px 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid #E7E7E7;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item.animate {
    animation: slideUpFade 0.6s ease-out forwards;
}

.contact-item-clickable {
    cursor: pointer;
}

.contact-icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a3353;
    margin-bottom: 6px;
}

.contact-info p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.contact-note {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.contact-chevron {
    color: #1a3353;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1.5px solid #C7CDD6;
    border-radius: 50%;
    padding: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-item-clickable:hover .contact-chevron {
    border-color: #1a3353;
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* PC/모바일 디스플레이 전환 */
    .desktop-only {
        display: none !important;
    }

    /* Hero Section 모바일 */
    .hero-section {
        min-height: auto;
    }

    .hero-content {
        padding: 80px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .hero-illustration {
        margin-left: 0;
        justify-content: center;
    }

    .hero-illustration img {
        max-width: 280px;
    }


    /* ============================================
       모바일 화면 (768px 이하) - 고정 상담 버튼 위치 및 크기 조정
       우측 상단에 박스 형태로 배치
       ============================================ */
    .fixed-consult-buttons {
        right: 10px;             /* 모바일: 오른쪽에서 10px */
        top: 100px;              /* 모바일: 헤더 아래 100px */
        gap: 8px;                /* 모바일: 버튼 간격 8px */
    }

    .fixed-consult-btn {
        padding: 12px 10px;      /* 모바일 패딩 더 줄임 */
        width: 90px;             /* 모바일 너비 더 줄임 */
        min-height: 85px;        /* 모바일 높이 더 줄임 */
        gap: 6px;                /* 아이콘-텍스트 간격 줄임 */
    }

    /* 모바일에서는 전화 버튼도 표시 */
    .fixed-consult-btn.call-btn {
        display: flex;           /* 모바일에서는 표시 */
    }

    .fixed-consult-btn img {
        width: 38px;             /* 모바일 아이콘 크기 더 줄임 */
        height: 38px;
    }

    .fixed-consult-btn span {
        font-size: 12px;         /* 모바일 텍스트 크기 줄임 */
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature-card {
        padding: 20px 10px;
    }

    .feature-card img {
        width: 150px;
        height: 150px;
    }

    .feature-text {
        font-size: 14px;
    }

    /* 모바일에서는 mobile-br 표시 */
    .mobile-br {
        display: inline;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .faq-list {
        max-width: 100%;
        gap: 10px;
    }

    .faq-question {
        padding: 18px 18px;
        gap: 12px;
    }

    .faq-q-text {
        font-size: 14px;
        gap: 8px;
    }

    .faq-answer {
        padding: 14px 18px 18px;
    }

    .contact-list {
        max-width: 100%;
    }

    .contact-item {
        padding: 18px 16px;
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .contact-icon-img {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .contact-info {
        flex: 1;
    }

    .contact-info h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .contact-info p {
        font-size: 13px;
    }

    .contact-note {
        font-size: 11px;
    }

    .contact-arrow-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
}

/* 초소형 모바일 (Z폴드 외부 화면) */
@media (max-width: 400px) {
    .fixed-consult-buttons {
        width: 60px;
        right: 5px;
        top: 100px;
    }

    .fixed-consult-btn {
        font-size: 10px;
        padding: 8px 5px;
        width: 60px;
        min-height: 65px;
        gap: 4px;
    }

    .fixed-consult-btn img {
        width: 28px;
        height: 28px;
    }

    .fixed-consult-btn span {
        font-size: 9px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .feature-card {
        padding: 15px 8px;
    }

    .feature-card img {
        width: 120px;
        height: 120px;
    }

    .feature-text {
        font-size: 11px;
        line-height: 1.4;
    }

    .main-content section {
        padding: 40px 15px;
    }

    .hero-section {
        padding: 60px 15px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 13px;
    }
}