/**
 * isystem_new/assets/isys_includes/css/isys_consult_banner.css
 *
 * 상담 배너 섹션 — 정제된 B2B 디자인.
 * 흰 카드 + 좌측 컬러 강조선 + 미세 인터랙션. (트렌디 SaaS 룩 회피)
 */

/* ════════════════════════════════════════════════
   섹션 컨테이너
   ════════════════════════════════════════════════ */
.isys_consult-section {
    position: relative;
    padding: 80px 0 96px;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(0, 102, 204, 0.04) 0%, transparent 40%),
        #f8fafc;
    overflow: hidden;
}
.isys_consult-section::before {
    /* 미세 그리드 텍스처 — 너무 옅게 */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    opacity: 0.6;
}

.isys_consult-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ════════════════════════════════════════════════
   섹션 헤더 (eyebrow + title + subtitle)
   ════════════════════════════════════════════════ */
.isys_consult-section__head {
    text-align: center;
    margin-bottom: 56px;
}
.isys_consult-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #0066cc;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.isys_consult-section__title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
    letter-spacing: 0;
    line-height: 1.35;
}
.isys_consult-section__subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ════════════════════════════════════════════════
   영역 그리드 (좌측 폼 / 우측 카드)
   ════════════════════════════════════════════════ */
.isys_consult-area {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;          /* 좌·우 컬럼 동일 높이로 정렬 */
}

/* ── 좌측 (폼 영역) ── */
.isys_consult-left {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;          /* 안내·간편 동일 높이 */
}
.isys_consult-inquiry,
.isys_consult-simple {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    width: auto;
    animation: consultFadeUp 0.7s ease-out both;
    display: flex;                 /* body 가 부모 높이 채우도록 */
    flex-direction: column;
}
@keyframes consultFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.isys_consult-header {
    background: #0f172a;
    color: #fff;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0;
}
.isys_consult-header i {
    color: #38bdf8;
    font-size: 14px;
}

.isys_consult-body {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
    flex: 1;                         /* 부모(inquiry/simple) 높이 채우기 */
    min-height: 0;
}
.isys_consult-body--ticker { padding: 16px 16px 18px; }
/* 간편 폼 — body 의 flex column 안에서 자식인 form 도 column flex 로 확장,
   textarea 가 잔여 공간 흡수 → 버튼이 항상 박스 바닥에 고정되어 좌·우 컬럼 정렬이 맞음 */
#quickConsultForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
}
#quickConsultForm .isys_consult-textarea {
    flex: 1;
    min-height: 120px;
    resize: none;
}
.isys_consult-body img {
    /* 헤드셋 placeholder 이미지 제거 (정보성 위젯에서 비효율 공간) */
    display: none !important;
}

/* LIVE 인디케이터 (헤더 우측) */
.isys_consult-header { justify-content: space-between; }
.isys_consult-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #67e8a8;
    text-transform: uppercase;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 100px;
    transition: background 0.18s ease, color 0.18s ease;
}
a.isys_consult-live:hover {
    background: rgba(103, 232, 168, 0.15);
    color: #67e8a8;
    text-decoration: none;
}
.isys_consult-live i {
    font-size: 7px;
    color: #22c55e;
    animation: isys_consult-blink 1.6s ease-in-out infinite;
}
@keyframes isys_consult-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* 티커 윈도우 — 고정 높이: 데이터가 늘어도 컨테이너 크기 불변 */
.isys_consult-ticker-window {
    height: 240px;
    flex: none;
    overflow: hidden;
    position: relative;
    margin-top: 4px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* 상담 리스트 — 자동 위로 스크롤 ticker */
.isys_consult-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.isys_consult-list.is-ticker {
    animation: isys_consult-ticker var(--ticker-duration, 30s) linear infinite;
}
.isys_consult-list.is-ticker:hover { animation-play-state: paused; }
@keyframes isys_consult-ticker {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

.isys_consult-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    padding: 11px 4px;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.45;
}
.isys_consult-list .loading {
    color: #94a3b8;
    text-align: center;
    padding: 32px 0;
    border-bottom: 0;
    justify-content: center;
}
.isys_consult-name {
    flex-shrink: 0;
    color: #0066cc;
    font-weight: 700;
    font-size: 12px;
    min-width: 44px;
    letter-spacing: 0;
}
.isys_consult-bullet {
    flex-shrink: 0;
    color: #cbd5e1;
}
.isys_consult-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #334155;
}
.isys_consult-date {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 11.5px;
    white-space: nowrap;
    font-feature-settings: "tnum";
    margin-left: auto;
}

