/* =========================================================
   QUESTION CREATE
   BANK SOAL PUSAT
   ========================================================= */

.question-form-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   HEADER / HERO
   ========================================================= */

.question-form-page .form-page-header {
    position: relative;

    margin-bottom: 24px;
    padding: 30px 34px;

    min-height: 165px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        radial-gradient(
            circle at 96% 8%,
            rgba(37, 99, 235, .95) 0,
            rgba(37, 99, 235, .45) 105px,
            transparent 106px
        ),
        linear-gradient(
            135deg,
            #050b22 0%,
            #07163d 52%,
            #0b2b69 100%
        );

    border-radius: 20px;

    border-left: 5px solid #2563eb;

    overflow: hidden;

    box-shadow:
        0 14px 35px rgba(15, 23, 42, .12);
}

.question-form-page .form-page-header::after {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    right: -90px;
    top: -120px;

    border-radius: 50%;

    background: rgba(59, 130, 246, .18);

    pointer-events: none;
}

.question-form-page .form-page-header > div {
    position: relative;
    z-index: 2;
}


.question-form-page .page-eyebrow {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 0 12px;

    margin-bottom: 9px;

    border-radius: 7px;

    background: rgba(59, 130, 246, .18);

    border: 1px solid rgba(96, 165, 250, .35);

    color: #60a5fa;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}


.question-form-page .form-page-header h2 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 27px;
    line-height: 1.2;

    font-weight: 750;

    letter-spacing: -.3px;
}


.question-form-page .form-page-header p {
    margin: 0;

    max-width: 650px;

    color: #b9c8e6;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   ERROR
   ========================================================= */

.question-form-page .form-alert {
    margin-bottom: 20px;

    padding: 13px 16px;

    border-radius: 11px;

    font-size: 12px;
    font-weight: 600;
}

.question-form-page .form-alert.error {
    background: #fff1f2;

    border: 1px solid #fecdd3;

    color: #be123c;
}


/* =========================================================
   MAIN FORM CARD
   ========================================================= */

.question-form-page .form-card {
    position: relative;

    background: #ffffff;

    border: 1px solid #e4eaf3;

    border-radius: 18px;

    padding: 0;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, .045);
}


/* garis biru atas */

.question-form-page .form-card::before {
    content: "";

    display: block;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #3b82f6,
            #93c5fd
        );
}


/* =========================================================
   FORM SECTION
   ========================================================= */

.question-form-page .form-section {
    padding: 28px 32px;

    border-bottom: 1px solid #edf1f6;
}

.question-form-page .form-section:last-of-type {
    border-bottom: none;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.question-form-page .form-section-title {
    position: relative;

    margin-bottom: 22px;

    padding-left: 13px;

    color: #172033;

    font-size: 16px;
    font-weight: 750;

    line-height: 1.3;
}

.question-form-page .form-section-title::before {
    content: "";

    position: absolute;

    left: 0;
    top: 1px;
    bottom: 1px;

    width: 4px;

    border-radius: 4px;

    background: #2563eb;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.question-form-page .form-group {
    margin: 0;
}

.question-form-page .form-group label {
    display: block;

    margin-bottom: 8px;

    color: #344054;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   INPUT
   ========================================================= */

.question-form-page .form-group input,
.question-form-page .form-group textarea,
.question-form-page .form-group select {

    width: 100%;

    box-sizing: border-box;

    border: 1px solid #dbe3ef;

    border-radius: 10px;

    background: #ffffff;

    color: #172033;

    font-family: inherit;

    font-size: 13px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.question-form-page .form-group input,
.question-form-page .form-group select {
    height: 46px;

    padding: 0 14px;
}


.question-form-page .form-group textarea {
    min-height: 145px;

    padding: 13px 14px;

    line-height: 1.6;

    resize: vertical;
}


.question-form-page .form-group input::placeholder,
.question-form-page .form-group textarea::placeholder {
    color: #a4adbc;
}


.question-form-page .form-group input:focus,
.question-form-page .form-group textarea:focus,
.question-form-page .form-group select:focus {

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .09);
}


/* =========================================================
   QUESTION
========================================================= */

.question-form-page .form-section:first-of-type {
    background: #ffffff;
}


/* =========================================================
   OPTIONS A-E
   ========================================================= */

.question-form-page .question-option-row {
    display: grid;

    grid-template-columns: 44px minmax(0, 1fr);

    align-items: center;

    gap: 12px;

    margin-bottom: 12px;
}

.question-form-page .question-option-row:last-child {
    margin-bottom: 0;
}


.question-form-page .option-label {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eef4ff;

    border: 1px solid #d8e6ff;

    color: #2563eb;

    font-size: 12px;
    font-weight: 800;
}


.question-form-page .question-option-row input {
    width: 100%;
    height: 45px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #dbe3ef;

    border-radius: 10px;

    background: #ffffff;

    color: #172033;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition: .2s ease;
}


.question-form-page .question-option-row input::placeholder {
    color: #a4adbc;
}


.question-form-page .question-option-row input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .09);
}


/* =========================================================
   PENGATURAN SOAL
   ========================================================= */

.question-form-page .form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px 22px;
}


/* =========================================================
   SELECT
   ========================================================= */

.question-form-page select {
    appearance: auto;

    cursor: pointer;
}


