:root {
    --blue: #2b3fa6;
    --accent: #3557c6;
    --muted: #9aa0b4;
    --card-bg: #fff;
    --page-bg: #f3f4f7;
}

* {
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
    margin: 0;
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Top bar */
.topbar {
    background: var(--blue);
    color: white;
    padding: 10px 16px;
    display: flex;
    align-items: center;
}

.brand .logo {
    letter-spacing: 1px;
    position: relative;
    max-width: 600px;
    width: 100%;
}

.logo>img {
    height: 40px;
}

/* container */
.container {
    max-width: 480px;
    margin: 20px auto;
    padding: 12px;
}

/* card */
.card {
    background: var(--card-bg);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(33, 33, 33, 0.08);
    padding: 20px;
    border-left: 4px solid #e9eefc;
}

.card h1 {
    font-size: 16px;
    margin: 0 0 12px 0;
    color: #1d2340;
}

/* sections */
.section-title {
    margin-top: 14px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333a56;
    font-size: 13px;
}

/* inputs dan select */
input[type="text"],
select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #e6e8ee;
    font-size: 14px;
    color: #222;
    margin-bottom: 12px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 4px rgba(53, 87, 198, 0.3);
}

/* opsi select rapi di mobile */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
}

/* small captcha area */
.captcha-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

#captchaCanvas {
    border: 1px solid #e4e6ef;
    border-radius: 4px;
    background: #fff;
}

.btn-small {
    border: none;
    background: #2b3fa6;
    color: white;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

/* actions */
.actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.btn {
    padding: 12px 18px;
    border-radius: 6px;
    cursor: pointer;
    border: 0;
    font-weight: 600;
    font-size: 14px;
}

.btn.primary {
    background: var(--accent);
    color: white;
    flex: 1;
}

.btn.outline {
    background: white;
    color: var(--accent);
    border: 2px solid #dfe6ff;
    flex: 1;
}

/* helper */
.note {
    color: var(--muted);
    font-size: 12px;
    margin-top: 12px;
}

/* screen-reader class (for labels) */
.sr {
    display: none;
}

/* responsive mobile */
@media screen and (max-width: 500px) {
    .card {
        padding: 16px;
    }

    input[type="text"],
    select {
        font-size: 13px;
        padding: 8px 10px;
    }
}

.petunjuk-card {
    background: #f1f4ff;
    border-left: 4px solid #3557c6;
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 20px;
    /* jarak dari form */
}

.petunjuk-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2b3fa6;
}

.petunjuk-card ol {
    padding-left: 20px;
    margin: 0 0 10px 0;
}

.petunjuk-card li {
    margin-bottom: 6px;
}

.petunjuk-card .note {
    font-size: 12px;
    color: #9aa0b4;
    margin: 0;
}