/* naonax\static\css\model\model.css */

:root {
    --mf-bg: #f6f8fb;
    --mf-card: #ffffff;
    --mf-text: #1f2735;
    --mf-sub: #6f7888;
    --mf-line: #dde5f0;
    --mf-line-strong: #c9d7eb;

    --mf-point: #4b73c9;
    --mf-point-soft: #eef4ff;
    --mf-point-strong: #3f69c4;

    --mf-good: #14804a;
    --mf-good-bg: #e9f7ef;
    --mf-normal: #0b63ce;
    --mf-normal-bg: #eaf3ff;
    --mf-warn: #b26a00;
    --mf-warn-bg: #fff4de;

    --mf-btn-search-from: #5a7fce;
    --mf-btn-search-to: #496fbe;
    --mf-btn-search-shadow: rgba(73, 111, 190, 0.18);

    --mf-btn-again-from: #6f8099;
    --mf-btn-again-to: #5f7088;
    --mf-btn-again-shadow: rgba(95, 112, 136, 0.18);

    --mf-btn-buy-from: #2e9b77;
    --mf-btn-buy-to: #248864;
    --mf-btn-buy-shadow: rgba(36, 136, 100, 0.18);

    --mf-btn-board-bg: #ffffff;
    --mf-btn-board-text: #4a5970;
    --mf-btn-board-line: #ccd8e6;
    --mf-btn-board-hover-bg: #f7f9fc;

    --mf-shadow: 0 14px 30px rgba(18, 39, 78, 0.08);
    --mf-shadow-strong: 0 22px 40px rgba(18, 39, 78, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #f6f8fb 0%, #f3f7fc 100%);
    color: var(--mf-text);
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================================
   ✅ header
   ========================================================= */
.mf-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #ebf0f7;
    backdrop-filter: blur(14px);
}

.mf-header-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mf-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mf-logo {
    height: 34px;
    width: auto;
}

.mf-logo-text {
    display: none;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #172033;
}

.mf-top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mf-top-link {
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--mf-sub);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mf-top-link:hover {
    background: #f2f6fc;
    color: var(--mf-text);
    transform: translateY(-1px);
}

.mf-top-link.active {
    background: var(--mf-point-soft);
    color: var(--mf-point);
    font-weight: 800;
}

/* =========================================================
   ✅ layout
   ========================================================= */
.mf-main {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

.mf-panel {
    margin-top: 20px;
    background: var(--mf-card);
    border: 1px solid #e7edf6;
    border-radius: 24px;
    padding: 22px 18px;
    box-shadow: var(--mf-shadow);
}

.mf-panel-head h2,
.mf-panel-head h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
}

.mf-panel-head p {
    margin: 8px 0 0;
    color: var(--mf-sub);
    line-height: 1.7;
    font-size: 14px;
}

/* =========================================================
   ✅ hero
   ========================================================= */
.mf-hero-inner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fafcff 0%, #eef4ff 100%);
    border: 1px solid #e3ebfb;
    border-radius: 24px;
    padding: 28px 22px;
    box-shadow: var(--mf-shadow);
}

.mf-hero-inner::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(75, 115, 201, 0.12) 0%, rgba(75, 115, 201, 0) 72%);
    pointer-events: none;
}

.mf-eyebrow {
    margin: 0 0 8px;
    color: var(--mf-point);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.mf-hero h1,
.mf-detail-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
}

.mf-hero-desc {
    margin: 12px 0 0;
    color: var(--mf-sub);
    font-size: 15px;
    line-height: 1.75;
    max-width: 620px;
}

