/* page-selfcheck.css (extracted from selfcheck.html style blocks 2+) */

/* ======================================================================
     DESIGN SYSTEM : Premium Insight
     Concept: Trust, Clarity, Flow
     ====================================================================== */
  :root {
      --primary: #0f172a;
      --primary-light: #334155;
      --gold: #d4af37;
      --gold-soft: #fcf8e8;
      --bg-body: #f1f5f9;
      --surface: #ffffff;
      --border: #e2e8f0;
      --text-main: #1e293b;
      --text-sub: #64748b;
      --radius: 16px;
      --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
      --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }

  body {
      background-color: var(--bg-body);
      font-family: "Pretendard Variable", Pretendard, sans-serif;
      color: var(--text-main);
      line-height: 1.7;
      padding-top: var(--header-h);
  }

  .sc-container {
      max-width: 1100px;
      margin: 0 auto;
      padding-bottom: 120px;
  }

/* --- Hero Section --- */
.hero-area {
    background: linear-gradient(180deg, var(--primary) 0%, #1e293b 100%);
    color: #fff;
    padding: clamp(72px, 7vw, 96px) 20px clamp(132px, 10vw, 168px);
    text-align: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.hero-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(ellipse 820px 520px at 78% 20%, rgba(212, 175, 55, 0.14), transparent 62%),
      radial-gradient(ellipse 680px 520px at 16% 78%, rgba(255, 255, 255, 0.10), transparent 60%),
      repeating-linear-gradient(60deg, transparent 0px, transparent 79px, rgba(255, 255, 255, 0.045) 79px, rgba(255, 255, 255, 0.045) 80px),
      repeating-linear-gradient(-60deg, transparent 0px, transparent 79px, rgba(255, 255, 255, 0.045) 79px, rgba(255, 255, 255, 0.045) 80px),
      radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
    background-size: auto, auto, auto, auto, 38px 38px, 180px 180px;
    background-position: center, center, 0 0, 0 0, 0 0, 0 0;
    background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat;
    animation: heroMeshDrift 55s linear infinite;
    opacity: 0.92;
    filter: saturate(0.96) contrast(1.06);
}
.hero-area::after {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -1px;
    height: 180px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
      to bottom,
      rgba(241, 245, 249, 0) 0%,
      rgba(241, 245, 249, 0.35) 30%,
      rgba(241, 245, 249, 0.78) 70%,
      var(--bg-body) 100%
    );
}
.hero-area .inner {
    position: relative;
    z-index: 2;
}
.hero-area .inner.hero-intro {
    gap: 8px;
}

@keyframes heroMeshDrift {
    from { transform: translate(0, 0); }
    to { transform: translate(80px, 46px); }
}
.hero-area .hero-attorney {
    margin-top: 10px;
}
.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #fcd34d;
    font-size: 12px; font-weight: 700;
    padding: 6px 14px; border-radius: 99px;
    margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;
}
.hero-title {
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 900;
    margin-bottom: 14px;
    line-height: 1.22;
    letter-spacing: -0.03em;
    position: relative; z-index: 2;
}
.hero-desc {
    /* font-size / color → site-common.css .hero-intro .seo-lead 에서 통합 관리 */
    max-width: 600px; margin: 0 auto;
    position: relative; z-index: 2; word-break: keep-all;
}

@media (prefers-reduced-motion: reduce) {
    .hero-area::before { animation: none !important; }
}

/* --- Main Card --- */
.main-card {
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    margin: -100px 20px 0;
    padding: 40px;
    position: relative;
    z-index: 10;
}

