/* =========================================================
   SIGAP RATUJAYA
   INPUT PAGE
   ========================================================= */


/* =========================================================
   BASE
   ========================================================= */

.input-navbar *,
.input-hero *,
.input-section *,
.input-footer * {
    box-sizing: border-box;
}

.input-navbar,
.input-hero,
.input-section,
.input-footer {
    width: 100%;
}

.input-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.input-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid #e7edf5;

    box-shadow:
        0 4px 20px rgba(23, 55, 90, 0.06);
}

.input-nav-container {
    width: min(1200px, calc(100% - 40px));

    min-height: 72px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 22px;
}


/* =========================================================
   NAVBAR BRAND
   ========================================================= */

.input-brand {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 260px;

    color: #12365a;

    text-decoration: none;
}


/* =========================================================
   LOGO ATAS
   ========================================================= */

.input-navbar .input-brand-icon {
    width: 26px !important;
    height: 26px !important;

    min-width: 26px !important;
    min-height: 26px !important;

    max-width: 26px !important;
    max-height: 26px !important;

    flex: 0 0 26px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: hidden !important;
}

.input-navbar .input-brand-icon img {
    width: 23px !important;
    height: 23px !important;

    min-width: 23px !important;
    min-height: 23px !important;

    max-width: 23px !important;
    max-height: 23px !important;

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
}


/* =========================================================
   BRAND TEXT
   ========================================================= */

.input-brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}

.input-brand-text strong {
    color: #12365a;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 0.2px;
}

.input-brand-text span {
    margin-top: 3px;

    color: #8292a5;

    font-size: 10px;
}


/* =========================================================
   NAV MENU
   ========================================================= */

.input-main-menu {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 3px;

    flex: 1;
}

