/* ==========================================================================
   Media Partner Apply Form — editorial monochrome
   Consistent with landing (media-partner-landing.css).
   Scoped via .mp-form to avoid leaking to other Bootstrap forms.
   Design tokens (--mp-*) live in mp-tokens.css — must be loaded first.
   ========================================================================== */

body { background: var(--mp-paper); }

/* ----- container ----- */
.mp-form {
    font-family: 'Lato', sans-serif;
    color: var(--mp-ink);
    line-height: 1.6;
}

.mp-form__container {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

@media (min-width: 768px) {
    .mp-form__container { padding: 80px 40px 120px; }
}

/* ----- title ----- */
.mp-form__title {
    font-family: 'GothamPro', sans-serif;
    font-weight: 800;
    font-size: 30px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -.01em;
    color: var(--mp-ink);
    margin: 0 0 12px;
    text-align: left;
}

@media (min-width: 768px) {
    .mp-form__title { font-size: 44px; }
}

/* ==========================================================================
   Step indicator
   ========================================================================== */
.mp-form-steps {
    display: flex;
    align-items: stretch;
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    border-top: 1px solid var(--mp-hair-strong);
    border-bottom: 1px solid var(--mp-hair-strong);
    counter-reset: mp-step;
}

.mp-form-steps .progress-step {
    flex: 1;
    counter-increment: mp-step;
    padding: 14px 6px;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mp-silver-2);
    border-left: 1px solid var(--mp-hair);
    cursor: default;
    transition: color .25s ease;
}

.mp-form-steps .progress-step:first-child { border-left: none; }

.mp-form-steps .progress-step::before {
    content: counter(mp-step, decimal-leading-zero);
    display: block;
    font-family: 'GothamPro', sans-serif;
    font-weight: 800;
    font-size: 22px;
    line-height: 1;
    color: var(--mp-silver-1);
    margin-bottom: 6px;
    letter-spacing: 0;
    transition: color .25s ease;
}

.mp-form-steps .progress-step.is-done {
    color: var(--mp-concrete);
    cursor: pointer;
}

.mp-form-steps .progress-step.is-done::before { color: var(--mp-concrete); }

.mp-form-steps .progress-step.is-active { color: var(--mp-ink); }

.mp-form-steps .progress-step.is-active::before {
    background: var(--mp-foil-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@media (max-width: 575px) {
    .mp-form-steps .progress-step { font-size: 9px; padding: 10px 3px; }
    .mp-form-steps .progress-step::before { font-size: 18px; }
}

/* ==========================================================================
   Wizard panels
   ========================================================================== */
.wizard-step { display: none; }
.wizard-step.active { display: block; }

.mp-form-panel {
    background: var(--mp-paper);
    border: 1px solid var(--mp-hair-strong);
    padding: 28px 22px;
    margin: 0 auto;
    max-width: none;
}

@media (min-width: 768px) {
    .mp-form-panel { padding: 40px; }
}

.mp-form-panel__title {
    font-family: 'GothamPro', sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--mp-ink);
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--mp-hair);
}

/* ==========================================================================
   Fields
   ========================================================================== */
.mp-form-field {
    margin-bottom: 20px;
}

.mp-form-field:last-of-type { margin-bottom: 0; }

.mp-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mp-ink);
    margin: 0 0 8px;
}

.mp-form-label__icon {
    color: var(--mp-silver-2);
    width: 14px;
    text-align: center;
    font-size: 14px;
}

.mp-form-label__required {
    color: var(--mp-decline);
    margin-left: 2px;
}

/* Form control — override Bootstrap defaults within .mp-form scope */
.mp-form .form-control {
    background: var(--mp-paper);
    border: 1px solid var(--mp-hair-strong);
    border-radius: 0;
    padding: 12px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: var(--mp-ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: none;
    height: auto;
}

.mp-form .form-control::placeholder { color: var(--mp-silver-2); opacity: 1; }

.mp-form .form-control:focus {
    border-color: var(--mp-ink);
    box-shadow: 0 0 0 3px rgba(11, 11, 11, .08);
    outline: none;
    background: var(--mp-paper);
    color: var(--mp-ink);
}

/* Valid / invalid colour signal — kept (user likes this UX) but
   re-skinned to editorial palette; drop the Bootstrap inline icons */
.mp-form .form-control.is-valid,
.mp-form .form-control.is-valid:focus {
    border-color: var(--mp-accept);
    background-image: none;
    padding-right: 16px;
}

.mp-form .form-control.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(42, 140, 74, .15);
}

