/* Design System & Reset */
:root {
    --primary: #F97316;
    --primary-hover: #EA580C;
    --secondary: #334155;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Removed Pretendard */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.scroll-locked,
body.scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', dotum, sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--secondary);
}

h3 {
    font-size: 1.375rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    /* 섹션 제목 통일 — 너무 작지 않게 유지 */
    h2 {
        font-size: 1.625rem;
        letter-spacing: -0.03em;
        line-height: 1.32;
        margin-bottom: 32px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header — block 레이아웃(flex 가로 3분할 방지). fixed 자식은 뷰포트 기준 유지 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: block;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    height: 70px;
}

/* backdrop-filter는 fixed 자식의 기준 블록이 될 수 있어 메뉴 열림 시 해제 */
header.menu-open,
header.menu-open.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* 로고·햄버거를 화면 양끝에 가깝게 — 과한 좌우 패딩 제거 */
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
}

@media (max-width: 768px) {
    header .container {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nav-links {
    display: none; /* Always hidden by default, shown in menu-open */
    gap: 32px;
    align-items: center;
    margin-left: auto;
    margin-right: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary);
}

.nav-links a:hover {
    color: var(--primary);
}

.header-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: auto;
}

.header-cta .btn {
    display: none; /* Always hidden by default */
}

.mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #fff;
    font-size: 1.5rem;
    color: var(--secondary);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.mobile-menu-btn svg {
    width: 22px;
    height: 22px;
}

.mobile-menu-btn:hover {
    background: #F8FAFC;
}

/* 주 메뉴: 우측 슬라이드 드로어 (header 밖 DOM → 뷰포트 고정) */
.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 100vw);
    max-height: none;
    margin: 0;
    background-color: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 12px 20px max(28px, env(safe-area-inset-bottom, 0px));
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.nav-drawer-top {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
    margin-bottom: 4px;
}

.nav-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #fff;
    color: var(--secondary);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.nav-close-btn svg {
    width: 22px;
    height: 22px;
}

.nav-close-btn:hover {
    background: #f8fafc;
}

@media (prefers-reduced-motion: reduce) {
    .nav-links {
        transition-duration: 0.15s;
    }
}

body.nav-menu-open .nav-links {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    display: flex;
}

.nav-links a {
    padding: 16px 22px;
    border-radius: 14px;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.nav-links a:hover {
    background: #F8FAFC;
    color: var(--primary);
    padding-left: 30px;
}

/* Menu Contact Buttons */
.menu-contact-section {
    margin-top: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
}

.menu-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.menu-contact-btn i {
    width: 16px;
    height: 16px;
}

.menu-contact-btn.mail {
    background: #F1F5F9;
    color: var(--secondary);
}

.menu-contact-btn.tel {
    background: #FFF7ED;
    color: var(--primary);
    border: 1px solid rgba(249, 115, 22, 0.1);
}

/* Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1750;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.nav-menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Header Adjustments */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1200;
    background: #fff;
}

header.menu-open {
    /* Keep full width but raise z-index above drawer if needed, 
       actually drawer should be higher */
    z-index: 1900;
    background: transparent;
    box-shadow: none;
    /* 메뉴 열린 동안 scrolled(70px)와 겹쳐도 헤더·닫기 버튼 높이 유지 */
    height: 80px;
}

