/* =========================================
   CEK.KUOTA.ID — FINAL STYLESHEET
   Clean • Premium • Responsive
========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #1769aa;
    --primary-hover: #10558f;
    --primary-soft: #eef6fd;
    --ink: #203246;
    --muted: #8290a0;
    --line: #e8edf2;
    --background: #f7f9fc;
    --white: #ffffff;
    --success: #168653;
    --danger: #d0443e;
    --warning: #bd781b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--ink);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   HEADER
========================================= */

.topbar {
    height: 68px;
    padding: 0 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    width: min(100%, 1080px);
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.7px;
}

.brand-mark {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 19px;
}

.brand-dot {
    color: var(--primary);
}

.top-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22a06b;
}

/* =========================================
   PAGE & INTRO
========================================= */

.page {
    width: min(100% - 36px, 720px);
    margin: auto;
}

.intro {
    padding: 58px 0 30px;
}

.eyebrow,
.service-kicker {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

h1 {
    margin: 13px 0 12px;
    font-size: clamp(31px, 6vw, 44px);
    line-height: 1.15;
    letter-spacing: -1.8px;
    font-weight: 800;
}

h1 span {
    color: var(--primary);
}

.intro p {
    max-width: 460px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================
   MAIN CARD
========================================= */

.checker-card {
    padding: 27px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(30, 55, 80, .035);
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 25px;
}

.heading-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 26px;
}

h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.card-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

/* =========================================
   GENERAL FORM
========================================= */

label {
    display: block;
    margin-bottom: 9px;
    color: #425466;
    font-size: 12px;
    font-weight: 700;
}

.select-wrap {
    position: relative;
}

select {
    appearance: none;
    width: 100%;
    height: 48px;
    padding: 0 42px 0 14px;
    border: 1px solid #dfe6ed;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 170, .09);
}

.select-chevron {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--muted);
    font-size: 21px;
    pointer-events: none;
}

/* =========================================
   SERVICE PANEL
========================================= */

.service-panel {
    margin-top: 23px;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
}

.service-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.service-symbol {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.service-kicker {
    font-size: 9px;
}

h3 {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 700;
}

/* =========================================
   TELKOMSEL VOUCHER FORM
========================================= */

.telkomsel-checker {
    width: 100%;
}

#telkomsel-form {
    display: block;
    width: 100%;
    margin: 0;
}

#telkomsel-form label {
    margin-bottom: 9px;
}

.voucher-input-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

#telkomsel-form #voucher-number {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dfe6ed;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#telkomsel-form #voucher-number::placeholder {
    color: #a2adba;
}

#telkomsel-form #voucher-number:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 170, .09);
}

/* =========================================
   BUTTON
========================================= */

#telkomsel-form #check-voucher-btn {
    display: inline-flex;
    flex: 0 0 130px;
    width: 130px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid var(--primary);
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

#telkomsel-form #check-voucher-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

#telkomsel-form #check-voucher-btn:active {
    transform: scale(.98);
}

#telkomsel-form #check-voucher-btn:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

/* =========================================
   VOUCHER RESULT
========================================= */

.voucher-info {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}

.voucher-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--line);
}

.result-eyebrow {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.voucher-result-top h4 {
    margin: 5px 0 0;
    font-size: 15px;
    font-weight: 700;
}

.result-brand {
    padding: 6px 9px;
    border-radius: 6px;
    background: #fff0f0;
    color: #d82936;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
}

/* =========================================
   STATUS
========================================= */

.voucher-status-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 19px;
    background: #fafbfd;
    border-bottom: 1px solid var(--line);
}

.voucher-status-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
}

.voucher-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.voucher-status.used {
    background: #fff0ef;
    color: var(--danger);
}

.voucher-status.unused {
    background: #eaf8f0;
    color: var(--success);
}

.voucher-status.expired {
    background: #fff5e8;
    color: var(--warning);
}

.voucher-status.unknown {
    background: #f0f3f6;
    color: #68788a;
}

/* =========================================
   VOUCHER NUMBER
========================================= */

.voucher-number-area {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--line);
}

.voucher-number-area strong {
    color: var(--ink);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .5px;
    overflow-wrap: anywhere;
}

/* =========================================
   RESULT DETAILS
========================================= */

.voucher-info-rows {
    padding: 3px 19px;
}

.voucher-info-row {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #f0f2f5;
}

.voucher-info-row:last-child {
    border-bottom: 0;
}

.voucher-info-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.voucher-info-value {
    color: #34475a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* =========================================
   LOADING & ERROR
========================================= */

.result-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
    padding: 13px 15px;
    border: 1px solid #e5edf4;
    border-radius: 9px;
    background: #f7fafd;
    color: #526579;
    font-size: 12px;
    line-height: 1.6;
}

.result-message.loading {
    background: #f1f7fc;
    color: #426d91;
}

.result-message.error {
    border-color: #f5d5d2;
    background: #fff5f4;
    color: #b42318;
}

.loading-spinner {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border: 2px solid #c8dcec;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: voucher-spin .7s linear infinite;
}

@keyframes voucher-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   EMBED
========================================= */

.embed-wrap {
    height: min(68vh, 650px);
    min-height: 420px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.embed-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.embed-fallback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.embed-fallback a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* =========================================
   COMING SOON
========================================= */

.coming-panel {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    border: 1px dashed #dce5ed;
    border-radius: 10px;
    background: #fafcfe;
    text-align: center;
}

.coming-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 24px;
}

.coming-panel h4 {
    margin: 12px 0 6px;
    font-size: 14px;
}