/* 티커 풋터 — 상담사 연결 애니메이션 */
.isys_consult-ticker-footer {
    flex: 1;
    min-height: 76px;
    background: linear-gradient(135deg, #ffffff 0%, #e8f0fb 55%, #d0e2f8 100%);
    border-radius: 8px;
    border: 1px solid #c8daf5;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 14px 20px;
    overflow: hidden;
}

/* 연결 애니메이션 — 사용자 → 점 → 상담사 (좌우 넓게) */
.isys_ctf-anim {
    flex: 1;                    /* 가용 공간 모두 차지 */
    display: flex;
    align-items: center;
    justify-content: space-between;   /* 노드를 양 끝으로 밀어 넓게 배치 */
    gap: 0;
    margin-right: 18px;
}
.isys_ctf-node {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 80, 180, 0.08);
    border: 1px solid rgba(0, 80, 180, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 80, 180, 0.45);
    font-size: 16px;
    flex-shrink: 0;
}
.isys_ctf-node--agent {
    background: rgba(0, 48, 135, 0.13);
    border-color: rgba(0, 48, 135, 0.28);
    color: #003087;
}
.isys_ctf-track {
    flex: 1;                    /* 노드 사이 공간 전부 사용 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.isys_ctf-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 80, 180, 0.20);
    animation: isys_ctf-wave 1.5s ease-in-out infinite;
}
.isys_ctf-dot:nth-child(1) { animation-delay: 0s; }
.isys_ctf-dot:nth-child(2) { animation-delay: 0.28s; }
.isys_ctf-dot:nth-child(3) { animation-delay: 0.56s; }
@keyframes isys_ctf-wave {
    0%, 100% { opacity: 0.22; transform: scale(0.75); }
    45%      { opacity: 1;    transform: scale(1.3); background: rgba(0, 60, 160, 0.75); }
}

/* 텍스트 */
.isys_ctf-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.isys_ctf-kw {
    font-size: 13px;
    font-weight: 700;
    color: #003087;
    letter-spacing: 0;
    line-height: 1;
}
.isys_ctf-sub {
    font-size: 11px;
    color: rgba(0, 48, 135, 0.52);
    letter-spacing: 0;
    line-height: 1.3;
}

/* 폼 입력 — 정제된 룩 */
.isys_consult-input,
.isys_consult-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin: 0;
}
.isys_consult-input:focus,
.isys_consult-textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}
.isys_consult-input::placeholder,
.isys_consult-textarea::placeholder { color: #94a3b8; }
.isys_consult-textarea {
    min-height: 140px;
    resize: vertical;
}

.isys_consult-agree {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}
.isys_consult-agree label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.isys_consult-agree a {
    color: #0066cc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.isys_consult-btn {
    width: 100%;
    padding: 13px 20px;
    background: #0066cc;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0;
    transition: background 0.2s ease, transform 0.1s ease;
}
.isys_consult-btn:hover { background: #003d7a; }
.isys_consult-btn:active { transform: scale(0.98); }

/* ════════════════════════════════════════════════
   우측 카드 (4가지 연락 방법)
   ════════════════════════════════════════════════ */
.isys_consult-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: none;
}

.isys_consult-method {
    flex: 1 1 0;              /* 4장이 부모(우측 컬럼) 높이 균등 분할 — 좌측과 시각적 정렬 일치 */
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    min-width: 0;             /* 자식 overflow 방지 */
    min-height: 70px;
    cursor: pointer;
}
a.isys_consult-method:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
    text-decoration: none;
    color: inherit;
}

/* 아이콘 박스 — KT 단일 블루 톤, 컬러 변형 없음 */
.isys_consult-method__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0066cc;
    font-size: 18px;
    transition: background 0.18s ease, color 0.18s ease;
}
.isys_consult-method:hover .isys_consult-method__icon {
    background: #e6efff;
    color: #003d7a;
}