/* =========================================================
   FORM ACTIONS
   ========================================================= */

.question-form-page .form-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    padding: 22px 32px;

    background: #f8fafc;

    border-top: 1px solid #e8edf4;
}


/* =========================================================
   BUTTON
   ========================================================= */

.question-form-page .primary-button,
.question-form-page .secondary-button {

    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border-radius: 9px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.question-form-page .primary-button {

    border: 1px solid #2563eb;

    background: #2563eb;

    color: #ffffff;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, .18);
}


.question-form-page .primary-button:hover {

    background: #1d4ed8;

    border-color: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(37, 99, 235, .22);
}


.question-form-page .secondary-button {

    border: 1px solid #d7dfeb;

    background: #ffffff;

    color: #475467;
}


.question-form-page .secondary-button:hover {

    background: #f1f5f9;

    border-color: #cbd5e1;

    color: #172033;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .question-form-page .form-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .question-form-page {
        max-width: 100%;
    }

    .question-form-page .form-page-header {
        min-height: auto;

        padding: 25px 24px;

        border-radius: 16px;
    }

    .question-form-page .form-page-header h2 {
        font-size: 23px;
    }

    .question-form-page .form-section {
        padding: 24px 20px;
    }

    .question-form-page .form-actions {
        padding: 18px 20px;
    }

}


@media (max-width: 520px) {

    .question-form-page .question-option-row {
        grid-template-columns: 38px minmax(0, 1fr);

        gap: 9px;
    }

    .question-form-page .option-label {
        width: 38px;
        height: 40px;
    }

    .question-form-page .form-actions {
        flex-direction: column-reverse;
    }

    .question-form-page .primary-button,
    .question-form-page .secondary-button {
        width: 100%;
    }

}


/* =========================================================
   DARK MODE OVERRIDES - QUESTION CREATE FORM
   ========================================================= */

html.theme-dark .question-form-page {
    color: #cbd5e1;
}

.form-back-link,
.question-back-link,
html.theme-dark .form-back-link,
html.theme-dark .question-back-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
    padding: 4px 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

html.theme-dark .form-back-link,
html.theme-dark .question-back-link {
    color: #60a5fa !important;
}

.form-back-link:hover,
.question-back-link:hover {
    background: transparent !important;
    border: none !important;
    color: #1d4ed8 !important;
    transform: translateX(-4px) !important;
    box-shadow: none !important;
}

html.theme-dark .form-back-link:hover,
html.theme-dark .question-back-link:hover {
    background: transparent !important;
    border: none !important;
    color: #93c5fd !important;
    transform: translateX(-4px) !important;
    box-shadow: none !important;
}

/* Header Hero Card */
html.theme-dark .question-form-page .form-page-header {
    background: linear-gradient(135deg, #070d19 0%, #0d1b38 52%, #13234e 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: 5px solid #3b82f6 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4) !important;
}

html.theme-dark .question-form-page .form-page-header h2 {
    color: #ffffff !important;
}

html.theme-dark .question-form-page .form-page-header p {
    color: #94a3b8 !important;
}

html.theme-dark .question-form-page .page-eyebrow {
    background: rgba(37, 99, 235, 0.25) !important;
    border: 1px solid rgba(96, 165, 250, 0.35) !important;
    color: #60a5fa !important;
    display: inline-flex !important;
    width: fit-content !important;
}

/* Form Card Container */
html.theme-dark .question-form-page .form-card {
    background: #0d172e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3) !important;
}

html.theme-dark .question-form-page .form-card::before {
    background: linear-gradient(90deg, #1d4ed8, #2563eb, #60a5fa) !important;
}

/* Form Sections */
html.theme-dark .question-form-page .form-section {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .question-form-page .form-section:first-of-type {
    background: transparent !important;
}

html.theme-dark .question-form-page .form-section-title {
    color: #f8fafc !important;
}

html.theme-dark .question-form-page .form-section-title::before {
    background: #3b82f6 !important;
}

/* Labels & Form Controls */
html.theme-dark .question-form-page .form-group label {
    color: #cbd5e1 !important;
}

html.theme-dark .question-form-page .form-group input,
html.theme-dark .question-form-page .form-group textarea,
html.theme-dark .question-form-page .form-group select,
html.theme-dark .question-form-page .question-option-row input {
    background: #172033 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

html.theme-dark .question-form-page .form-group input:focus,
html.theme-dark .question-form-page .form-group textarea:focus,
html.theme-dark .question-form-page .form-group select:focus,
html.theme-dark .question-form-page .question-option-row input:focus {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

html.theme-dark .question-form-page select option {
    background: #1e293b !important;
    color: #f8fafc !important;
}

html.theme-dark .question-form-page input::placeholder,
html.theme-dark .question-form-page textarea::placeholder {
    color: #64748b !important;
}

/* Option A-E Badges */
html.theme-dark .question-form-page .option-label {
    background: #172554 !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #818cf8 !important;
}

/* Bottom Action Bar & Buttons */
html.theme-dark .question-form-page .form-actions {
    background: #0a1122 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .question-form-page .secondary-button {
    background: #172033 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

html.theme-dark .question-form-page .secondary-button:hover {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

html.theme-dark .question-form-page .primary-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

html.theme-dark .question-form-page .primary-button:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%) !important;
    color: #ffffff !important;
}