/* --- Tab Navigation --- */
.mode-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 14px;
    margin-bottom: 40px;
}
.mode-btn {
    flex: 1;
    padding: 14px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 16px; font-weight: 700;
    color: var(--text-sub);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mode-btn.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.mode-btn i { font-size: 14px; }

/* --- Question Group --- */
.q-section {
    margin-bottom: 50px;
    animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.q-header {
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}
.q-step {
    color: var(--gold); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
}
.q-title-lg {
    font-size: 22px; font-weight: 800; color: var(--primary); margin-top: 4px;
}
.q-desc-box {
    background: #f8fafc;
    border-left: 4px solid var(--gold);
    padding: 16px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.75;
}

/* --- Diagram Placeholder Style --- */
.diagram-container {
    margin: 20px 0 30px;
    padding: 20px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
}
.diagram-caption {
    font-size: 13px; color: var(--text-sub); margin-top: 10px; font-style: italic;
}

/* --- Selection Cards (Radio Replacement) --- */
.q-item { margin-bottom: 40px; }
.q-label {
    font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 16px; display: block;
}
.progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 26px;
}
.progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--text-sub);
}
.progress-title {
    font-weight: 700;
    color: var(--text-main);
    text-align: right;
}
.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), #1c3254);
    transition: width 0.3s ease;
}
.step-controls {
    display: flex;
    gap: 12px;
    margin: 26px 0 6px;
}
.step-btn {
    flex: 1;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.step-btn.primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.step-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.sms-status-wrap {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sms-status-text {
    font-size: 14px;
    color: var(--text-sub);
}
.sms-resend-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.sms-resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.select-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.select-full { grid-template-columns: 1fr; }

.select-card {
    position: relative;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}
.select-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.select-card input {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.select-content {
    display: flex; align-items: center; gap: 12px;
}
.select-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
}
.select-text {
    font-size: 15px; font-weight: 500; color: var(--text-sub);
}

/* Checked State */
.select-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--gold-soft);
}
.select-card:has(input:checked) .select-icon {
    border-color: var(--primary);
    background: var(--primary);
}
.select-card:has(input:checked) .select-icon::after {
    content:''; position: absolute; top:50%; left:50%; transform:translate(-50%, -50%);
    width: 8px; height: 8px; background: #fff; border-radius: 50%;
}
.select-card:has(input:checked) .select-text {
    color: var(--primary); font-weight: 700;
}

/* --- Personal Info Section --- */
.info-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border);
    margin-top: 40px;
}
.info-title {
    font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}
.form-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
.form-input {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 15px; outline: none; transition: 0.2s;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1); }
.privacy-check {
    font-size: 14px; color: var(--text-sub); display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.privacy-check input { transform: translateY(1px); }

.privacy-detail {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-sub);
    background: #e5e7eb33;
    border-radius: 8px;
    padding: 10px 12px;
    line-height: 1.6;
}

/* --- Result Box (Report Style) --- */
.report-box {
    display: none;
    border-top: 4px solid var(--gold);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 40px;
    margin-top: 40px;
    text-align: center;
    position: fixed;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90%; max-width: 600px;
    z-index: 1000;
    max-height: 90vh; overflow-y: auto;
}
.report-overlay {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
    z-index: 999;
}
.report-badge {
    display: inline-block; padding: 6px 12px; background: var(--primary); color: #fff;
    border-radius: 6px; font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.report-title {
    font-size: 26px; font-weight: 800; margin-bottom: 20px; line-height: 1.3;
}
.report-content {
    background: #f1f5f9; padding: 20px; border-radius: 12px;
    text-align: left; font-size: 15px; color: var(--text-main); margin-bottom: 30px;
}
.btn-action-group {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.btn-big {
    padding: 16px; border-radius: 12px; font-weight: 700; font-size: 16px; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s;
}
.btn-navy { background: var(--primary); color: #fff; }
.btn-navy:hover { background: #1e293b; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b8934d; }
.btn-close {
    position: absolute; top: 20px; right: 20px; font-size: 24px; color: #94a3b8; cursor: pointer;
}

/* --- Submit Button --- */
.submit-area { text-align: center; margin-top: 40px; }
.btn-submit-main {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: #fff; padding: 18px 60px; border-radius: 99px;
    font-size: 18px; font-weight: 800; border: none; cursor: pointer;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s;
}
.btn-submit-main:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(15, 23, 42, 0.3); }

/* Responsive */
        @media (max-width: 768px) {
        .main-card { padding: 24px 20px; margin-top: -60px; }
        .select-grid { grid-template-columns: 1fr; }
        .form-row { grid-template-columns: 1fr; }
        .btn-action-group { grid-template-columns: 1fr; }
        .progress-label { flex-direction: column; align-items: flex-start; gap: 6px; }
        .step-controls { flex-direction: column; }
        .sms-status-wrap { flex-direction: column; align-items: flex-start; }
        .sms-resend-btn { width: 100%; text-align: center; }
}

        @media (max-width: 640px) {
            body { font-size: 15px; line-height: 1.75; letter-spacing: -0.01em; }
            p, li { line-height: 1.7; }
            .nav-link { font-size: 15px; }
        }

        /* Selfcheck: keep the bottom CTA bar visible on desktop as well (matches the user's request for 하단푸터바). */
        @media (min-width:993px){.desktop-right-cta{display:none;}.fixed-cta-bar{display:block;}body.has-fixed-cta{padding-bottom:calc(60px + env(safe-area-inset-bottom,0px))!important;}}
