:root {
    --brand-soft: #f4f8ff;
    --brand-soft-2: #edf4ff;
    --brand-line-strong: rgba(11, 42, 82, 0.16);
    --brand-danger: #c62839;
    --brand-success: #16a34a;
    --radius-xl: 22px;
}

html {
    scroll-behavior: auto;
}

body {
    font-weight: 400;
    letter-spacing: 0.2px;
}

.page-wrap {
    padding: 0 0 72px;
}

.form-wrap {
    max-width: 1440px;
    margin: 0 auto;
}

.form-content-section {
    position: relative;
    z-index: 3;
    margin-top: -48px;
}

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

.form-shell {
    border-radius: 30px;
}

.shell-body {
    padding: 0;
}

.form-section {
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--brand-line);
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
}

.section-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    margin: 7px 0 0;
    color: var(--brand-muted);
    font-size: .95rem;
    line-height: 1.65;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eaf3ff;
    color: var(--brand-blue);
    font-weight: 700;
    font-size: .88rem;
    white-space: nowrap;
}

.section-body {
    padding: 24px;
}

.entry-card {
    border: 1px solid rgba(11, 42, 82, 0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    padding: 18px;
    margin-bottom: 16px;
    transition: all .25s ease;
}

.entry-card:last-child {
    margin-bottom: 0;
}

.entry-card:hover {
    border-color: rgba(29, 78, 216, .22);
    box-shadow: 0 12px 28px rgba(11, 42, 82, 0.08);
}

.entry-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.entry-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.leader-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.10);
    color: var(--brand-success);
    font-size: .82rem;
    font-weight: 700;
}

.form-label {
    font-weight: 500;
    color: var(--brand-text);
    margin-bottom: 8px;
}

.form-label .req,
.req {
    color: var(--brand-danger);
    margin-left: 4px;
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 13px;
    border: 1px solid var(--brand-line-strong);
    padding: .68rem .90rem;
    color: var(--brand-text);
    background-color: #fff;
    box-shadow: none !important;
    transition: all .18s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(29, 78, 216, .40);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-blue);
    background-color: #fff;
    box-shadow: 0 0 0 .22rem rgba(29, 78, 216, 0.12) !important;
}

.form-text {
    color: var(--brand-muted);
    font-size: .88rem;
    line-height: 1.6;
}

.file-panel {
    border: 1px dashed rgba(11, 42, 82, 0.18);
    border-radius: 16px;
    background: #f8fbff;
    padding: 14px;
}

.form-check-input:checked {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.btn {
    font-family: "Prompt", sans-serif;
    font-weight: 500;
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, #1f5daa 0%, #2f6fbe 100%);
    border-color: #2f6fbe;
    box-shadow: 0 12px 24px rgba(47, 111, 190, 0.20);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #184f92 0%, #245ea4 100%);
    border-color: #245ea4;
}

.btn-add {
    border-radius: 999px;
    padding: 10px 18px;
}

.btn-remove {
    min-width: 42px;
    border-radius: 999px;
}

.submit-sticky {
    position: relative;
    margin-top: 28px;
}

.submit-panel-plain {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.submit-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.submit-desc {
    margin: 0;
    color: var(--brand-muted);
    font-size: .92rem;
    line-height: 1.6;
}

.required-note {
    margin-top: 10px;
    font-size: .90rem;
    color: var(--brand-muted);
}

.submit-panel .btn:focus,
.submit-panel .btn:active {
    box-shadow: none !important;
    outline: none !important;
}

/* =========================================================
   ERROR FOCUS
========================================================= */

.focus-error {
    border-color: #c62839 !important;
    box-shadow: 0 0 0 .22rem rgba(198, 40, 57, 0.16) !important;
}

.focus-error-panel {
    animation: panelPulseError 1.3s ease;
}

@keyframes panelPulseError {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 40, 57, 0.00);
    }

    30% {
        box-shadow: 0 0 0 8px rgba(198, 40, 57, 0.10);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(198, 40, 57, 0.00);
    }
}

/* =========================================================
   SWEETALERT2
========================================================= */

.swal2-popup {
    border-radius: 22px !important;
    font-family: "Prompt", sans-serif !important;
    padding: 1.5rem !important;
}

.swal2-title {
    color: var(--brand-navy) !important;
    font-weight: 700 !important;
}

.swal2-html-container,
.swal2-text {
    color: var(--brand-text) !important;
}

.swal2-confirm,
.swal2-cancel {
    border-radius: 12px !important;
    padding: 10px 22px !important;
}

.swal2-confirm {
    font-weight: 600 !important;
}

.swal2-cancel {
    font-weight: 500 !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {
    .page-wrap {
        padding-bottom: 52px;
    }

    .form-content-section {
        margin-top: -30px;
    }

    .shell-body,
    .section-header,
    .section-body {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 767.98px) {
    .page-wrap {
        padding-bottom: 34px;
    }

    .form-content-section {
        margin-top: -14px;
    }

    .form-shell {
        border-radius: 24px;
    }

    .submit-panel {
        padding: 14px;
    }

    .submit-panel .btn,
    .btn-add {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1rem;
    }

    .section-subtitle {
        font-size: .90rem;
    }
}