/* ============================================================
   등록기준 자가진단 (Hero overlay self-check widget)
   - 데스크톱: 히어로 우측에 오버레이 카드
   - 태블릿/모바일(<=1024px): 히어로 아래 일반 흐름으로 배치
   - 애플풍 프로스티드 글래스 + 사이트 블루 액센트
   ============================================================ */

.hero-stage {
    position: relative;
}

/* 오버레이 레이어 (데스크톱) */
.hero-diagnosis {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.hero-diagnosis__inner {
    width: min(100% - 60px, var(--main-max));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ── 카드 본체 ── */
.selfcheck {
    pointer-events: auto;
    width: 400px;
    max-width: 100%;
    padding: 26px 26px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 30px 70px rgba(8, 20, 40, 0.35);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    color: var(--main-text);
}

.selfcheck__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.selfcheck__eyebrow {
    margin: 0 0 4px;
    color: var(--main-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.selfcheck__title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.selfcheck__badge {
    flex: none;
    margin-top: 2px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(31, 79, 139, 0.08);
    color: var(--main-primary);
    font-size: 12px;
    font-weight: 700;
}

/* ── 입력 필드 ── */
.selfcheck__field {
    margin-bottom: 14px;
}

.selfcheck__field label {
    display: block;
    margin-bottom: 7px;
    color: var(--main-muted);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.selfcheck__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.selfcheck select,
.selfcheck input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--main-line);
    border-radius: 12px;
    background: #fff;
    color: var(--main-text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
}

.selfcheck input::placeholder {
    color: #aab2bd;
    font-weight: 500;
}

.selfcheck select:focus,
.selfcheck input:focus {
    outline: none;
    border-color: var(--main-primary);
    box-shadow: 0 0 0 3px rgba(31, 79, 139, 0.15);
}

/* 커스텀 셀렉트 캐럿 */
.selfcheck__select {
    position: relative;
}

.selfcheck__select::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--main-muted);
    border-bottom: 2px solid var(--main-muted);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.selfcheck select {
    padding-right: 38px;
    cursor: pointer;
}

.selfcheck__hint {
    margin: 2px 0 0;
    color: var(--main-muted);
    font-size: 11.5px;
    line-height: 1.6;
}

/* ── 게이지 ── */
.selfcheck__gauge {
    margin: 22px 0 0;
}

.selfcheck__bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: visible;
}

.selfcheck__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--main-primary), #2f8ccf);
    transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.selfcheck__tick {
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: 66.66%;
    width: 2px;
    background: var(--main-text);
    border-radius: 2px;
}

.selfcheck__tick i {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--main-text);
    white-space: nowrap;
}

.selfcheck__verdict {
    margin: 20px 0 0;
    min-height: 2.6em;
    color: var(--main-muted);
    font-size: 13.5px;
    line-height: 1.65;
    word-break: keep-all;
}

.selfcheck__verdict b {
    color: var(--main-text);
    font-weight: 800;
}

.selfcheck__verdict b.ok {
    color: var(--main-primary);
}

/* ── 필요 요건 ── */
.selfcheck__reqs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 4px 0 20px;
}

.selfcheck__reqs > div {
    padding: 12px 6px;
    border-radius: 12px;
    background: #f4f7fb;
    text-align: center;
}

.selfcheck__reqs dt {
    margin: 0 0 5px;
    color: var(--main-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.selfcheck__reqs dd {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ── CTA ── */
.selfcheck__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-radius: 14px;
    background: var(--main-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 14px 30px rgba(31, 79, 139, 0.28);
    transition: background 0.18s ease, transform 0.18s ease;
}

.selfcheck__cta:hover,
.selfcheck__cta:focus {
    background: var(--main-primary-dark);
    transform: translateY(-1px);
}

.selfcheck__note {
    margin: 14px 0 0;
    color: #9aa3af;
    font-size: 11px;
    line-height: 1.6;
    word-break: keep-all;
}

/* ── 데스크톱: 히어로 좌측 텍스트가 카드와 겹치지 않도록 폭 조정 ── */
@media (min-width: 1025px) {
    .hero-stage .hero-slide__content {
        padding-right: 460px;
    }

    .hero-stage .hero-slide__title {
        max-width: 560px;
        font-size: 46px;
    }

    .hero-stage .hero-slide__desc {
        max-width: 480px;
    }
}

/* 화살표 여백 확보 구간에서도 컨텐츠 폭 유지 */
@media (min-width: 1025px) and (max-width: 1440px) {
    .hero-stage .hero-slide__content {
        padding-right: 440px;
    }
}

/* ── 태블릿/모바일: 히어로 아래 일반 흐름으로 ── */
@media (max-width: 1024px) {
    .hero-diagnosis {
        position: static;
        z-index: auto;
        pointer-events: auto;
        background: #eef2f7;
        padding: 40px 0 44px;
    }

    .hero-diagnosis__inner {
        width: min(100% - 40px, var(--main-max));
        height: auto;
        justify-content: center;
    }

    .selfcheck {
        width: 100%;
        max-width: 460px;
        background: #fff;
        border-color: var(--main-line);
        box-shadow: 0 20px 50px rgba(8, 20, 40, 0.1);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero-stage .hero-slide__content {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .selfcheck {
        padding: 22px 18px 20px;
    }

    .selfcheck__reqs dd {
        font-size: 15px;
    }
}