.mp-form .form-control.is-invalid,
.mp-form .form-control.is-invalid:focus {
    border-color: var(--mp-decline);
    background-image: none;
    padding-right: 16px;
}

.mp-form .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(181, 74, 62, .15);
}

.mp-form textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

/* Custom select chevron */
.mp-form select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%230b0b0b' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Date input — strip Bootstrap inner controls quirks */
.mp-form input[type="date"].form-control { padding-right: 12px; }

/* ==========================================================================
   Select2 override — make the library's default look match the
   editorial monochrome palette. Scoped within .mp-form so we don't
   touch Select2 instances elsewhere (admin panel, etc.).
   ========================================================================== */
.mp-form .select2-container { width: 100% !important; display: block; }

.mp-form .select2-container .select2-selection--single {
    height: auto;
    min-height: 0;
    padding: 0;
    background: var(--mp-paper);
    border: 1px solid var(--mp-hair-strong);
    border-radius: 0;
    outline: none;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mp-form .select2-container--open .select2-selection--single,
.mp-form .select2-container--focus .select2-selection--single {
    border-color: var(--mp-ink);
    box-shadow: 0 0 0 3px rgba(11, 11, 11, .08);
}

.mp-form .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 12px 40px 12px 16px;
    line-height: 1.4;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--mp-ink);
}

.mp-form .select2-container .select2-selection--single .select2-selection__placeholder {
    color: var(--mp-silver-2);
}

.mp-form .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100%;
    width: 36px;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
}

.mp-form .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: var(--mp-ink) transparent transparent transparent;
    border-width: 6px 5px 0 5px;
    margin-left: -5px;
    margin-top: -3px;
}

.mp-form .select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--mp-ink) transparent;
    border-width: 0 5px 6px 5px;
}

/* Dropdown panel */
.select2-container--default .select2-dropdown {
    background: var(--mp-paper);
    border: 1px solid var(--mp-ink);
    border-radius: 0;
    box-shadow: 0 12px 28px -16px rgba(0, 0, 0, .35);
}

.select2-container--default .select2-dropdown .select2-search--dropdown {
    padding: 8px;
    border-bottom: 1px solid var(--mp-hair);
}

.select2-container--default .select2-dropdown .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--mp-hair-strong);
    border-radius: 0;
    padding: 8px 12px;
    background: var(--mp-paper);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: var(--mp-ink);
    outline: none;
}

.select2-container--default .select2-dropdown .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--mp-ink);
    box-shadow: 0 0 0 2px rgba(11, 11, 11, .08);
}

.select2-container--default .select2-results__options {
    padding: 4px 0;
}

.select2-container--default .select2-results__option {
    padding: 10px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: var(--mp-ink);
    border-radius: 0;
    transition: background .15s ease, color .15s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
    background: var(--mp-ink);
    color: var(--mp-paper);
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--mp-bone);
    color: var(--mp-ink);
    font-weight: 700;
}

.select2-container--default .select2-results__option[aria-selected="true"].select2-results__option--highlighted {
    background: var(--mp-ink);
    color: var(--mp-paper);
}

.select2-container--default .select2-results__option[aria-disabled="true"] {
    color: var(--mp-silver-2);
    cursor: not-allowed;
}

/* Carry the .is-valid / .is-invalid hint over to the Select2 wrapper
   too, since the underlying <select> gets the class but it's hidden */
.mp-form select.form-control.is-valid + .select2-container .select2-selection--single {
    border-color: var(--mp-accept);
}

.mp-form select.form-control.is-invalid + .select2-container .select2-selection--single {
    border-color: var(--mp-decline);
}

/* ----- Char counter ----- */
.mp-form-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: .04em;
}

.mp-form-counter__hint {
    color: var(--mp-silver-2);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .12em;
}

.mp-form-counter__count {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    color: var(--mp-decline);
    letter-spacing: .04em;
}

.mp-form-counter__count.is-ok { color: var(--mp-accept); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.mp-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 2px solid var(--mp-ink);
    border-radius: 0;
    background: var(--mp-paper);
    color: var(--mp-ink);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    text-decoration: none;
    line-height: 1;
}

