/*
 * Result Checker 9th Class 2026 — Frontend
 * Distinctive bordered tool (top accent bar + corner notches). Red + amber theme.
 */

.rc9-tool, .rc9-tool * { box-sizing: border-box; }

.rc9-tool {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.55;
    color: #1f2937;
    margin: 1.9rem 0;
    max-width: 100%;
}

/* ===== Card: distinctive border with thick top bar + ring ===== */
.rc9-card {
    --rc9-accent: #b91c1c;
    --rc9-accent-2: #991b1b;
    --rc9-gold: #f59e0b;
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 5px solid var(--rc9-accent);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(185,28,28,.08),
        0 0 0 6px rgba(185,28,28,.06),
        0 16px 36px -14px rgba(185,28,28,.28);
}
/* corner accent notches for a distinct look */
.rc9-card::before,
.rc9-card::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    border: 3px solid var(--rc9-gold);
    z-index: 3;
    pointer-events: none;
}
.rc9-card::before { top: 12px; left: 12px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.rc9-card::after  { bottom: 12px; right: 12px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }

/* ===== Header ===== */
.rc9-head {
    background: linear-gradient(135deg, var(--rc9-accent) 0%, var(--rc9-accent-2) 100%);
    color: #fff;
    padding: 22px 22px 0;
    position: relative; z-index: 2;
}
.rc9-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 20px; }
.rc9-head-text { flex: 1; min-width: 0; }
.rc9-head-caption { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; opacity: .82; margin-bottom: 6px; }
.rc9-head-title { font-size: 19px; font-weight: 800; line-height: 1.3; margin: 0; color: #fff; letter-spacing: -.2px; }
.rc9-head-date { text-align: right; flex-shrink: 0; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.2); }
.rc9-date-label { display: block; font-size: 10px; letter-spacing: .7px; text-transform: uppercase; opacity: .8; font-weight: 600; margin-bottom: 2px; }
.rc9-date-value { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; }
.rc9-head-accent { height: 4px; background: linear-gradient(90deg, var(--rc9-gold) 0%, var(--rc9-gold) 40%, transparent 100%); }

/* ===== Body ===== */
.rc9-body { padding: 20px 22px 22px; position: relative; z-index: 2; }