.input-main-menu a {
    padding: 8px 11px;

    border-radius: 8px;

    color: #5b6f85;

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.input-main-menu a:hover {
    color: #0d6efd;

    background: #eef6ff;
}

.input-main-menu a.active {
    color: #0d6efd;

    background: #e9f3ff;
}


/* =========================================================
   NAV ACTION
   ========================================================= */

.input-nav-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.input-user-info {
    max-width: 150px;

    color: #61758a;

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.input-login-btn,
.input-logout-btn {
    min-height: 35px;

    padding: 0 13px;

    border-radius: 8px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;
}

.input-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #0d6efd;
    color: white;

    text-decoration: none;
}

.input-login-btn:hover {
    background: #0b5ed7;
}

.input-logout-btn {
    border: 1px solid #d8e3ef;

    background: white;

    color: #587089;

    cursor: pointer;
}

.input-logout-btn:hover {
    background: #f4f8fc;
}


/* =========================================================
   HERO
   ========================================================= */

.input-hero {
    padding: 48px 0 42px;

    background:
        radial-gradient(circle at top right,
            rgba(13, 110, 253, 0.10),
            transparent 35%),
        linear-gradient(180deg,
            #f6faff 0%,
            #ffffff 100%);
}

.input-hero-content {
    max-width: 720px;

    margin: 0 auto;

    text-align: center;
}

.input-hero-badge {
    display: inline-flex;
    align-items: center;

    padding: 7px 13px;

    margin-bottom: 14px;

    border-radius: 50px;

    background: #e8f3ff;

    color: #0d6efd;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.8px;
}

.input-hero h1 {
    margin: 0;

    color: #12365a;

    font-size: clamp(28px, 4vw, 38px);

    line-height: 1.15;

    letter-spacing: -0.5px;
}

.input-hero p {
    max-width: 620px;

    margin: 13px auto 0;

    color: #74879c;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   MAIN
   ========================================================= */

.input-section {
    padding: 0 0 70px;

    background: #ffffff;
}


/* =========================================================
   ACCESS
   ========================================================= */

.input-access-message {
    width: min(760px, 100%);

    margin: 0 auto;
}

.input-access-error {
    padding: 22px;

    border: 1px solid #f1d3d3;

    border-radius: 15px;

    background: #fff8f8;

    text-align: center;

    color: #7c3535;
}

.input-access-error strong {
    display: block;

    margin-bottom: 7px;

    font-size: 17px;
}

.input-access-error p {
    margin: 0 0 15px;

    font-size: 13px;
}

.input-access-error a {
    display: inline-flex;

    padding: 9px 17px;

    border-radius: 8px;

    background: #0d6efd;

    color: white;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.input-form-card {
    width: min(900px, 100%);

    margin: 0 auto;

    padding: 30px;

    border: 1px solid #e3ebf4;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 18px 55px rgba(25, 65, 105, 0.08);
}


/* =========================================================
   PROFILE INFO
   ========================================================= */

.input-profile-info {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 30px;

    padding: 13px 15px;

    border: 1px solid #dcecff;

    border-radius: 12px;

    background: #f5f9ff;

    color: #647b92;

    font-size: 12px;
}

.input-profile-icon {
    width: 32px;
    height: 32px;

    min-width: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #ddecff;

    color: #0d6efd;

    font-weight: 900;
}

.input-profile-info strong {
    display: block;

    margin-top: 2px;

    color: #0d6efd;

    font-size: 13px;
}


/* =========================================================
   FORM HEADER
   ========================================================= */

.input-form-header {
    margin-bottom: 22px;
}

.input-form-header>div {
    display: flex;
    align-items: center;

    gap: 13px;
}

.input-section-number {
    width: 40px;
    height: 40px;

    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #0d6efd;

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    box-shadow:
        0 7px 17px rgba(13, 110, 253, 0.20);
}

.input-form-header h2,
.input-form-divider h2 {
    margin: 0;

    color: #163b5d;

    font-size: 18px;
    font-weight: 800;
}

.input-form-header p,
.input-form-divider p {
    margin: 4px 0 0;

    color: #8494a6;

    font-size: 12px;
}


/* =========================================================
   DIVIDER SECTION
   ========================================================= */

.input-form-divider {
    display: flex;
    align-items: center;

    gap: 13px;

    margin: 34px 0 21px;

    padding-top: 27px;

    border-top: 1px solid #edf1f6;
}


/* =========================================================
   GRID
   ========================================================= */

.input-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.input-form-group {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.input-form-group.full-width {
    grid-column: 1 / -1;
}


/* =========================================================
   LABEL
   ========================================================= */

.input-form-group label,
.input-category-title label {
    margin-bottom: 7px;

    color: #34516d;

    font-size: 12px;
    font-weight: 800;
}

.input-required {
    color: #e05252;
}


/* =========================================================
   INPUT
   ========================================================= */

.input-form-group input,
.input-form-group select,
.input-category-area select {
    width: 100%;

    min-height: 46px;

    padding: 0 13px;

    border: 1px solid #d9e4ef;

    border-radius: 10px;

    outline: none;

    background: #ffffff;

    color: #28455f;

    font-family: inherit;

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-form-group input:hover,
.input-form-group select:hover,
.input-category-area select:hover {
    border-color: #bfd2e5;
}

.input-form-group input:focus,
.input-form-group select:focus,
.input-category-area select:focus {
    border-color: #6da9f8;

    box-shadow:
        0 0 0 4px rgba(13, 110, 253, 0.08);
}

.input-form-group input::placeholder {
    color: #a1afbd;
}

.input-form-group input[readonly] {
    background: #f4f7fa;

    color: #6c8094;

    cursor: not-allowed;
}


/* =========================================================
   HINT
   ========================================================= */

.input-form-hint {
    margin-top: 6px;

    color: #96a3b1;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   UNIT INPUT
   ========================================================= */

.input-input-with-unit {
    position: relative;

    display: flex;
    align-items: center;
}

.input-input-with-unit input {
    padding-right: 60px;
}

.input-input-with-unit span {
    position: absolute;

    right: 13px;

    color: #8191a1;

    font-size: 11px;
    font-weight: 700;

    pointer-events: none;
}


/* =========================================================
   CATEGORY AREA
   ========================================================= */

.input-category-area {
    margin-top: 30px;

    padding: 21px;

    border: 1px solid #e1eaf3;

    border-radius: 15px;

    background:
        linear-gradient(135deg,
            #fbfdff,
            #f7faff);
}

.input-category-title {
    margin-bottom: 13px;
}

.input-category-title label {
    display: block;

    margin-bottom: 3px;

    font-size: 14px;
}

.input-category-title p {
    margin: 0;

    color: #8292a4;

    font-size: 11px;
}


/* =========================================================
   CATEGORY GUIDE
   ========================================================= */

.input-category-guide {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 8px;

    margin-top: 13px;
}

.category-guide-item {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;

    padding: 9px;

    border-radius: 9px;

    background: #ffffff;

    border: 1px solid #e9eef4;
}

.category-guide-item>span {
    width: 7px;
    height: 7px;

    min-width: 7px;

    border-radius: 50%;
}

.category-guide-item strong {
    display: block;

    color: #425970;

    font-size: 9px;
}

.category-guide-item small {
    display: block;

    margin-top: 2px;

    color: #9aa7b5;

    font-size: 8px;
}


/* CATEGORY COLORS */

.category-guide-item.overweight>span {
    background: #e0a12c;
}

.category-guide-item.underweight>span {
    background: #6f91d8;
}

.category-guide-item.normal>span {
    background: #45a86b;
}

.category-guide-item.stunting>span {
    background: #df6262;
}


/* =========================================================
   STATUS NOTICE
   ========================================================= */

.input-status-notice {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-top: 25px;

    padding: 15px;

    border: 1px solid #dbe8f6;

    border-radius: 13px;

    background: #f6faff;
}

.input-status-icon {
    width: 30px;
    height: 30px;

    min-width: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #e2efff;

    color: #0d6efd;

    font-weight: 900;
}

.input-status-text strong {
    display: block;

    margin-bottom: 3px;

    color: #31506c;

    font-size: 12px;
}

.input-status-text p {
    margin: 0;

    color: #8191a1;

    font-size: 10px;

    line-height: 1.6;
}


/* =========================================================
   FORM ACTION
   ========================================================= */

.input-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    margin-top: 25px;

    padding-top: 21px;

    border-top: 1px solid #edf1f5;
}

.input-reset-button,
.input-submit-button {
    min-height: 44px;

    padding: 0 18px;

    border-radius: 9px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}

.input-reset-button {
    border: 1px solid #d8e2ec;

    background: #ffffff;

    color: #62768a;
}

.input-reset-button:hover {
    background: #f6f8fb;
}

.input-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 0;

    background: #0d6efd;

    color: #ffffff;

    box-shadow:
        0 7px 18px rgba(13, 110, 253, 0.20);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.input-submit-button:hover {
    background: #0b5ed7;

    transform: translateY(-1px);
}

.input-submit-button:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;
}

.input-submit-icon {
    font-size: 14px;
}


/* =========================================================
   BOTTOM NOTE
   ========================================================= */

.input-form-bottom-note {
    display: flex;
    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 18px;
}

.input-form-bottom-note span {
    font-size: 11px;
}

.input-form-bottom-note p {
    margin: 0;

    color: #9aa6b3;

    font-size: 9px;

    text-align: center;
}


/* =========================================================
   FOOTER
   ========================================================= */

.input-footer {
    padding: 32px 0;

    border-top: 1px solid #e6edf4;

    background: #f8fbfe;
}

.input-footer-container {
    width: min(1120px, calc(100% - 40px));

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.input-footer-brand {
    display: flex;
    align-items: center;

    gap: 10px;
}


/* FOOTER LOGO */

.input-footer-logo {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.input-footer-logo img {
    width: 34px;
    height: 34px;

    display: block;

    object-fit: contain;
}

.input-footer-brand-text {
    display: flex;
    flex-direction: column;
}

.input-footer-brand-text strong {
    color: #12365a;

    font-size: 13px;
    font-weight: 800;
}

.input-footer-brand-text span {
    margin-top: 3px;

    color: #8796a6;

    font-size: 9px;
}

.input-footer-copy {
    color: #94a1af;

    font-size: 10px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .input-main-menu {
        display: none;
    }

    .input-brand {
        min-width: auto;
    }

    .input-form-card {
        padding: 25px;
    }

    .input-category-guide {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .input-container {
        width: calc(100% - 28px);
    }

    .input-nav-container {
        width: calc(100% - 24px);

        min-height: 66px;

        gap: 10px;
    }


    /* LOGO NAVBAR */

    .input-navbar .input-brand-icon {
        width: 25px !important;
        height: 25px !important;

        min-width: 25px !important;
        min-height: 25px !important;

        max-width: 25px !important;
        max-height: 25px !important;

        flex-basis: 25px !important;
    }

    .input-navbar .input-brand-icon img {
        width: 22px !important;
        height: 22px !important;

        min-width: 22px !important;
        min-height: 22px !important;

        max-width: 22px !important;
        max-height: 22px !important;
    }


    .input-brand-text strong {
        font-size: 12px;
    }

    .input-brand-text span {
        display: none;
    }

    .input-nav-actions {
        gap: 5px;
    }

    .input-user-info {
        display: none;
    }

    .input-login-btn,
    .input-logout-btn {
        min-height: 33px;

        padding: 0 10px;

        font-size: 11px;
    }


    /* HERO */

    .input-hero {
        padding: 36px 0 32px;
    }

    .input-hero h1 {
        font-size: 28px;
    }

    .input-hero p {
        font-size: 12px;
    }


    /* FORM */

    .input-form-card {
        padding: 20px 16px;

        border-radius: 16px;
    }

    .input-form-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .input-form-group.full-width {
        grid-column: auto;
    }

    .input-form-divider {
        margin-top: 28px;
    }


    /* CATEGORY */

    .input-category-area {
        padding: 16px;
    }

    .input-category-guide {
        grid-template-columns: 1fr 1fr;
    }


    /* ACTION */

    .input-form-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .input-reset-button,
    .input-submit-button {
        width: 100%;
    }


    /* FOOTER */

    .input-footer-container {
        flex-direction: column;

        align-items: flex-start;
    }

    .input-footer-copy {
        text-align: left;
    }
}


/* =========================================================
   HP KECIL
   ========================================================= */

@media (max-width: 420px) {

    .input-container {
        width: calc(100% - 22px);
    }

    .input-nav-container {
        width: calc(100% - 18px);
    }

    .input-navbar .input-brand-icon {
        width: 24px !important;
        height: 24px !important;

        min-width: 24px !important;
        min-height: 24px !important;

        max-width: 24px !important;
        max-height: 24px !important;

        flex-basis: 24px !important;
    }

    .input-navbar .input-brand-icon img {
        width: 21px !important;
        height: 21px !important;

        min-width: 21px !important;
        min-height: 21px !important;

        max-width: 21px !important;
        max-height: 21px !important;
    }

    .input-brand-text strong {
        font-size: 11px;
    }

    .input-login-btn,
    .input-logout-btn {
        padding: 0 8px;
    }

    .input-hero h1 {
        font-size: 25px;
    }

    .input-form-card {
        padding: 17px 13px;
    }

    .input-form-header h2,
    .input-form-divider h2 {
        font-size: 16px;
    }

    .input-section-number {
        width: 36px;
        height: 36px;

        min-width: 36px;

        border-radius: 10px;
    }

    .input-category-guide {
        grid-template-columns: 1fr;
    }

    .input-status-notice {
        padding: 13px;
    }
}