/* 메뉴 열림 시에도 패딩은 닫힌 상태와 동일 — 헤더 줄이 튀지 않도록 */
header.menu-open .container {
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 드로어보다 위 — 닫기(X)·로고 항상 탭 가능 */
header.menu-open .logo,
header.menu-open .header-cta {
    position: relative;
    z-index: 2100;
}

/* 드로어 안 오른쪽 X 사용 — 헤더 햄버거는 겹침·중복 방지로 숨김 */
header.menu-open .mobile-menu-btn {
    visibility: hidden;
    pointer-events: none;
}

header.menu-open .header-cta .btn {
    display: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1200;
}

/* Hero Section */
.hero {
    padding-top: max(135px, calc(env(safe-area-inset-top, 0px) + 88px));
    padding-bottom: 90px;
    background-color: #FFF7ED;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF7ED 100%);
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.hero-content .badge {
    display: inline-block;
    background-color: #FFEDD5;
    color: #9A3412;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.25;
    margin-bottom: 24px;
    white-space: pre-line;
}

.hero-line-break {
    display: inline;
}

.hero-line-2 {
    display: inline;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    white-space: pre-line;
    line-height: 1.6;
}

.hero-btn-short {
    display: none;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

.hero-actions .btn {
    padding: 16px 36px;
    font-size: 1.05rem;
}



@media (max-width: 768px) {
    .hero {
        padding-bottom: 80px;
    }

    .pc-br {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 20px;
    }

    /* 모바일 히어로 제목: 화면 너비에 맞춰 가능한 한 크게 (짤림 방지 clamp) */
    .hero-content h1 {
        font-size: clamp(1.52rem, 0.88rem + 3.6vw, 2rem);
        line-height: 1.22;
        letter-spacing: -0.055em;
        margin-bottom: 22px;
        white-space: normal;
        text-wrap: balance;
        padding: 0 4px;
        word-break: keep-all;
    }

    /* 한 줄 강제 줄바꿈만 사용 — 빈 span(block) + <br> 중복으로 3줄 되던 문제 방지 */
    .hero-content .badge {
        font-size: 0.8125rem;
        padding: 4px 12px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.9375rem;
    }

    .hero-actions .btn {
        padding: 14px 28px;
        font-size: 0.9375rem;
    }

    .hero-line-break {
        display: none;
    }

    .hero-line-2 {
        display: inline;
    }

    .hero-content p {
        margin-bottom: 32px;
    }

    /* Mobile hero primary button label */
    .hero-btn-long {
        display: none;
    }
    .hero-btn-short {
        display: inline;
    }
}

/* Coverage Cards */
.coverage {
    background-color: var(--white);
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.coverage-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.coverage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.coverage-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.coverage-card h3 {
    margin-bottom: 10px;
}

.coverage-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

@media (max-width: 900px) {
    .coverage-grid {
        grid-template-columns: 1fr;
    }
}

/* Object Info Section */
.object-info {
    background-color: #FFFFFF;
}

.section-subtitle {
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 60px 0 30px;
    color: var(--secondary);
}

.operation-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.method-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.method-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.method-card h3 {
    white-space: nowrap;
    font-size: 1.25rem;
}

.method-badge {
    display: inline-block;
    background-color: var(--secondary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.method-img {
    height: 120px;
    margin-bottom: 20px;
    object-fit: contain;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.eq-item {
    background: var(--white);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.eq-item span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(249, 115, 22, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.eq-item:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

/* 건설기계 27종 — 모바일만 접기/펼치기 */
.equipment-27-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.equipment-27 {
    position: relative;
}

.equipment-27-toolbar {
    text-align: center;
}

.equipment-27-expand {
    display: none;
}

.equipment-27-expand-less {
    display: none;
}

.equipment-27-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

@media (max-width: 768px) {
    .operation-methods {
        grid-template-columns: 1fr;
    }

    .equipment-27-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .equipment-27-heading.section-subtitle {
        margin: 40px 0 0;
        font-size: 1.02rem;
        letter-spacing: -0.035em;
        line-height: 1.35;
    }

    .equipment-27-expand {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 18px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: var(--white);
        font-weight: 600;
        font-size: 0.9375rem;
        color: var(--secondary);
        cursor: pointer;
        transition: var(--transition);
        box-shadow: var(--shadow-sm);
    }

    .equipment-27-expand:active {
        background: var(--bg-light);
    }

    .equipment-27 .equipment-grid {
        display: none;
        margin-top: 16px;
    }

    .equipment-27-toggle:checked ~ .equipment-grid {
        display: grid;
    }

    .equipment-27-toggle:checked ~ .equipment-27-toolbar .equipment-27-expand-more {
        display: none;
    }

    .equipment-27-toggle:checked ~ .equipment-27-toolbar .equipment-27-expand-less {
        display: inline;
    }

    .equipment-27-toggle:checked ~ .equipment-27-toolbar .equipment-27-chevron {
        transform: rotate(180deg);
    }
}

@media (min-width: 769px) {
    .equipment-27-expand {
        display: none !important;
    }

    .equipment-27 .equipment-grid {
        display: grid !important;
    }
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    margin-top: 60px;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 24px;
    font-size: 1.25rem;
    box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.1);
}

.process-step h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.tip-box {
    margin-top: 16px;
    background-color: #EFF6FF;
    color: #1E40AF;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8125rem;
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq {
    background-color: var(--white);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--white);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.accordion-header {
    padding: 20px 24px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    text-align: left;
    font-size: 1.125rem;
    color: #000;
}

.accordion-icon {
    flex-shrink: 0;
    color: inherit;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
    padding: 0 24px;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding-bottom: 24px;
}

/* Form Section */
.consultation {
    background-color: var(--white);
}

.form-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.tab-btn {
    flex: 0 1 180px;
    padding: 14px 20px;
    border-radius: 12px;
    background-color: #F8FAFC;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.tab-btn.active {
    background-color: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-header-box {
    text-align: center;
    margin-bottom: 40px;
}

.form-header-box h2 {
    margin-bottom: 8px;
}

.form-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    background: #FFF7ED;
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: #9A3412;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

.form-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    line-height: 1;
    background: transparent;
}

.form-info-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: inherit;
}

.form-fixed-fields {
    margin-bottom: 14px;
    padding-bottom: 0;
    border-bottom: none;
}

.form-fixed-fields .form-grid {
    margin-bottom: 0;
}

.req {
    color: #EF4444;
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    background-color: #F8FAFC;
    transition: var(--transition);
}

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    background-color: #F8FAFC;
    transition: var(--transition);
    resize: vertical;
    min-height: 110px;
}

.form-textarea:focus {
    background-color: #fff;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.form-group input:focus {
    background-color: #fff;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.has-error input,
.has-error select,
.has-error textarea {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10) !important;
}

.has-error {
    position: relative;
}

.field-error {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
    font-size: 0.875rem;
    color: #0F172A;
    font-weight: 500;
    line-height: 1.35;
    max-width: 100%;
}

.field-error::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid rgba(226, 232, 240, 0.95);
    top: -10px;
    left: 20px;
}

.field-error::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 9px solid #fff;
    top: -9px;
    left: 21px;
}

.field-error::marker {
    content: "";
}

.field-error::selection {
    background: rgba(249, 115, 22, 0.18);
}

/* Equipment Section */
.equipment-section {
    background-color: #F8FAFC;
    padding: 24px;
    border-radius: 16px;
    border: 1px dashed var(--border);
}

.file-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--secondary);
}

.form-alert {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FFF7ED;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.form-alert-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.form-alert-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #334155;
}

.form-alert.equipment-27-notice {
    margin-top: 20px;
}

.form-alert-body {
    flex: 1;
    min-width: 0;
}

.form-alert-lead {
    margin-bottom: 0;
}

.form-alert-excluded {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(249, 115, 22, 0.15);
}

.form-alert-excluded-heading {
    margin: 0 0 10px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #1e293b;
}

.form-alert-excluded-hint {
    font-weight: 500;
    color: #64748b;
    font-size: 0.8125rem;
}

.form-alert-excluded-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px 16px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #334155;
}

.form-alert-excluded-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(249, 115, 22, 0.1);
}

.form-alert .eq-code {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(249, 115, 22, 0.12);
}

@media (max-width: 480px) {
    .form-alert-excluded-list {
        grid-template-columns: 1fr;
    }
}

.section-label {
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0 0 8px;
    color: var(--secondary);
}

.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.equipment-item-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E2E8F0;
}