.mf-hero-points {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.mf-hero-point {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(75, 115, 201, 0.08);
    color: #47628b;
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   ✅ step
   ========================================================= */
.mf-step-area {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
}

.mf-step-item {
    background: #edf2f8;
    color: #7a8495;
    border-radius: 16px;
    padding: 12px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.25s ease;
}

.mf-step-item.is-active {
    background: var(--mf-point);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(75, 115, 201, 0.16);
}

.mf-step-item.is-done {
    background: #dff1e8;
    color: var(--mf-good);
}

.mf-step-note {
    color: #4d648d;
    font-weight: 600;
}

/* =========================================================
   ✅ form
   ========================================================= */
.mf-search-form {
    margin-top: 14px;
}

.mf-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
}

.mf-input {
    width: 100%;
    height: 58px;
    border: 1px solid var(--mf-line-strong);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    padding: 0 18px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

.mf-input:focus {
    border-color: var(--mf-point);
    box-shadow: 0 0 0 4px rgba(75, 115, 201, 0.12);
    transform: translateY(-1px);
}

.mf-input-help {
    margin-top: 10px;
    color: var(--mf-sub);
    font-size: 13px;
    line-height: 1.65;
}

/* =========================================================
   ✅ button common
   ========================================================= */
.mf-btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.mf-btn,
.mf-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.mf-btn:hover,
.mf-link-btn:hover {
    transform: translateY(-2px);
}

/* =========================================================
   ✅ action buttons
   - 검색 시작 : 차분한 블루
   - 다시 찾기 : 톤다운 슬레이트
   - 구매하러 가기 : 부담 적은 그린
   - 게시판 바로가기 : 화이트/라인
   ========================================================= */
.mf-btn {
    min-width: 140px;
    height: 48px;
    border: 0;
    padding: 0 18px;
    cursor: pointer;
}

.mf-btn.primary {
    background: linear-gradient(180deg, var(--mf-btn-search-from) 0%, var(--mf-btn-search-to) 100%);
    color: #ffffff;
    box-shadow: 0 10px 20px var(--mf-btn-search-shadow);
}

.mf-btn.primary:hover {
    box-shadow: 0 14px 24px rgba(73, 111, 190, 0.22);
}

#btnSearchAgain.mf-btn.primary {
    background: linear-gradient(180deg, var(--mf-btn-again-from) 0%, var(--mf-btn-again-to) 100%);
    box-shadow: 0 10px 20px var(--mf-btn-again-shadow);
}

#btnSearchAgain.mf-btn.primary:hover {
    box-shadow: 0 14px 24px rgba(95, 112, 136, 0.22);
}

.mf-btn.line {
    background: #ffffff;
    color: var(--mf-text);
    border: 1px solid var(--mf-line);
}

.mf-btn.line:hover {
    background: #f7f9fc;
    border-color: #b4c4d8;
}

.mf-link-row {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mf-link-btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
    color: #ffffff;
    background: linear-gradient(180deg, var(--mf-btn-buy-from) 0%, var(--mf-btn-buy-to) 100%);
    box-shadow: 0 8px 18px var(--mf-btn-buy-shadow);
}

.mf-link-btn:hover {
    box-shadow: 0 12px 22px rgba(36, 136, 100, 0.22);
}

.mf-link-btn.line {
    color: var(--mf-btn-board-text);
    background: var(--mf-btn-board-bg);
    border: 1px solid var(--mf-btn-board-line);
    box-shadow: none;
}

.mf-link-btn.line:hover {
    background: var(--mf-btn-board-hover-bg);
    border-color: #b9c8d8;
    box-shadow: 0 10px 20px rgba(92, 112, 140, 0.08);
}

/* =========================================================
   ✅ popular chips
   ========================================================= */
.mf-popular-wrap {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--mf-line);
}

.mf-popular-title {
    font-size: 14px;
    font-weight: 800;
}

.mf-popular-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.mf-popular-chip {
    border: 1px solid var(--mf-line);
    background: #ffffff;
    color: #425065;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mf-popular-chip:hover {
    transform: translateY(-2px);
    border-color: #b0c0d9;
    background: #f6f9fd;
    color: #49638d;
}

/* =========================================================
   ✅ waiting
   ========================================================= */
.mf-waiting-box {
    margin-top: 18px;
    min-height: 220px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f9fbff 0%, #eef3fb 100%);
    border: 1px solid #e4ebf8;
    padding: 26px 18px;
}

.mf-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid #dfe9fa;
    border-top-color: var(--mf-point);
    animation: mf-spin 0.9s linear infinite;
}

@keyframes mf-spin {
    to {
        transform: rotate(360deg);
    }
}