.mp-form-btn:hover,
.mp-form-btn:focus-visible {
    background: var(--mp-ink);
    color: var(--mp-paper);
    transform: translateY(-1px);
    text-decoration: none;
}

.mp-form-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.mp-form-btn--primary {
    background: var(--mp-ink);
    color: var(--mp-paper);
}

.mp-form-btn--primary:hover,
.mp-form-btn--primary:focus-visible {
    background: var(--mp-paper);
    color: var(--mp-ink);
}

.mp-form-btn--secondary {
    background: var(--mp-paper);
    color: var(--mp-ink);
}

.mp-form-btn--submit {
    background: var(--mp-ink);
    color: var(--mp-paper);
    padding: 14px 32px;
    font-size: 13px;
}

.mp-form-btn--submit:hover,
.mp-form-btn--submit:focus-visible {
    background: var(--mp-paper);
    color: var(--mp-ink);
}

.mp-form-btn--ghost {
    background: transparent;
    border-color: var(--mp-hair-strong);
    color: var(--mp-concrete);
    padding: 10px 16px;
    font-size: 11px;
}

.mp-form-btn--ghost:hover,
.mp-form-btn--ghost:focus-visible {
    background: transparent;
    color: var(--mp-ink);
    border-color: var(--mp-ink);
}

.mp-form-btn--danger {
    background: transparent;
    color: var(--mp-decline);
    border: none;
    padding: 0 4px;
    font-size: 11px;
    letter-spacing: .04em;
}

.mp-form-btn--danger:hover {
    background: transparent;
    color: var(--mp-decline);
    text-decoration: underline;
}

/* Step navigation row */
.mp-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 12px;
}

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

/* ==========================================================================
   Repeater (Add Link)
   ========================================================================== */
.mp-form-links { margin-top: 4px; }

.mp-form-links .form-row {
    display: grid;
    grid-template-columns: minmax(110px, 130px) 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
}

.mp-form-links .form-row > div { padding: 0; max-width: 100%; flex: none; }

.mp-form-links .remove-link {
    align-self: center;
    color: var(--mp-decline);
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: transparent;
    border: none;
    padding: 0 8px;
}

.mp-form-links .remove-link:hover { text-decoration: underline; }

@media (max-width: 575px) {
    .mp-form-links .form-row { grid-template-columns: 1fr auto; }
    .mp-form-links .form-row > div:first-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   Checkbox custom
   ========================================================================== */
.mp-form .form-check { padding-left: 0; margin-bottom: 8px; }

.mp-form .form-check-custom {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mp-form .form-check-custom .form-check-input {
    /* Override Bootstrap's position:absolute so the input participates
       in the flex layout and `gap` actually separates it from the label */
    position: static;
    margin: 2px 0 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--mp-hair-strong);
    border-radius: 0;
    background-color: var(--mp-paper);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
    flex-shrink: 0;
}

/* Bootstrap paints sibling labels green/red when the input gets
   is-valid/is-invalid. For checkboxes we don't want that visual
   signal — the box already shows checked/unchecked. Keep label ink. */
.mp-form .form-check-input.is-valid ~ .form-check-label,
.mp-form .form-check-input.is-invalid ~ .form-check-label {
    color: var(--mp-ink);
}

.mp-form .form-check-custom .form-check-input:hover { border-color: var(--mp-ink); }

.mp-form .form-check-custom .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(11, 11, 11, .12);
    outline: none;
    border-color: var(--mp-ink);
}