.isys_consult-method__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}
.isys_consult-method__title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0;
}
.isys_consult-method__desc {
    font-size: 13px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.isys_consult-method__sub {
    font-size: 12px;
    color: #94a3b8;
}

/* 화살표 (호버 시 슬라이드) */
.isys_consult-method__arrow {
    flex-shrink: 0;
    color: #cbd5e1;
    font-size: 13px;
    transition: transform 0.18s ease, color 0.18s ease;
}
.isys_consult-method:hover .isys_consult-method__arrow {
    color: #0f172a;
    transform: translateX(3px);
}

/* 전화번호 — 우측 큰 글씨 (KT 블루 단일 톤) */
.isys_consult-method__num {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0066cc;
    letter-spacing: 0.3px;
    font-feature-settings: "tnum";
}

/* 정보 카드(운영시간) — 클릭 불가, hover 효과만 약화 */
.isys_consult-method--info {
    cursor: default;
}
.isys_consult-method--info:hover {
    transform: none;
    border-color: #e2e8f0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.isys_consult-method--info:hover .isys_consult-method__icon {
    background: #f1f5f9;
    color: #0066cc;
}

/* ── 네이버 톡톡 — 브랜드 그린 (구 카카오 옐로우 대체, 2026-05-19) ── */
.isys_consult-method--kakao {
    background: #03C75A;
    border-color: #02a64a;
    color: #fff;
}
.isys_consult-method--kakao .isys_consult-method__icon {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.isys_consult-method--kakao .isys_consult-method__title { color: #fff; }
.isys_consult-method--kakao .isys_consult-method__desc  { color: rgba(255,255,255,0.85); }
.isys_consult-method--kakao .isys_consult-method__arrow { color: rgba(255,255,255,0.75); }
a.isys_consult-method--kakao:hover {
    background: #02b351;
    border-color: #028f43;
    box-shadow: 0 6px 20px rgba(3,199,90,0.40);
    transform: translateY(-2px);
}
a.isys_consult-method--kakao:hover .isys_consult-method__arrow {
    color: #fff;
    transform: translateX(3px);
}
a.isys_consult-method--kakao:hover .isys_consult-method__icon {
    background: rgba(255,255,255,0.26);
    color: #fff;
}

/* ── 전화 상담 — KT 네이비 (다른 카드와 동일한 가로 구조 유지) ── */
.isys_consult-method--phone {
    background: linear-gradient(135deg, #003087 0%, #001f5c 100%);
    border-color: #002070;
}
.isys_consult-method--phone .isys_consult-method__icon {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.isys_consult-method--phone .isys_consult-method__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.isys_consult-method--phone .isys_consult-method__title {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.isys_consult-method--phone .isys_consult-method__num {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
}
.isys_consult-method--phone .isys_consult-method__desc {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12.5px;
    line-height: 1.5;
}
.isys_consult-method--phone .isys_consult-method__arrow { color: rgba(255, 255, 255, 0.55); }
a.isys_consult-method--phone:hover {
    background: linear-gradient(135deg, #002070 0%, #00164a 100%);
    border-color: #001a5c;
    box-shadow: 0 6px 20px rgba(0, 48, 135, 0.35);
    transform: translateY(-2px);
}
a.isys_consult-method--phone:hover .isys_consult-method__icon {
    background: rgba(255, 255, 255, 0.20);
    color: #fff;
}
a.isys_consult-method--phone:hover .isys_consult-method__arrow {
    color: #fff;
    transform: translateX(3px);
}

/* ════════════════════════════════════════════════
   반응형 — minmax / clamp 활용으로 중간 폭에서 안 깨짐
   ════════════════════════════════════════════════ */

/* 데스크톱 좁게 (1024 이하) — 좌/우 1:1, 카드 풀 너비 */
@media (max-width: 1024px) {
    .isys_consult-area {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .isys_consult-section { padding: 64px 0 80px; }
    .isys_consult-section__title { font-size: 28px; }
}

/* 태블릿 (768 이하) — 좌측 폼 2개도 세로 스택 */
@media (max-width: 768px) {
    .isys_consult-section { padding: 48px 0 64px; overflow-x: hidden; }
    .isys_consult-section__head { margin-bottom: 36px; }
    .isys_consult-section__title { font-size: 24px; }
    .isys_consult-section__subtitle { font-size: 14px; }
    .isys_consult-container { padding: 0 16px; max-width: 100vw; box-sizing: border-box; }

    /* 카드/박스 모두 부모 폭 100% 강제 — 자식 overflow 안전망 */
    .isys_consult-area,
    .isys_consult-left,
    .isys_consult-right,
    .isys_consult-inquiry,
    .isys_consult-simple,
    .isys_consult-body,
    .isys_consult-method {
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }

    .isys_consult-left {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .isys_consult-area { gap: 20px; }
    .isys_consult-body img { height: 140px; }

    .isys_consult-method { padding: 14px 16px; gap: 12px; }
    .isys_consult-method__icon {
        width: 42px; height: 42px;
        font-size: 17px;
        flex-shrink: 0;
    }
    .isys_consult-method__title { font-size: 14px; }
    .isys_consult-method__desc  { font-size: 12.5px; }
    .isys_consult-method__num   { font-size: 16px; }

    /* 티커 리스트 항목 — 가로 overflow 방지 */
    .isys_consult-list li { padding: 10px 2px; font-size: 12.5px; gap: 6px; }
    .isys_consult-name { min-width: 38px; font-size: 11.5px; }
    .isys_consult-date { font-size: 11px; }
    .isys_ctf-text .isys_ctf-kw { font-size: 13px; }
    .isys_ctf-text .isys_ctf-sub { font-size: 11.5px; }
}

/* 모바일 (480 이하) — 카드 안에서 화살표 숨김, 폼 패딩 축소 */
@media (max-width: 480px) {
    .isys_consult-section { padding: 40px 0 56px; }
    .isys_consult-section__title { font-size: 21px; }
    .isys_consult-eyebrow { font-size: 11px; }

    .isys_consult-method__arrow { display: none; }
    .isys_consult-method__num { font-size: 14px; }
    .isys_consult-body { padding: 16px; }
    .isys_consult-input,
    .isys_consult-textarea { font-size: 14px; padding: 10px 12px; }
}

/* 매우 좁은 화면 (380 이하) — 아이콘 더 컴팩트 */
@media (max-width: 380px) {
    .isys_consult-method { padding: 12px 14px; gap: 10px; }
    .isys_consult-method__icon { width: 38px; height: 38px; font-size: 16px; }
    .isys_consult-method__title { font-size: 13px; }
    .isys_consult-method__desc  { font-size: 12px; }
    .isys_consult-method__sub   { font-size: 11px; }
}
