/* ============================================
   견적 문의 페이지
   - layout.css, componets.css 클래스 활용
   - 모바일 반응형 대응
   ============================================ */

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

@keyframes inquiry-scale-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes inquiry-icon-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .inquiry-title,
    .inquiry-desc,
    .customer-center,
    .customer-info-item,
    .online-consult-btn { animation: none !important; }
}

/* ---------- 페이지 컨테이너 ---------- */
.inquiry-container {
    margin: 40px auto 60px;
    max-width: 800px;
}

.inquiry-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 12px;
    animation: inquiry-fade-in-up 0.55s ease-out both;
}

.inquiry-desc {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
    animation: inquiry-fade-in-up 0.55s ease-out 0.1s both;
}

/* ---------- 고객센터(연락처) 섹션 ---------- */
.customer-center {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    animation: inquiry-fade-in-up 0.6s ease-out 0.15s both;
}

.customer-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: inquiry-gradient-shift 3s ease infinite;
}

@keyframes inquiry-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.customer-center-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

/* 연락처 아이템 순차 등장 */
.customer-info-item:nth-child(1) { animation: inquiry-fade-in-up 0.5s ease-out 0.35s both; }
.customer-info-item:nth-child(2) { animation: inquiry-fade-in-up 0.5s ease-out 0.45s both; }
.customer-info-item:nth-child(3) { animation: inquiry-fade-in-up 0.5s ease-out 0.55s both; }

/* ---------- 고객 정보 영역 ---------- */
.customer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.customer-info-item {
    text-align: center;
    background: #ffffff;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.customer-info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.customer-info-item:hover .customer-info-icon {
    animation: inquiry-icon-pop 0.4s ease-out;
}

.customer-info-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.customer-info-label {
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.customer-info-value {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.customer-info-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
}

.customer-info-link:hover {
    color: #556cd6;
    background-color: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

/* ---------- 온라인 상담 버튼 (카카오 / 네이버 톡톡) ---------- */
.customer-center .row.gap-12 .online-consult-btn:nth-child(1) { animation: inquiry-scale-in 0.45s ease-out 0.65s both; }
.customer-center .row.gap-12 .online-consult-btn:nth-child(2) { animation: inquiry-scale-in 0.45s ease-out 0.75s both; }

.online-consult-btn {
    flex: 1;
    min-width: 200px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #fee500 0%, #fdd835 100%);
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.online-consult-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.online-consult-btn:hover::before {
    left: 100%;
}

.online-consult-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 229, 0, 0.4);
}

.online-consult-btn:active {
    transform: translateY(0);
}

.online-consult-btn.naver-btn {
    background: linear-gradient(135deg, #03C75A 0%, #02B350 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(3, 199, 90, 0.3);
}

.online-consult-btn.naver-btn:hover {
    box-shadow: 0 6px 20px rgba(3, 199, 90, 0.4);
}

.consult-btn-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* ========== 모바일 반응형 (768px 이하) ========== */
@media (max-width: 768px) {
    .inquiry-container {
        margin: 24px auto 40px;
        padding: 0 10px;
    }

    .inquiry-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .inquiry-desc {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    .customer-center {
        padding: 40px 20px;
    }

    .customer-center-title {
        font-size: 1.4rem;
        margin-bottom: 28px;
    }

    .customer-info {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 28px;
    }

    .customer-info-item {
        padding: 16px 12px;
    }

    .customer-info-icon {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .customer-info-label {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    .customer-info-value {
        font-size: 0.9rem;
    }

    /* 버튼 영역: 세로 배치, 전체 너비 */
    .customer-center .row.gap-12 {
        flex-direction: column;
        gap: 12px;
    }

    .online-consult-btn {
        min-width: 0;
        width: 100%;
        padding: 16px 20px;
        font-size: 1rem;
    }

    .consult-btn-icon {
        width: 22px;
        height: 22px;
    }
}
