/* =====================================================
   FORM PENDAFTARAN – Duluinnovation 1.0
   BG bersih (tanpa mockup form) supaya tidak ghost/dobel
   ===================================================== */

.din-form-page {
    background:
        url("../img/duluinnovation/bg_form_pendaftar.png") no-repeat top center / cover,
        linear-gradient(180deg, #f7fafc 0%, #eef7f2 100%);
    min-height: calc(100vh - 80px);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Dekor soft kanan — kriteria dibalik, screen blend biar hitam hilang */
.din-form-page::before {
    content: "";
    position: absolute;
    right: -8%;
    top: 12%;
    width: min(520px, 48vw);
    height: min(520px, 48vw);
    background: url("../img/duluinnovation/bg_detail_kriteria.png") no-repeat 78% 50% / 160% auto;
    transform: rotate(180deg);
    mix-blend-mode: screen;
    opacity: 0.55;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.din-form-page::after {
    content: "";
    position: absolute;
    left: -10%;
    bottom: -5%;
    width: min(420px, 42vw);
    height: min(420px, 42vw);
    background: url("../img/duluinnovation/bg_detail_kriteria.png") no-repeat 20% 70% / 140% auto;
    transform: rotate(180deg);
    mix-blend-mode: screen;
    opacity: 0.4;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.din-form-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.din-form-alert {
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.din-form-alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.din-form-alert--success {
    background: #e8faf0;
    color: #0f7a45;
    border: 1px solid #9be4b8;
}

.din-form-alert--error {
    background: #fff1f0;
    color: #c0392b;
    border: 1px solid #f5c2c0;
}

.din-form-card {
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    padding: 44px 40px 40px;
    box-shadow: 0 16px 48px rgba(15, 40, 80, 0.08);
    border: 1px solid rgba(14, 81, 212, 0.06);
    position: relative;
    z-index: 1;
}

.din-form-header {
    text-align: center;
    margin-bottom: 36px;
}

.din-form-title {
    margin: 0 0 8px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.25;
    color: #0e51d4;
}

.din-form-subtitle {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #606060;
}

.din-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.din-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 24px;
}

.din-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.din-form-field label {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #333333;
}

.din-form-field input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid #2f8f7b;
    border-radius: 16px;
    background: #ffffff;
    color: #333333;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 20px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    box-sizing: border-box;
}

.din-form-field input::placeholder {
    color: #9aa3af;
}

.din-form-field input:focus {
    border-color: #0e51d4;
    box-shadow: 0 0 0 3px rgba(14, 81, 212, 0.12);
}

.din-form-field input.is-invalid,
.din-form-upload.is-invalid {
    border-color: #ff6b6b;
}

.din-form-error {
    color: #ff6b6b;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.din-form-field--upload {
    gap: 10px;
}

.din-form-upload {
    width: 100%;
    min-height: 180px;
    padding: 28px 20px;
    border: 2px dashed #1f6f63;
    border-radius: 16px;
    background: #f8fbfa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.din-form-upload:hover,
.din-form-upload.is-dragover {
    border-color: #0e51d4;
    background: rgba(14, 81, 212, 0.04);
}

.din-form-upload__icon {
    display: inline-flex;
    line-height: 0;
}

.din-form-upload__text {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 22px;
    color: #333333;
}

.din-form-upload__text span {
    font-weight: 700;
    text-decoration: underline;
    color: #0e51d4;
}

.din-form-upload__hint {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #8a93a0;
}

.din-form-upload__filename {
    display: none;
    margin-top: 4px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0f7a45;
}

.din-form-upload__list {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.din-form-upload__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f3faf6;
    border: 1px solid #d8eee2;
}

.din-form-upload__item-name {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0f7a45;
    word-break: break-all;
}

.din-form-upload__item-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #c0392b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.din-form-upload__item-remove:hover {
    background: #fdecea;
}

.din-form-actions {
    display: flex;
    justify-content: flex-end;
}

.din-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 48px;
    padding: 0 28px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(102deg, #447ef2 0%, #0c45b5 100%);
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.din-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(12, 69, 181, 0.28);
    color: #ffffff;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .din-form-page {
        padding: 100px 0 64px;
    }

    .din-form-card {
        padding: 32px 24px 28px;
    }

    .din-form-title {
        font-size: 28px;
    }

    .din-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .din-form-page::before,
    .din-form-page::after {
        opacity: 0.35;
    }
}

@media (max-width: 640px) {
    .din-form-page {
        padding: 88px 0 48px;
    }

    .din-form-page .container {
        padding: 0 16px;
    }

    .din-form-card {
        padding: 28px 16px 24px;
        border-radius: 20px;
    }

    .din-form-title {
        font-size: 24px;
    }

    .din-form-subtitle {
        font-size: 14px;
    }

    .din-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .din-form-upload {
        min-height: 160px;
        padding: 24px 16px;
    }

    .din-form-actions {
        justify-content: stretch;
    }

    .din-form-submit {
        width: 100%;
    }

    .din-form-page::before,
    .din-form-page::after {
        display: none;
    }
}