.equipment-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.eq-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.eq-field input,
.eq-field select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 0.9375rem;
}

.add-eq-btn {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.05);
}

.add-eq-btn:hover {
    background: rgba(249, 115, 22, 0.1);
}

@media (max-width: 768px) {
    .form-container {
        padding: 30px 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .equipment-item-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Compact Footer — 좌측 정렬 · 구분선(|) · 준법 고지 → 회사 한 줄 → 카피라이트 */
.compact-footer {
    background-color: var(--bg-light);
    color: var(--text-muted);
    padding: 40px 0 36px;
    font-size: 0.75rem;
    border-top: 1px solid var(--border);
}

.footer-stack {
    text-align: left;
    max-width: 1100px;
}

.footer-nav-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-bottom: 22px;
}

.footer-legal-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--secondary);
    padding: 0;
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.footer-legal-link:hover {
    color: var(--primary);
}

.footer-sep {
    display: inline-block;
    padding: 0 10px;
    color: var(--border);
    font-weight: 400;
    user-select: none;
}

.footer-compliance {
    margin-bottom: 22px;
    font-size: 0.6875rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.footer-compliance p {
    margin: 0 0 8px;
    font-size: 0.6875rem;
}

.footer-compliance p:last-child {
    margin-bottom: 0;
}

.footer-compliance-id {
    font-weight: 600;
    font-size: 0.6875rem;
    color: var(--secondary);
}

.footer-company-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
    row-gap: 6px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    line-height: 1.65;
    color: var(--secondary);
}

.footer-company-name {
    font-weight: 700;
}

.footer-em {
    font-weight: 700;
}

.footer-copy {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.625rem;
    color: var(--text-muted);
}

.footer-right {
    flex-shrink: 0;
    text-align: right;
}

