/* =====================================================================
 * /contact (도입문의)
 *  - depends on common.css, index.css, site.css
 * ===================================================================== */

.ct-hero { padding-bottom: 72px; }
.ct-hero-inner { max-width: 760px; }
.ct-hero .mk-hero-meta a { color: var(--text-secondary); text-decoration: none; font-weight: 600; }
.ct-hero .mk-hero-meta a:hover { color: var(--primary-color); text-decoration: underline; }

.ct-main { background: var(--mk-band); }

/* ---------- Form card ---------- */
.ct-card {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 36px;
    scroll-margin-top: 96px;
}
.ct-types { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.ct-legend { font-size: var(--fs-md); font-weight: 800; color: var(--text-strong); margin-bottom: 12px; float: none; width: auto; padding: 0; }
.ct-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ct-type { position: relative; display: block; cursor: pointer; margin: 0; }
.ct-type input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ct-type-box {
    display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 12px;
    align-items: center;
    height: 100%; padding: 14px 16px;
    border: 1px solid var(--border-default); border-radius: var(--radius-lg);
    background: var(--surface-card);
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.ct-type-box i {
    grid-row: 1 / span 2;
    width: 36px; height: 36px; border-radius: var(--radius-md);
    background: var(--surface-subtle); color: var(--text-tertiary);
    display: flex; align-items: center; justify-content: center;
    transition: background-color .15s, color .15s;
}
.ct-type-box strong { font-size: var(--fs-base); color: var(--text-strong); line-height: 1.4; }
.ct-type-box small { font-size: var(--fs-sm); color: var(--text-tertiary); line-height: 1.4; }
.ct-type:hover .ct-type-box { border-color: var(--border-strong); }
.ct-type input:checked + .ct-type-box {
    border-color: var(--primary-color);
    background: var(--primary-soft);
    box-shadow: 0 0 0 1px var(--primary-color);
}
.ct-type input:checked + .ct-type-box i { background: var(--primary-color); color: #fff; }
.ct-type input:focus-visible + .ct-type-box { outline: 2px solid var(--primary-color); outline-offset: 2px; }

.ct-label { display: block; font-size: var(--fs-base); font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.ct-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ct-req { color: var(--danger-color); margin-left: 2px; }
.ct-opt { color: var(--text-tertiary); font-weight: 500; font-size: var(--fs-sm); }
.ct-count { font-size: var(--fs-xs); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

.ct-input {
    min-height: 44px;
    background-color: var(--surface-card);
    color: var(--text-strong);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font-size: var(--fs-md);
}
.ct-input::placeholder { color: var(--text-disabled); }
.ct-input:focus { border-color: var(--primary-color); box-shadow: var(--focus-ring); background-color: var(--surface-card); color: var(--text-strong); }
.ct-input[aria-invalid="true"] { border-color: var(--danger-color); }
.ct-input[aria-invalid="true"]:focus { box-shadow: var(--focus-ring-danger); }
textarea.ct-input { resize: vertical; line-height: 1.7; }
[data-theme="dark"] .form-select.ct-input { color-scheme: dark; }

.ct-hint { font-size: var(--fs-sm); color: var(--text-tertiary); margin-top: 6px; line-height: 1.6; word-break: keep-all; }
.ct-err { font-size: var(--fs-sm); color: var(--danger-color); margin-top: 6px; min-height: 0; }
.ct-err:empty { display: none; }

/* consent */
.ct-consent {
    margin-top: 24px; padding: 16px 18px;
    background: var(--surface-subtle); border: 1px solid var(--border-default); border-radius: var(--radius-lg);
}
.ct-consent .form-check { margin: 0; }
.ct-consent .form-check-input { width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; border-color: var(--border-strong); background-color: var(--surface-card); }
.ct-consent .form-check-input:checked { background-color: var(--primary-color); border-color: var(--primary-color); }
.ct-consent .form-check-input:focus { box-shadow: var(--focus-ring); }
.ct-consent .form-check-input[aria-invalid="true"] { border-color: var(--danger-color); }
.ct-consent .form-check-label { font-size: var(--fs-md); color: var(--text-strong); cursor: pointer; }
.ct-consent-detail { margin: 12px 0 0 1.6rem; font-size: var(--fs-sm); color: var(--text-secondary); }
.ct-consent-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 8px; }
.ct-consent-detail dt { font-weight: 700; color: var(--text-primary); }
.ct-consent-detail dd { margin: 0; word-break: keep-all; }
.ct-consent-detail p { margin: 0; line-height: 1.6; word-break: keep-all; }
.ct-consent-detail a { color: var(--primary-color); font-weight: 600; }

.ct-submit-row { margin-top: 24px; }
.ct-submit { width: 100%; height: 52px; font-size: var(--fs-lg); }
.ct-submit:disabled { opacity: .65; cursor: not-allowed; }
.ct-form-msg { margin-top: 12px; font-size: var(--fs-base); color: var(--danger-color); text-align: center; }
.ct-form-msg:empty { display: none; }

/* success */
.ct-success { text-align: center; padding: 40px 8px; outline: none; }
.ct-success-icon {
    width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
    background: var(--success-soft); border: 1px solid var(--success-border); color: var(--success-color);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.ct-success h2 { font-size: var(--fs-2xl); font-weight: 800; color: var(--text-strong); margin: 0 0 12px; }
.ct-success p { color: var(--text-secondary); font-size: var(--fs-md); line-height: 1.75; margin: 0 0 24px; word-break: keep-all; }
.ct-success strong { color: var(--text-strong); word-break: break-all; }
.ct-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Aside ---------- */
.ct-aside { position: sticky; top: 96px; }
.ct-aside-title { font-size: var(--fs-xl); font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; margin: 8px 0 20px; }
.ct-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.ct-steps::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--border-default); }
.ct-steps li { position: relative; display: flex; gap: 16px; padding-bottom: 24px; }
.ct-steps li:last-child { padding-bottom: 0; }
.ct-step-no {
    position: relative; z-index: 1; flex-shrink: 0;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface-card); border: 2px solid var(--primary-color); color: var(--primary-color);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--fs-base);
}
.ct-steps strong { display: block; color: var(--text-strong); font-size: var(--fs-md); margin-top: 6px; }
.ct-steps p { color: var(--text-secondary); font-size: var(--fs-base); line-height: 1.7; margin: 4px 0 0; word-break: keep-all; }

.ct-direct {
    display: flex; gap: 14px; margin-top: 32px; padding: 20px;
    background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl);
}
.ct-direct > i { font-size: 1.25rem; color: var(--primary-color); margin-top: 2px; }
.ct-direct strong { display: block; color: var(--text-strong); font-size: var(--fs-md); }
.ct-direct p { color: var(--text-secondary); font-size: var(--fs-base); margin: 2px 0 6px; }
.ct-direct a { color: var(--primary-color); font-weight: 700; text-decoration: none; word-break: break-all; }
.ct-direct a:hover { text-decoration: underline; }