/* ===== Selected (master) ===== */
.rc9-step { margin-bottom: 4px; }
.rc9-selected { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 12px 14px; margin: 16px 0 4px; }
.rc9-selected-name { font-weight: 700; font-size: 15px; color: #991b1b; }
.rc9-selected-meta { font-size: 12px; color: #b91c1c; margin-top: 2px; }
.rc9-dot { margin: 0 6px; opacity: .6; }

/* ===== Tabs ===== */
.rc9-tabs { display: flex; gap: 4px; padding: 4px; background: #f6f1f1; border-radius: 10px; margin: 16px 0 18px; }
.rc9-tab { flex: 1; background: transparent; border: none; padding: 10px 6px; margin: 0; font-size: 13px; font-weight: 600; color: #6b7280; cursor: pointer; border-radius: 7px; white-space: nowrap; font-family: inherit; transition: background .18s, color .18s, box-shadow .18s; }
.rc9-tab:hover { color: #111827; }
.rc9-tab.is-active { background: #fff; color: var(--rc9-accent); box-shadow: 0 1px 2px rgba(15,23,42,.08); }

/* ===== Panels ===== */
.rc9-panel[hidden] { display: none; }

/* ===== Form ===== */
.rc9-label { display: block; font-size: 11px; color: #6b7280; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; margin: 0 0 8px; }
.rc9-req { color: #dc2626; }
.rc9-input { width: 100%; padding: 13px 15px; font-size: 15px; font-family: inherit; font-weight: 500; border: 2px solid #f0dede; border-radius: 10px; background: #fffcfc; color: #111827; transition: border-color .18s, background .18s, box-shadow .18s; appearance: none; -webkit-appearance: none; }
.rc9-input::placeholder { color: #9ca3af; font-weight: 400; }
.rc9-input:focus { outline: none; border-color: var(--rc9-accent); background: #fff; box-shadow: 0 0 0 4px rgba(185,28,28,.12); }
.rc9-input.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,.12); animation: rc9-shake .3s; }
@keyframes rc9-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }

.rc9-or { display: flex; align-items: center; text-align: center; margin: 14px 0; color: #9ca3af; font-size: 12px; }
.rc9-or::before, .rc9-or::after { content: ''; flex: 1; height: 1px; background: #f0dede; }
.rc9-or span { padding: 0 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }

/* ===== Select ===== */
.rc9-select-wrap { position: relative; margin-top: 8px; }
.rc9-select { padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }

/* ===== Button ===== */
.rc9-btn { width: 100%; margin-top: 16px; padding: 14px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: linear-gradient(135deg, var(--rc9-accent) 0%, var(--rc9-accent-2) 100%); color: #fff; font-size: 15px; font-weight: 700; font-family: inherit; border: none; border-radius: 10px; cursor: pointer; box-shadow: 0 4px 14px -4px rgba(185,28,28,.5); transition: transform .12s, box-shadow .18s, opacity .18s; }
.rc9-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -4px rgba(185,28,28,.6); }
.rc9-btn:active { transform: translateY(0); }
.rc9-btn .rc9-spin { display: none; animation: rc9-rotate .8s linear infinite; }
.rc9-btn.is-loading { opacity: .85; cursor: progress; }
.rc9-btn.is-loading .rc9-spin { display: inline-block; }
.rc9-btn.is-loading svg:not(.rc9-spin) { display: none; }
@keyframes rc9-rotate { to { transform: rotate(360deg); } }

/* ===== SMS ===== */
.rc9-sms-intro { font-size: 13.5px; color: #4b5563; margin: 0 0 14px; }
.rc9-sms-row { display: flex; gap: 12px; }
.rc9-sms-cell { flex: 1; background: #fdf8f8; border: 1px solid #f0dede; border-radius: 10px; padding: 12px 14px; }
.rc9-sms-cap { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: #6b7280; font-weight: 700; margin-bottom: 6px; }
.rc9-sms-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc9-sms-line code { font-size: 14px; font-weight: 700; color: #111827; background: none; padding: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.rc9-sms-code { color: var(--rc9-accent) !important; }
.rc9-copy { flex-shrink: 0; background: #fff; border: 1px solid #f0dede; border-radius: 6px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: #6b7280; cursor: pointer; transition: all .15s; }
.rc9-copy:hover { border-color: var(--rc9-accent); color: var(--rc9-accent); }
.rc9-copy.is-copied { background: var(--rc9-accent); border-color: var(--rc9-accent); color: #fff; }

/* ===== Loading ===== */
.rc9-loading { margin-top: 16px; }
.rc9-loading[hidden] { display: none; }
.rc9-loading-bar { height: 8px; background: #f3e0e0; border-radius: 99px; overflow: hidden; }
.rc9-loading-fill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--rc9-accent), var(--rc9-gold)); border-radius: 99px; }
.rc9-loading-text { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12.5px; color: #4b5563; font-weight: 500; }
.rc9-count { background: var(--rc9-accent); color: #fff; font-weight: 700; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }

/* ===== Official button ===== */
.rc9-official { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 12px 16px; text-decoration: none; background: #fff; color: var(--rc9-accent); border: 2px solid var(--rc9-accent); border-radius: 10px; font-size: 14px; font-weight: 700; font-family: inherit; transition: background .16s, color .16s, transform .12s; }
.rc9-official:hover { background: var(--rc9-accent); color: #fff; transform: translateY(-1px); }

/* ===== Notice ===== */
.rc9-notice { display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; padding: 11px 13px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 9px; font-size: 12.5px; color: #991b1b; line-height: 1.5; }
.rc9-notice-icon { flex-shrink: 0; margin-top: 1px; color: #dc2626; }
.rc9-pill { display: inline-block; background: var(--rc9-accent); color: #fff; font-weight: 700; padding: 1px 8px; border-radius: 99px; font-size: 12px; }

/* ===== SEO content block ===== */
.rc9-seo { margin-top: 14px; padding: 14px 16px; background: #fafafa; border: 1px solid #eee; border-left: 4px solid var(--rc9-accent); border-radius: 8px; font-size: 13.5px; color: #4b5563; line-height: 1.6; }
.rc9-seo p { margin: 0 0 10px; }
.rc9-seo-list { margin: 0; padding-left: 18px; }
.rc9-seo-list li { margin-bottom: 5px; }

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .rc9-head-title { font-size: 17px; }
    .rc9-sms-row { flex-direction: column; }
    .rc9-tab { font-size: 12.5px; padding: 9px 4px; }
    .rc9-body { padding: 18px 16px 18px; }
    .rc9-head { padding: 18px 16px 0; }
}

/* ===== Dark mode ===== */
@media (prefers-color-scheme: dark) {
    .rc9-tool { color: #e5e7eb; }
    .rc9-card { background: #251a1a; border-color: #3a2a2a; border-top-color: #ef4444; }
    .rc9-tabs { background: #2f2222; }
    .rc9-tab { color: #b5a0a0; }
    .rc9-tab.is-active { background: #251a1a; color: #fca5a5; }
    .rc9-input { background: #1c1414; border-color: #43302f; color: #f1f5f9; }
    .rc9-input:focus { background: #1c1414; }
    .rc9-sms-cell { background: #1c1414; border-color: #43302f; }
    .rc9-sms-line code { color: #f1f5f9; }
    .rc9-copy { background: #251a1a; border-color: #43302f; }
    .rc9-selected { background: #2f2222; border-color: #7f1d1d; }
    .rc9-selected-name { color: #fca5a5; }
    .rc9-selected-meta { color: #f87171; }
    .rc9-or, .rc9-sms-intro { color: #b5a0a0; }
    .rc9-loading-bar { background: #43302f; }
    .rc9-loading-text { color: #b5a0a0; }
    .rc9-official { background: #251a1a; color: #fca5a5; border-color: #ef4444; }
    .rc9-official:hover { background: #ef4444; color: #fff; }
    .rc9-notice { background: #2f2222; border-color: #7f1d1d; color: #fca5a5; }
    .rc9-seo { background: #1c1414; border-color: #3a2a2a; border-left-color: #ef4444; color: #b5a0a0; }
}