.mf-typing-wrap {
    margin-top: 20px;
    min-height: 70px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.mf-typing-line {
    font-size: 17px;
    line-height: 1.8;
    font-weight: 600;
    white-space: pre-wrap;
    word-break: keep-all;
}

.mf-typing-cursor {
    width: 10px;
    height: 24px;
    background: var(--mf-point);
    border-radius: 3px;
    margin-top: 4px;
    animation: mf-cursor 0.8s steps(1) infinite;
}

@keyframes mf-cursor {
    50% {
        opacity: 0;
    }
}

.mf-waiting-sub {
    margin-top: 16px;
    color: var(--mf-sub);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   ✅ result
   ========================================================= */
.mf-result-card {
    margin-top: 18px;
    border: 1px solid #e6edf7;
    border-radius: 24px;
    background: #ffffff;
    padding: 22px 18px;
    box-shadow: 0 12px 24px rgba(31, 49, 93, 0.06);
}

.mf-detail-card {
    margin-top: 0;
}

.mf-result-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.mf-result-category {
    color: var(--mf-sub);
    font-size: 13px;
    font-weight: 800;
}

.mf-result-keyword {
    margin: 8px 0 0;
    font-size: 28px;
    line-height: 1.2;
    word-break: break-word;
}

.mf-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.mf-status-badge.good {
    background: var(--mf-good-bg);
    color: var(--mf-good);
}

.mf-status-badge.normal {
    background: var(--mf-normal-bg);
    color: var(--mf-normal);
}

.mf-status-badge.warn {
    background: var(--mf-warn-bg);
    color: var(--mf-warn);
}

.mf-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.mf-summary-box {
    border: 1px solid #ebeff7;
    border-radius: 18px;
    padding: 14px 12px;
    background: #fafcff;
}

.mf-summary-label {
    color: var(--mf-sub);
    font-size: 12px;
    font-weight: 800;
}

.mf-summary-value {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 800;
    word-break: break-word;
}

.mf-result-message {
    margin-top: 16px;
    border-radius: 18px;
    background: #f7f9fd;
    border: 1px solid #ebf0f8;
    padding: 16px 14px;
    line-height: 1.8;
    color: #334156;
}

/* =========================================================
   ✅ goods
   ========================================================= */
.mf-result-goods-wrap {
    margin-top: 18px;
}

.mf-result-goods-title {
    font-size: 15px;
    font-weight: 800;
}

.mf-goods-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.mf-goods-item {
    border: 1px solid #ebeff7;
    border-radius: 18px;
    background: #ffffff;
    padding: 16px 14px;
}

.mf-result-meta {
    margin-top: 18px;
    border-top: 1px dashed var(--mf-line);
    padding-top: 16px;
}

.mf-goods-item .mf-result-meta {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

.mf-result-meta-line {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f4f9;
    font-size: 14px;
}

.mf-result-meta-line:last-child {
    border-bottom: 0;
}

.mf-meta-label {
    color: var(--mf-sub);
}

/* =========================================================
   ✅ board / inquiry
   ========================================================= */
.mf-inquiry-box {
    margin-top: 18px;
    border: 1px dashed #c9d7eb;
    border-radius: 18px;
    background: #f8fbff;
    padding: 16px 14px;
}

.mf-inquiry-text {
    color: #334156;
    line-height: 1.7;
    font-size: 14px;
    font-weight: 600;
}

.mf-inline-inquiry {
    margin-top: 18px;
    border: 1px solid #e6edf7;
    border-radius: 24px;
    background: #ffffff;
    padding: 22px 18px;
    box-shadow: 0 12px 24px rgba(31, 49, 93, 0.06);
}

.mf-inline-inquiry-summary {
    margin-top: 16px;
}

.mf-textarea {
    height: 160px;
    padding-top: 14px;
    resize: vertical;
}

.mf-inline-check {
    margin-top: 16px;
    color: #334156;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
   ✅ responsive
   ========================================================= */
@media (max-width: 860px) {
    .mf-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mf-goods-list {
        grid-template-columns: 1fr;
    }

    .mf-result-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .mf-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .mf-step-area {
        grid-template-columns: 1fr;
    }

    .mf-hero h1,
    .mf-detail-title {
        font-size: 28px;
    }

    .mf-panel {
        padding: 18px 14px;
        border-radius: 20px;
    }

    .mf-summary-grid {
        grid-template-columns: 1fr;
    }

    .mf-result-keyword {
        font-size: 24px;
    }

    .mf-btn {
        width: 100%;
    }

    .mf-btn-row {
        flex-direction: column;
    }

    .mf-result-meta-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .mf-hero-points {
        gap: 6px;
    }

    .mf-hero-point {
        font-size: 12px;
    }
}