.mp-form .form-check-custom .form-check-input:checked {
    background-color: var(--mp-ink);
    border-color: var(--mp-ink);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fafaf9' stroke-width='2.5' d='M3 8.5l3 3 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.mp-form .form-check-label {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: var(--mp-ink);
    cursor: pointer;
    line-height: 1.4;
}

/* ==========================================================================
   File upload
   ========================================================================== */
.mp-form-drop-zone {
    border: 1.5px dashed var(--mp-hair-strong);
    background: var(--mp-bone);
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.mp-form-drop-zone:hover,
.mp-form-drop-zone.dragover {
    border-color: var(--mp-ink);
    background: var(--mp-paper);
}

.mp-form-drop-zone i {
    font-size: 28px;
    color: var(--mp-silver-2);
    margin-bottom: 8px;
    display: block;
}

.mp-form-drop-zone p {
    color: var(--mp-concrete);
    font-size: 13px;
    margin: 0;
}

.mp-form-file-list { margin-top: 12px; }

.mp-form-file-list .file-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: var(--mp-paper);
    border: 1px solid var(--mp-hair-strong);
    border-radius: 0;
    margin-bottom: 6px;
    transition: border-color .2s ease;
}

.mp-form-file-list .file-item:hover { border-color: var(--mp-ink); }

.mp-form-file-list .file-icon {
    color: var(--mp-silver-2);
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.mp-form-file-list .file-info { flex: 1; min-width: 0; }

.mp-form-file-list .file-name {
    font-weight: 700;
    color: var(--mp-ink);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.mp-form-file-list .file-size {
    font-size: 11px;
    color: var(--mp-silver-2);
    letter-spacing: .04em;
}

.mp-form-file-list .file-remove {
    margin-left: 12px;
    color: var(--mp-decline);
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s ease;
    flex-shrink: 0;
}

.mp-form-file-list .file-remove:hover { opacity: 1; }

/* ==========================================================================
   Inline banner — replaces toastr in Chunk B
   ========================================================================== */
.mp-form-banner {
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid var(--mp-hair-strong);
    background: var(--mp-bone);
    font-size: 14px;
    line-height: 1.5;
    color: var(--mp-ink);
    display: none;
}

.mp-form-banner.is-visible { display: block; }

.mp-form-banner--success {
    border-color: var(--mp-accept);
    background: rgba(42, 140, 74, .08);
}

.mp-form-banner--error {
    border-color: var(--mp-decline);
    background: rgba(181, 74, 62, .08);
}

.mp-form-banner--warning {
    border-color: var(--mp-silver-2);
    background: rgba(138, 138, 135, .14);
}

/* ==========================================================================
   Modal restyle (terms, thank-you) — .mp-modal namespace
   ========================================================================== */
.mp-modal .modal-content {
    border-radius: 0;
    border: 1px solid var(--mp-ink);
    background: var(--mp-paper);
    color: var(--mp-ink);
}

.mp-modal .modal-header {
    border-bottom: 1px solid var(--mp-hair);
    padding: 18px 22px;
}

.mp-modal .modal-title {
    font-family: 'GothamPro', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mp-ink);
}

.mp-modal .modal-header .close {
    color: var(--mp-ink);
    opacity: .8;
    font-weight: 300;
}

.mp-modal .modal-header .close:hover { opacity: 1; }

.mp-modal .modal-body { padding: 22px; color: var(--mp-concrete); }

.mp-modal .modal-footer {
    border-top: 1px solid var(--mp-hair);
    padding: 14px 22px;
}

.mp-modal .terms-content h4 {
    font-family: 'GothamPro', sans-serif !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
    color: var(--mp-ink) !important;
}

.mp-modal .terms-content h5 {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mp-ink) !important;
}

.mp-modal .terms-content .badge {
    background: var(--mp-ink) !important;
    color: var(--mp-paper) !important;
    border-radius: 0;
    padding: 3px 7px;
    font-weight: 900;
}

.mp-modal .terms-content i.fa-circle { color: var(--mp-silver-2) !important; }

.mp-modal .terms-content i.fa-handshake,
.mp-modal .terms-content i.fa-info-circle {
    color: var(--mp-ink) !important;
}

.mp-modal .terms-content .alert {
    border-left-color: var(--mp-ink) !important;
    background: var(--mp-bone) !important;
    border-radius: 0;
}

.mp-modal .terms-content a {
    color: var(--mp-ink);
    text-decoration: underline;
}

/* Modal action buttons */
.mp-modal .modal-footer .btn-primary,
.mp-modal .modal-footer .btn-secondary {
    border-radius: 0 !important;
    padding: 10px 22px !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 900 !important;
    font-size: 12px !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    border: 2px solid var(--mp-ink) !important;
    transition: background .2s ease, color .2s ease !important;
}

.mp-modal .modal-footer .btn-primary {
    background: var(--mp-ink) !important;
    color: var(--mp-paper) !important;
}

.mp-modal .modal-footer .btn-primary:hover {
    background: var(--mp-paper) !important;
    color: var(--mp-ink) !important;
}

.mp-modal .modal-footer .btn-secondary {
    background: var(--mp-paper) !important;
    color: var(--mp-ink) !important;
}

.mp-modal .modal-footer .btn-secondary:hover {
    background: var(--mp-ink) !important;
    color: var(--mp-paper) !important;
}

/* ==========================================================================
   Thank-you / success modal — .mp-thanks editorial layout
   ========================================================================== */
.mp-modal--thanks .modal-dialog {
    max-width: 460px;
    width: 100%;
    margin: 16px auto;
}

.mp-modal--thanks .modal-content {
    border: 1px solid var(--mp-ink);
    background: var(--mp-paper);
    overflow: hidden;
}

.mp-thanks {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px;
}

/* Success badge */
.mp-thanks__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 140, 74, .12);
    border: 1px solid var(--mp-accept);
    color: var(--mp-accept);
    margin-bottom: 18px;
    transform-origin: center;
    animation: mp-thanks-pop .42s cubic-bezier(.34, 1.56, .64, 1) both;
}

