/*
 * Result Checker 12th Class 2026 — Frontend
 * Distinctive bordered tool. Purple + amber theme. Inherits theme font.
 */

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

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

/* ===== Card with distinctive double border ===== */
.rc12-card {
    --rc12-accent: #6d28d9;
    --rc12-accent-2: #5b21b6;
    --rc12-gold: #f59e0b;
    position: relative;
    background: #fff;
    border: 2px solid var(--rc12-accent);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 0 0 5px rgba(109,40,217,.10),       /* outer halo ring */
        0 14px 34px -12px rgba(109,40,217,.30);
}
/* dashed inner accent frame for a distinct look */
.rc12-card::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1.5px dashed rgba(109,40,217,.22);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}
.rc12-head, .rc12-body { position: relative; z-index: 2; }

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

/* ===== Body ===== */
.rc12-body { padding: 20px 22px 22px; }

/* ===== Selected (master) ===== */
.rc12-step { margin-bottom: 4px; }
.rc12-selected {
    background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 10px;
    padding: 12px 14px; margin: 16px 0 4px;
}
.rc12-selected-name { font-weight: 700; font-size: 15px; color: #5b21b6; }
.rc12-selected-meta { font-size: 12px; color: #7c3aed; margin-top: 2px; }
.rc12-dot { margin: 0 6px; opacity: .6; }

/* ===== Tabs ===== */
.rc12-tabs {
    display: flex; gap: 4px; padding: 4px; background: #f3f0fb;
    border-radius: 10px; margin: 16px 0 18px;
}
.rc12-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;
}
.rc12-tab:hover { color: #111827; }
.rc12-tab.is-active { background: #fff; color: var(--rc12-accent); box-shadow: 0 1px 2px rgba(15,23,42,.08); }

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

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

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

/* ===== Select ===== */
.rc12-select-wrap { position: relative; margin-top: 8px; }
.rc12-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 ===== */
.rc12-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(--rc12-accent) 0%, var(--rc12-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(109,40,217,.5);
    transition: transform .12s, box-shadow .18s, opacity .18s;
}
.rc12-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -4px rgba(109,40,217,.6); }
.rc12-btn:active { transform: translateY(0); }
.rc12-btn .rc12-spin { display: none; animation: rc12-rotate .8s linear infinite; }
.rc12-btn.is-loading { opacity: .85; cursor: progress; }
.rc12-btn.is-loading .rc12-spin { display: inline-block; }
.rc12-btn.is-loading svg:not(.rc12-spin) { display: none; }
@keyframes rc12-rotate { to { transform: rotate(360deg); } }

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

/* ===== Loading (10s) ===== */
.rc12-loading { margin-top: 16px; }
.rc12-loading[hidden] { display: none; }
.rc12-loading-bar { height: 8px; background: #ece8f8; border-radius: 99px; overflow: hidden; }
.rc12-loading-fill {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--rc12-accent), var(--rc12-gold));
    border-radius: 99px;
}
.rc12-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; }
.rc12-count {
    background: var(--rc12-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 site button ===== */
.rc12-official {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 14px; padding: 12px 16px; text-decoration: none;
    background: #fff; color: var(--rc12-accent);
    border: 2px solid var(--rc12-accent); border-radius: 10px;
    font-size: 14px; font-weight: 700; font-family: inherit;
    transition: background .16s, color .16s, transform .12s;
}
.rc12-official:hover { background: var(--rc12-accent); color: #fff; transform: translateY(-1px); }

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

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

/* ===== Dark mode ===== */
@media (prefers-color-scheme: dark) {
    .rc12-tool { color: #e5e7eb; }
    .rc12-card { background: #1e1b2e; border-color: #7c3aed; box-shadow: 0 0 0 5px rgba(124,58,237,.18), 0 14px 34px -12px rgba(0,0,0,.5); }
    .rc12-card::after { border-color: rgba(167,139,250,.3); }
    .rc12-tabs { background: #2a2540; }
    .rc12-tab { color: #a5a0b8; }
    .rc12-tab.is-active { background: #1e1b2e; color: #c4b5fd; }
    .rc12-input { background: #15121f; border-color: #3b3358; color: #f1f5f9; }
    .rc12-input:focus { background: #15121f; }
    .rc12-sms-cell { background: #15121f; border-color: #3b3358; }
    .rc12-sms-line code { color: #f1f5f9; }
    .rc12-copy { background: #1e1b2e; border-color: #3b3358; }
    .rc12-selected { background: #2a2540; border-color: #4c1d95; }
    .rc12-selected-name { color: #c4b5fd; }
    .rc12-selected-meta { color: #a78bfa; }
    .rc12-or, .rc12-sms-intro { color: #a5a0b8; }
    .rc12-loading-bar { background: #3b3358; }
    .rc12-loading-text { color: #a5a0b8; }
    .rc12-official { background: #1e1b2e; color: #c4b5fd; border-color: #7c3aed; }
    .rc12-official:hover { background: #7c3aed; color: #fff; }
    .rc12-notice { background: #2a2540; border-color: #4c1d95; color: #c4b5fd; }
}
