﻿body { background:#f8f9fa; overflow-x:hidden; }
.section-block { padding: 4.5rem 0; }
.hero { background:linear-gradient(135deg,#0d6efd,#6f42c1); color:white; padding:100px 0; text-align:center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height:1.15; }
.hero p { max-width: 640px; margin: 0.75rem auto 0; font-size: clamp(.95rem, 2.2vw, 1.1rem); opacity:.95; }
.typing { border-right:2px solid white; white-space:nowrap; overflow:hidden; display:inline-block; max-width:100%; }
.card { border:none; border-radius:15px; box-shadow:0 5px 20px rgba(0,0,0,0.05); transition:0.3s; }
.card:hover { transform:translateY(-8px) scale(1.02); }
.section-title { font-weight:700; margin-bottom:30px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.filter-box { background:white; padding:20px; border-radius:15px; box-shadow:0 5px 20px rgba(0,0,0,0.05); }
.search-submit { width:auto; }
.step-panel {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.step-label {
    display:flex;
    align-items:center;
    gap:.75rem;
    margin-bottom:.85rem;
}
.step-badge {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:.95rem;
    font-weight:700;
    color:#0f172a;
    background:#e2e8f0;
}
.step-title {
    font-weight: 700;
    margin: 0;
}
.step-help {
    font-size: .9rem;
    color: #64748b;
    margin-top: .35rem;
}
.step-panel.step-focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96,165,250,.14), 0 16px 30px rgba(37,99,235,.12);
    animation: stepPulse 1.5s ease-in-out infinite;
}
.step-panel.step-focus .step-badge {
    color: white;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}
.submit-wrap {
    display:grid;
    gap:.75rem;
    margin-top:.25rem;
}
.submit-panel {
    border-radius: 20px;
    padding: .4rem;
    background: linear-gradient(180deg, #e9eef8 0%, #d9e4f5 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(15, 23, 42, 0.08);
}
.search-submit {
    width:auto;
    border: 0;
    border-radius: 16px;
    min-height: 58px;
    font-weight: 700;
    letter-spacing: .01em;
    background: linear-gradient(180deg, #7aa8ff 0%, #4a86f7 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 18px rgba(74,134,247,.28);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}
.search-submit:not(:disabled):hover {
    transform: translateY(-1px);
}
.search-submit:disabled {
    background: linear-gradient(180deg, #9dbbf3 0%, #7ea1df 100%);
    color: rgba(255,255,255,.92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 14px rgba(126,161,223,.2);
}
.search-submit .submit-inner {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.65rem;
}
.search-submit .submit-icon {
    width: 30px;
    height: 30px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.submit-hint {
    text-align:center;
    font-size:.86rem;
    color:#64748b;
    min-height: 1.3rem;
}
.search-submit.is-ready {
    background: linear-gradient(135deg, #0d6efd 0%, #2563eb 45%, #7c3aed 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 14px 28px rgba(37,99,235,.34);
    animation: ctaPulse 1.8s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% {
        box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 14px 28px rgba(37,99,235,.34);
        transform: translateY(0);
    }
    50% {
        box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 18px 36px rgba(124,58,237,.42);
        transform: translateY(-1px) scale(1.01);
    }
}
@keyframes stepPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(96,165,250,.14), 0 16px 30px rgba(37,99,235,.12);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(96,165,250,.10), 0 20px 36px rgba(124,58,237,.14);
    }
}
.letter-box a { width:36px; height:36px; display:flex; align-items:center; justify-content:center; }
.choice-card {
    position: relative;
    cursor: pointer;
    border: 1px solid #d9e4f5;
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 20px rgba(15,23,42,.05);
}
.choice-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(148,163,184,.35), rgba(255,255,255,.8));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.choice-card .check-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: white;
    font-size: 14px;
}
.choice-card.active {
    border-color: #0d6efd;
    background: #eaf2ff;
    box-shadow: 0 10px 30px rgba(13,110,253,0.18);
}
.choice-card:not(.active):hover {
    border-color: #93c5fd;
    box-shadow: 0 14px 28px rgba(59,130,246,.1);
    transform: translateY(-2px);
}
.choice-card.active .check-icon {
    display: inline-flex;
}
.choice-card .choice-icon {
    font-size: 2rem;
    line-height: 1;
}
.suggestion-chip {
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 999px;
    padding: .45rem .9rem;
    font-size: .9rem;
    cursor: pointer;
    transition: .2s;
}
.suggestion-chip:hover,
.suggestion-chip.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}
.link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
.mobile-scroll-row {
    display:flex;
    gap:1rem;
    overflow-x:auto;
    padding-bottom:.4rem;
    scrollbar-width:thin;
}
.mobile-scroll-row > * {
    flex: 0 0 280px;
}
.guide-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(36px,1fr));
    gap:6px;
}
.region-strip {
    display: grid;
    grid-template-columns: repeat(12, minmax(180px, 1fr));
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: thin;
}
.region-card {
    min-height: 150px;
    border-radius: 22px;
    padding: 1.25rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d6efd, #1f6feb);
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.18);
}
.region-card::after {
    content: "";
    position: absolute;
    right: -25px;
    bottom: -25px;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
}
.region-card h5,
.region-card p,
.region-card span {
    position: relative;
    z-index: 1;
}
.region-choice-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.region-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.region-search-wrap {
    flex: 1 1 280px;
    max-width: 420px;
}
.region-search-group {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .45rem;
    border-radius: 999px;
    border: 1px solid #dbe7ff;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15,23,42,.04);
}
.region-search-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--site-primary);
    background: rgba(13,110,253,.08);
    flex-shrink: 0;
}
.region-search-input {
    border: 0;
    background: transparent;
    box-shadow: none !important;
    min-width: 0;
}
.region-search-input::placeholder {
    color: #94a3b8;
}
.region-type-btn {
    border: 1px solid #dbe7ff;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: .72rem 1.05rem;
    font-weight: 700;
    transition: .2s ease;
    box-shadow: 0 10px 22px rgba(15,23,42,.04);
}
.region-type-btn:hover,
.region-type-btn:focus {
    color: var(--site-primary);
    border-color: #93c5fd;
    background: #eff6ff;
}
.region-type-btn.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #0d6efd, #7c3aed);
    box-shadow: 0 14px 28px rgba(37,99,235,.22);
}
.region-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.region-link:hover {
    color: inherit;
}
.region-card-hint {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .01em;
    backdrop-filter: blur(8px);
}
.region-card.region-alt-1 { background: linear-gradient(135deg, #198754, #20c997); box-shadow: 0 12px 30px rgba(25, 135, 84, 0.18); }
.region-card.region-alt-2 { background: linear-gradient(135deg, #6f42c1, #d63384); box-shadow: 0 12px 30px rgba(111, 66, 193, 0.18); }
.region-card.region-alt-3 { background: linear-gradient(135deg, #fd7e14, #dc3545); box-shadow: 0 12px 30px rgba(253, 126, 20, 0.18); }
.region-card.region-alt-4 { background: linear-gradient(135deg, #0dcaf0, #0d6efd); box-shadow: 0 12px 30px rgba(13, 202, 240, 0.18); }
@media (max-width: 991.98px) {
    .hero { padding: 80px 0 72px; }
    .section-block { padding: 4rem 0; }
}
@media (max-width: 768px) {
    .region-strip {
        grid-template-columns: repeat(12, minmax(240px, 1fr));
    }
    .filter-box { padding: 16px; }
    .choice-card { padding: 1.15rem 1rem; }
    .choice-card .choice-icon { font-size: 1.7rem; }
    .section-title { margin-bottom: 20px; }
    .mobile-scroll-row > * { flex-basis: 240px; }
    .card:hover { transform:none; }
    .section-block { padding: 3.25rem 0; }
}
@media (max-width: 575.98px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .hero { padding: 64px 0 56px; }
    .section-block { padding: 2.75rem 0; }
    .typing {
        white-space: normal;
        border-right: none;
        min-height: 2.6em;
    }
    .navbar-brand { font-size: 1rem; }
    .filter-box { padding: 14px; border-radius: 18px; }
    .step-panel { border-radius: 16px; padding: .85rem; }
    .step-badge { width: 30px; height: 30px; font-size: .85rem; }
    .choice-card {
        min-height: 154px;
        border-radius: 16px;
    }
    .choice-card h5 { font-size: 1rem; }
    .choice-card .text-muted { font-size: .82rem; }
    .check-icon { top: 10px; right: 10px; }
    .letter-box { gap: .4rem !important; }
    .letter-box a {
        width: 40px;
        height: 40px;
        font-size: .85rem;
    }
    .region-strip {
        grid-template-columns: repeat(12, minmax(220px, 1fr));
        gap: .85rem;
    }
    .region-card {
        min-height: 138px;
        padding: 1rem;
        border-radius: 18px;
    }
    .region-choice-bar {
        gap: .55rem;
        margin-bottom: 1rem;
    }
    .region-toolbar {
        margin-bottom: 1rem;
    }
    .region-search-wrap {
        max-width: none;
        flex-basis: 100%;
    }
    .region-type-btn {
        padding: .65rem .9rem;
        font-size: .86rem;
    }
    .region-card-hint {
        font-size: .78rem;
        padding: .4rem .72rem;
    }
    .guide-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .search-submit {
        width:100%;
    }
    .submit-panel {
        border-radius: 18px;
    }
    .search-submit {
        min-height: 56px;
        border-radius: 14px;
    }
    .mobile-stack {
        flex-direction: column;
        align-items: stretch !important;
    }
    .mobile-stack .btn {
        width: 100%;
    }
    .top-name-card strong,
    .popular-card h5,
    .blog-card h5 {
        font-size: 1rem;
    }
    .popular-actions {
        flex-direction: column;
    }
    .popular-actions .btn {
        width: 100%;
    }
    .mobile-scroll-row {
        gap: .75rem;
    }
    .mobile-scroll-row > * {
        flex-basis: 210px;
    }
}
</style>