.mp-thanks__icon i {
    font-size: 26px;
    line-height: 1;
}

@keyframes mp-thanks-pop {
    0%   { transform: scale(.4); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .mp-thanks__icon { animation: none; }
}

/* Eyebrow */
.mp-thanks__eyebrow {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mp-silver-2);
    margin-bottom: 8px;
}

/* Title */
.mp-thanks__title {
    font-family: 'GothamPro', sans-serif;
    font-weight: 800;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--mp-ink);
    margin: 0 0 10px;
}

/* Message */
.mp-thanks__msg {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--mp-concrete);
    max-width: 34ch;
    margin: 0 0 22px;
}

/* Info panel */
.mp-thanks__panel {
    width: 100%;
    border: 1px solid var(--mp-hair-strong);
    background: var(--mp-bone);
    padding: 16px 18px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.mp-thanks__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mp-thanks__row i {
    flex: 0 0 auto;
    width: 18px;
    margin-top: 2px;
    text-align: center;
    font-size: 14px;
    color: var(--mp-ink);
}

.mp-thanks__row:first-child i { color: var(--mp-accept); }

.mp-thanks__row span {
    font-family: 'Lato', sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--mp-ink);
}

/* Actions */
.mp-thanks__actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.mp-thanks__cta {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mp-thanks__close {
    appearance: none;
    background: transparent;
    border: none;
    padding: 8px 10px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mp-silver-2);
    cursor: pointer;
    transition: color .2s ease;
}

.mp-thanks__close:hover,
.mp-thanks__close:focus-visible {
    color: var(--mp-ink);
    text-decoration: underline;
}

.mp-thanks__close:focus-visible {
    outline: 2px solid var(--mp-ink);
    outline-offset: 2px;
}

@media (min-width: 576px) {
    .mp-thanks { padding: 36px 32px 32px; }
    .mp-thanks__title { font-size: 30px; }
}

/* Modal full-screen on mobile (preserved from previous inline style) for the
   terms modal; the compact success modal keeps its centered card. */
@media (max-width: 575px) {
    .mp-modal:not(.mp-modal--thanks) .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }
    .mp-modal:not(.mp-modal--thanks) .modal-content {
        height: 100%;
        border-radius: 0;
    }
    .mp-modal--thanks .modal-dialog {
        margin: 12px;
        max-width: calc(100% - 24px);
    }
}

/* ==========================================================================
   Categorized file repeater
   ========================================================================== */
.mp-form-files {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.mp-form-file-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--mp-bone);
    border: 1px solid var(--mp-hair);
}

.mp-form-file-row__main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 12px;
    min-width: 0;
}

@media (max-width: 575px) {
    .mp-form-file-row__main { grid-template-columns: 1fr; }
}

.mp-form-file-row__category { display: flex; flex-direction: column; }

.mp-form-file-row__drop { min-width: 0; }

.mp-form-file-row__remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid var(--mp-hair-strong);
    background: var(--mp-paper);
    color: var(--mp-decline);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.mp-form-file-row__remove:hover,
.mp-form-file-row__remove:focus-visible {
    background: var(--mp-decline);
    color: var(--mp-paper);
    outline: none;
}

/* ----- Generic inline field error (server validation feedback) -----
   Used for non-file fields like the consent checkbox. Sits beneath the
   field with the same red treatment as file-row errors. */
.mp-form-field-error {
    margin-top: 6px;
    padding: 6px 10px;
    background: rgba(181, 74, 62, .08);
    border-left: 3px solid var(--mp-decline);
    color: var(--mp-decline);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
}

/* When the error sits inside a Bootstrap .form-check (checkbox/radio),
   pull it flush-left so it doesn't inherit the input's left indent */