.footer-contact {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    border-radius: 20px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-content--legal {
    max-width: min(920px, 94vw);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    padding: 28px 40px 16px;
    margin-bottom: 0;
}

.modal-header h3 {
    flex: 1;
    min-width: 0;
    margin: 0;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.35;
}

.modal-close-btn {
    font-size: 2rem;
    color: #666;
    line-height: 1;
    flex-shrink: 0;
}

.modal-body {
    line-height: 1.7;
    font-size: 0.9375rem;
    color: #334155;
    white-space: pre-wrap;
    word-break: keep-all;
    overflow-wrap: break-word;
    padding: 18px 40px 40px;
}

.modal-body--legal {
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--secondary);
    white-space: normal;
}

.modal-legal {
    width: 100%;
}

.modal-legal-section {
    margin: 0;
}

.modal-legal-heading {
    margin: 0 0 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.modal-legal-p {
    margin: 0 0 10px;
    font-size: inherit;
    line-height: 1.75;
    color: var(--secondary);
}

.modal-legal-p:last-child {
    margin-bottom: 0;
}

.modal-legal-sub {
    margin: 14px 0 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--secondary);
}

.modal-legal-sub:first-child {
    margin-top: 0;
}

.modal-legal-list {
    margin: 0 0 12px;
    padding-left: 1.2em;
    list-style-type: disc;
}

.modal-legal-list:last-child {
    margin-bottom: 0;
}

.modal-legal-list li {
    margin-bottom: 6px;
    padding-left: 2px;
}

.modal-legal-list li:last-child {
    margin-bottom: 0;
}

.modal-legal-list.modal-legal-list--kv {
    list-style: none;
    padding-left: 0;
}

.modal-legal-list--kv li {
    display: grid;
    grid-template-columns: 11.25rem minmax(0, 1fr);
    column-gap: 1rem;
    align-items: baseline;
    margin-bottom: 10px;
    padding-left: 0;
}

.modal-legal-list--kv li:last-child {
    margin-bottom: 0;
}

.modal-legal-list--kv .modal-legal-k {
    margin: 0;
    font-weight: 600;
    font-size: inherit;
    line-height: inherit;
    color: var(--secondary);
}

.modal-legal-list--kv .modal-legal-v {
    margin: 0;
    font-weight: 400;
    font-size: inherit;
    line-height: inherit;
    color: var(--secondary);
}

.modal-legal-rule {
    border: none;
    border-top: 1px solid var(--border);
    margin: 18px 0;
}

.modal-legal-footnote {
    margin: 20px 0 0;
    padding-top: 14px;
    border-top: 1px dashed rgba(148, 163, 184, 0.65);
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Mobile readability + keep-all wrapping */
body {
    word-break: keep-all;
    overflow-wrap: break-word;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .form-tabs {
        gap: 10px;
        margin: 0 auto 24px;
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 160px;
        padding: 11px 16px;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .form-container {
        border-radius: 24px;
        overflow: visible;
    }

    .consultation {
        overflow: visible;
    }

    .tab-content.active {
        overflow: visible;
    }

    /* 목적물(기계종류) 블록: 길어질 때 내부 스크롤 — 하단 필드·셀렉트 옵션까지 도달 */
    .equipment-section {
        padding: 18px;
        max-height: min(78dvh, 640px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .eq-field select {
        font-size: max(16px, 0.9375rem);
        max-width: 100%;
    }

    .footer-nav-legal {
        row-gap: 6px;
    }

    .footer-sep {
        padding: 0 6px;
    }

    /* 푸터 아래: 홈 인디케이터·세이프 영역까지 배경이 닿도록 */
    .compact-footer {
        padding-bottom: max(30px, calc(env(safe-area-inset-bottom, 0px) + 20px));
    }

    .modal-content {
        border-radius: 16px;
    }

    .modal-header {
        padding: 18px 18px 12px;
    }

    .modal-body {
        padding: 14px 18px 22px;
    }

    .modal-legal-list--kv li {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
}

/* Form Agreement */
.form-agreement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748B;
    text-decoration: underline;
}

.btn-text:hover {
    color: var(--primary);
}

/* Floating UI */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1500;
}

.floating-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
    color: var(--secondary);
    font-weight: 700;
}

.floating-contact-btn:hover {
    transform: translateY(-2px);
}

.fc-emoji {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
}

.fc-text {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .floating-contact {
        right: 16px;
        bottom: 20px;
        gap: 8px;
    }

    .floating-contact-btn {
        padding: 10px 12px;
    }
}

/* Floating Buttons */
.floating-ui {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    font-size: 1.5rem;
}

.kakao-btn {
    background-color: #FEE500;
    color: #3c1e1e;
}