/* ============================================================================
   [스마트렌탈시스템 전용 스타일 : online/css/online.css]
   인라인 스타일 배제 및 반응형 레이아웃 지원
   ============================================================================ */

.mf-online-wrap {
    padding-top: 50px;
    padding-bottom: 80px;
    background-color: #f8f9fb;
}

/* 섹션 타이틀 및 단계 안내 */
.mf-step-card {
    background: #ffffff;
    border: 1px solid #e2e6ed;
    border-radius: 12px;
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.mf-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f5;
}

.mf-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #0d47a1;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.mf-step-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

/* 1단계: 부재 종류 선택 탭 (5종) */
.mf-member-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.mf-member-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 10px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mf-member-btn i {
    font-size: 1.5rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.mf-member-btn:hover {
    border-color: #93c5fd;
    background-color: #f0f7ff;
    color: #0d47a1;
}

.mf-member-btn.is-active {
    border-color: #0d47a1;
    background-color: #eff6ff;
    color: #0d47a1;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.12);
}

.mf-member-btn.is-active i {
    color: #0d47a1;
}

/* 단면 가이드 및 치수 입력 영역 */
.mf-diagram-box {
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.mf-dim-group {
    display: none;
}

.mf-dim-group.is-visible {
    display: block;
}

.mf-form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.mf-unit-wrap {
    position: relative;
}

.mf-unit-wrap .form-control {
    padding-right: 46px;
    text-align: right;
    font-weight: 600;
}

.mf-unit-text {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    pointer-events: none;
}

/* 우측 실시간 연산 요약 패널 (Sticky) */
.mf-calc-sticky {
    position: sticky;
    top: 100px;
}

.mf-calc-panel {
    background: #1e293b;
    color: #ffffff;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.mf-calc-panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mf-calc-item {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.mf-calc-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.mf-calc-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: -0.02em;
}

.mf-calc-value span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-left: 4px;
}

.mf-calc-note {
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-top: 6px;
}

.mf-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
    background-color: #0284c7;
    border: none;
    color: #ffffff;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.mf-submit-btn:hover {
    background-color: #0369a1;
}

/* 신청결과확인 (result_inc.php) 전용 */
.mf-auth-box {
    max-width: 480px;
    margin: 20px auto;
    background: #ffffff;
    border: 1px solid #e2e6ed;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.mf-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.mf-status-wait {
    background-color: #fef3c7;
    color: #b45309;
}

.mf-status-done {
    background-color: #dcfce7;
    color: #15803d;
}

/* 반응형 대응 */
@media (max-width: 991px) {
    .mf-calc-sticky {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 767px) {
    .mf-member-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    .mf-step-card {
        padding: 20px 18px;
    }
}

/* 단면 도면 SVG 및 캡션 */
.mf-diagram-svg {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.mf-diagram-caption {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

/* AJAX 신청 완료 결과 카드 */
.mf-result-complete {
    max-width: 820px;
    margin: 0 auto;
}

.mf-complete-icon {
    font-size: 3.5rem;
    color: #16a34a;
    margin-bottom: 12px;
}

.mf-complete-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.mf-complete-code-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 22px;
}

.mf-complete-code-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e40af;
}

.mf-complete-code-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0d47a1;
    letter-spacing: 0.04em;
}

/* 관리자 답변 줄바꿈 유지 및 조회 결과 테이블 */
.mf-pre-line {
    white-space: pre-line;
}

.mf-result-table th {
    width: 18%;
    background-color: #f8fafc;
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
}

.mf-result-table td {
    width: 32%;
    color: #1e293b;
    font-size: 0.92rem;
}