.form-check .mp-form-field-error {
    margin-left: -1.25rem;
}

/* ----- Per-row error highlights (server validation feedback) -----
   width: 100% + parent's flex-wrap puts the error block on its own line
   below the category + dropzone + remove-button row */
.mp-form-file-row__error {
    flex-basis: 100%;
    width: 100%;
    order: 99;
    margin: 0;
    padding: 8px 12px;
    background: rgba(181, 74, 62, .08);
    border-left: 3px solid var(--mp-decline);
    color: var(--mp-decline);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
}

.mp-form-file-row__error > div {
    /* Each error message on its own line — markRowError appends one div
       per error so multiple errors on the same row stack vertically */
    margin-top: 4px;
}

.mp-form-file-row__error > div:first-child {
    margin-top: 0;
}

.mp-form-files .dropzone-area.mp-form-file-row__drop--error {
    border-color: var(--mp-decline);
    border-style: solid;
    background: rgba(181, 74, 62, .04);
}

/* ----- Sub-labels above dropdown + dropzone (the "Jenis File" / "File"
   captions inside each row) ----- */
.mp-form-file-row__sublabel {
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mp-silver-2);
    margin-bottom: 6px;
}

.mp-form-file-row__drop-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ----- Dropzone area (scoped to .mp-form-files so admin Dropzones
   elsewhere stay untouched) ----- */
.mp-form-files .dropzone-area.dropzone {
    background: var(--mp-paper);
    border: 1.5px dashed var(--mp-hair-strong);
    border-radius: 0;
    min-height: 76px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s ease, background .2s ease;
    cursor: pointer;
    position: relative;
}

.mp-form-files .dropzone-area.dropzone:hover,
.mp-form-files .dropzone-area.dropzone.dz-drag-hover {
    border-color: var(--mp-ink);
    background: var(--mp-bone);
}

/* Custom default message inside the dropzone (icon + text) */
.mp-form-files .dropzone-area .dz-message.mp-form-dropzone-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: var(--mp-concrete);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
}

.mp-form-files .dropzone-area .dz-message.mp-form-dropzone-message i {
    font-size: 22px;
    color: var(--mp-silver-2);
    margin-bottom: 4px;
}

/* Hide the default message Dropzone might inject (we already provided one) */
.mp-form-files .dropzone-area .dz-default.dz-message:not(.mp-form-dropzone-message) {
    display: none;
}

/* ----- Compact file preview card (replaces Dropzone's default grid tile) ----- */
.mp-form-files .dropzone-area .dz-preview.mp-form-file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 10px;
    background: var(--mp-paper);
    border: 1px solid var(--mp-hair-strong);
    border-radius: 0;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.mp-form-file-preview__icon {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--mp-silver-2);
    width: 28px;
    text-align: center;
}

.mp-form-file-preview__info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.mp-form-file-preview__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--mp-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-form-file-preview__name strong {
    font-weight: 700;
}

.mp-form-file-preview__size {
    font-size: 11px;
    color: var(--mp-silver-2);
    letter-spacing: .04em;
}

.mp-form-file-preview__remove {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--mp-decline);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.mp-form-file-preview__remove:hover,
.mp-form-file-preview__remove:focus-visible {
    color: var(--mp-ink);
    outline: none;
}

/* Suppress Dropzone's default decorations we don't use in the compact card */
.mp-form-files .dropzone-area .dz-preview .dz-success-mark,
.mp-form-files .dropzone-area .dz-preview .dz-error-mark,
.mp-form-files .dropzone-area .dz-preview .dz-progress,
.mp-form-files .dropzone-area .dz-preview .dz-error-message,
.mp-form-files .dropzone-area .dz-preview .dz-image {
    display: none !important;
}

/* When a file is present, the dropzone needs to lose its centered layout
   so the preview card spans the full width */
.mp-form-files .dropzone-area.dropzone.dz-started {
    display: block;
    padding: 0;
    border-style: solid;
    border-color: var(--mp-hair);
    background: transparent;
    cursor: default;
}

.mp-form-files .dropzone-area.dropzone.dz-started .dz-message {
    display: none;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .mp-form .form-control,
    .mp-form-btn,
    .mp-form-steps .progress-step,
    .mp-form-drop-zone,
    .mp-form-file-list .file-item {
        transition: none !important;
    }
}