.coming-panel p {
    max-width: 340px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

/* =========================================
   PRIVACY & FOOTER
========================================= */

.privacy-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.shield {
    color: #23936b;
    font-size: 15px;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 25px 2px 35px;
    color: #9aa6b2;
    font-size: 10px;
}

/* =========================================
   TABLET & MOBILE
========================================= */

@media (max-width: 560px) {

    /* Header */
    .topbar {
        height: 62px;
        padding: 0 17px;
    }

    .brand {
        font-size: 17px;
    }

    .top-label {
        font-size: 10px;
    }

    /* Page */
    .page {
        width: min(100% - 30px, 720px);
    }

    .intro {
        padding: 39px 0 25px;
    }

    h1 {
        font-size: 33px;
        letter-spacing: -1.4px;
    }

    .intro p {
        font-size: 13px;
    }

    /* Main card */
    .checker-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .card-heading {
        margin-bottom: 23px;
    }

    .service-panel {
        margin-top: 21px;
        padding-top: 18px;
    }

    /* Voucher form */
    #telkomsel-form label {
        font-size: 14px;
        margin-bottom: 11px;
    }

    #telkomsel-form .voucher-input-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    #telkomsel-form #voucher-number {
        width: 100%;
        height: 56px;
        min-height: 56px;
        flex: none;
        padding: 0 16px;
        border-radius: 11px;
        font-size: 15px;
    }

    #telkomsel-form #voucher-number::placeholder {
        font-size: 12px;
    }

    #telkomsel-form #check-voucher-btn {
        width: 100%;
        height: 54px;
        min-height: 54px;
        flex: none;
        border-radius: 11px;
        font-size: 14px;
    }

    /* Voucher result */
    .voucher-info-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 11px 0;
    }

    .voucher-info-value {
        font-size: 12px;
    }

    .voucher-number-area {
        padding: 15px 14px;
    }

    .voucher-number-area strong {
        font-size: 17px;
    }

    .voucher-result-top,
    .voucher-status-area {
        padding-left: 14px;
        padding-right: 14px;
    }

    .voucher-info-rows {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Embed */
    .embed-wrap {
        min-height: 460px;
        height: 68vh;
    }

    .embed-fallback {
        align-items: flex-start;
        flex-direction: column;
    }

    /* Footer */
    footer {
        font-size: 9px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 360px) {

    .page {
        width: calc(100% - 24px);
    }

    .checker-card {
        padding: 19px 14px;
    }

    h1 {
        font-size: 29px;
    }

    .top-label {
        font-size: 9px;
    }

    .voucher-number-area strong {
        font-size: 16px;
    }
}

/* =========================================
   AXIS VOUCHER FORM
   Mengikuti styling Telkomsel
========================================= */

#axis-form {
    display: block;
    width: 100%;
    margin: 0;
}

#axis-form label {
    margin-bottom: 9px;
}

#axis-form #axis-voucher-number {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dfe6ed;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#axis-form #axis-voucher-number::placeholder {
    color: #a2adba;
}

#axis-form #axis-voucher-number:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 170, .09);
}

/* Button */

#axis-form #check-axis-btn {
    display: inline-flex;
    flex: 0 0 130px;
    width: 130px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid var(--primary);
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

#axis-form #check-axis-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

#axis-form #check-axis-btn:active {
    transform: scale(.98);
}

#axis-form #check-axis-btn:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

/* Mobile */

@media (max-width: 560px) {

    #axis-form label {
        font-size: 14px;
        margin-bottom: 11px;
    }

    #axis-form .voucher-input-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    #axis-form #axis-voucher-number {
        width: 100%;
        height: 56px;
        min-height: 56px;
        flex: none;
        padding: 0 16px;
        border-radius: 11px;
        font-size: 15px;
    }

    #axis-form #axis-voucher-number::placeholder {
        font-size: 12px;
    }

    #axis-form #check-axis-btn {
        width: 100%;
        height: 54px;
        min-height: 54px;
        flex: none;
        border-radius: 11px;
        font-size: 14px;
    }
}

/* BY.U VOUCHER CHECKER */

#byu-form {
    display: block;
    width: 100%;
    margin: 0;
}

#byu-form label {
    margin-bottom: 9px;
}

#byu-form #byu-voucher-number {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dfe6ed;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
}

#byu-form #byu-voucher-number:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 170, .09);
}

#byu-form #check-byu-btn {
    display: inline-flex;
    flex: 0 0 130px;
    width: 130px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid var(--primary);
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

#byu-form #check-byu-btn:disabled {
    opacity: .65;
    cursor: wait;
}

.byu-result-card {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    background: #fff;
}

.byu-result-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 12px;
    border-bottom: 1px solid #edf0f3;
}

.byu-status {
    padding: 6px 10px;
    border-radius: 6px;
    background: #e8f7ed;
    color: #21864a;
    font-size: 12px;
    font-weight: 700;
}

.byu-result-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    font-size: 13px;
}

.byu-result-item span {
    color: #7b8794;
}

.byu-result-item strong {
    color: var(--ink);
    text-align: right;
}

.byu-loading,
.byu-error {
    margin-top: 15px;
    padding: 13px;
    border-radius: 9px;
    font-size: 13px;
}

.byu-loading {
    background: #f2f6fa;
    color: #536477;
}

.byu-error {
    background: #fff0f0;
    color: #c0392b;
}

@media (max-width: 560px) {
    #byu-form .voucher-input-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    #byu-form #byu-voucher-number {
        width: 100%;
        height: 56px;
        min-height: 56px;
        flex: none;
        padding: 0 16px;
        border-radius: 11px;
        font-size: 15px;
    }

    #byu-form #check-byu-btn {
        width: 100%;
        height: 54px;
        min-height: 54px;
        flex: none;
        border-radius: 11px;
        font-size: 14px;
    }

    .byu-result-card {
        padding: 15px;
    }

    .byu-result-item {
        font-size: 12px;
    }
}