/* ---------- Enterprise ---------- */
.ct-ent { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.ct-ent-head .plan-tag { margin-bottom: 16px; }
.ct-ent-head .mk-lead { margin-bottom: 28px; }
.ct-ent-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ct-ent-grid li {
    display: flex; gap: 14px; padding: 22px;
    background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl);
}
.ct-ent-grid i {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-md);
    background: var(--primary-soft); color: var(--primary-color); border: 1px solid var(--primary-border);
    display: flex; align-items: center; justify-content: center;
}
.ct-ent-grid strong { display: block; color: var(--text-strong); font-size: var(--fs-md); margin-bottom: 4px; }
.ct-ent-grid p { color: var(--text-secondary); font-size: var(--fs-base); line-height: 1.65; margin: 0; word-break: keep-all; }

/* ---------- Company ---------- */
.ct-company {
    display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: start;
    border: 1px solid var(--border-default); border-radius: var(--radius-xl);
    padding: 32px; background: var(--surface-card);
}
.ct-company-brand { display: flex; gap: 14px; align-items: flex-start; }
.ct-company-brand img { border-radius: var(--radius-md); }
.ct-company-brand h2 { font-size: var(--fs-xl); font-weight: 800; color: var(--text-strong); margin: 0 0 4px; }
.ct-company-brand p { color: var(--text-secondary); font-size: var(--fs-base); margin: 0; }
.ct-company-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin: 0; }
.ct-company-info > div { padding: 12px 0; border-bottom: 1px solid var(--border-subtle); min-width: 0; }
.ct-company-info > div.is-wide { grid-column: 1 / -1; }
.ct-company-info dt { font-size: var(--fs-sm); color: var(--text-tertiary); font-weight: 600; margin-bottom: 2px; }
.ct-company-info dd { margin: 0; color: var(--text-strong); font-weight: 600; font-size: var(--fs-md); word-break: keep-all; overflow-wrap: anywhere; }
.ct-company-info a { color: var(--primary-color); text-decoration: none; }
.ct-company-info a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .ct-aside { position: static; }
    .ct-ent { grid-template-columns: 1fr; gap: 32px; }
    .ct-company { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 767.98px) {
    .ct-card { padding: 22px 18px; }
    .ct-type-grid { grid-template-columns: 1fr; }
    .ct-ent-grid { grid-template-columns: 1fr; }
    .ct-company { padding: 22px 18px; }
    .ct-company-info { grid-template-columns: 1fr; }
    .ct-consent-detail { margin-left: 0; }
    .ct-consent-detail dl { grid-template-columns: 1fr; gap: 0; }
    .ct-consent-detail dd { margin-bottom: 6px; }
    .ct-ent-head .mk-btn { width: 100%; }
}
