:root {
    /* Paleta inspirada no banner (laranja/rosa) */
    --primary: #ff7a00;
    --primary-dark: #e7511c;
    --secondary: #ff3d7a;
    --bg: #fff6f0;
    --text: #1b1b1b;
    --muted: #5b5560;
    --white: #ffffff;
    --success: #0f8a4b;
    --error: #bf1f2f;
    --shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(1200px 520px at -10% -10%, rgba(255, 122, 0, 0.22) 0%, rgba(255, 122, 0, 0) 60%),
        radial-gradient(1100px 520px at 110% -10%, rgba(255, 61, 122, 0.22) 0%, rgba(255, 61, 122, 0) 60%),
        radial-gradient(900px 460px at 20% 110%, rgba(255, 186, 0, 0.18) 0%, rgba(255, 186, 0, 0) 60%),
        linear-gradient(180deg, #fff 0%, var(--bg) 46%, #fff 100%);
    color: var(--text);
}

.hero {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.banner {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 14px;
    background: #f5f8fc;
    padding: 0.35rem;
    border: 1px solid #d8e5f6;
}

.hero-text h1 {
    margin: 0 0 0.45rem;
    font-size: 1.42rem;
    color: #111;
}

.hero-text p {
    margin: 0 0 0.45rem;
    color: var(--muted);
}

.edital {
    display: inline-block;
    background: rgba(255, 122, 0, 0.12);
    color: #6a2b00;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
}

.notice {
    margin-top: 1rem;
    background: rgba(255, 122, 0, 0.08);
    border-left: 5px solid var(--primary);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    color: #4a250f;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.card {
    margin-top: 1rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1.3rem;
}

.card h2 {
    margin: 0;
    color: #111;
}

.subtitle {
    margin-top: 0.45rem;
    color: var(--muted);
}

.stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.step-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #d8e5f6;
    background: #f9fbff;
    color: #1f3348;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-pill.active {
    border-color: rgba(255, 122, 0, 0.45);
    background: rgba(255, 122, 0, 0.1);
    color: #3b1a00;
}

.form-control,
.form-select {
    border: 1px solid #cfdaea;
    border-radius: 10px;
    background: #fbfdff;
    color: var(--text);
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.22);
}

.section-title {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid #e8eff8;
    color: #111;
}

.hint {
    color: var(--muted);
    font-size: 0.92rem;
}

.files {
    margin-top: 1.3rem;
}

.files h3 {
    margin: 0;
    color: #111;
}

.upload-card {
    display: block;
    background: #f9fbff;
    border: 1px solid #d8e5f6;
    border-radius: 14px;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-card:hover {
    border-color: rgba(255, 122, 0, 0.35);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.upload-title {
    display: block;
    font-weight: 600;
    color: #1f3348;
    margin-bottom: 0.55rem;
    line-height: 1.35;
    margin-top: 0.45rem;
}

.upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 122, 0, 0.14);
    color: #6a2b00;
    font-size: 1.1rem;
}

.upload-action {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
}

.upload-badge {
    display: none;
    margin-left: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f8a4b;
    background: rgba(15, 138, 75, 0.1);
    border: 1px solid rgba(15, 138, 75, 0.2);
    border-radius: 999px;
    padding: 0.28rem 0.52rem;
}

.upload-badge i {
    margin-right: 0.25rem;
}

.upload-card.valid-file {
    border-color: #68c795;
    background: #f4fcf7;
}

.upload-card.valid-file .upload-badge {
    display: inline-flex;
    align-items: center;
}

.upload-card.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.upload-card.is-disabled:hover {
    box-shadow: none;
    border-color: #d8e5f6;
}

.upload-file-name {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #526477;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-file-name.selected {
    color: #0f8a4b;
    font-weight: 600;
}

.upload-hint {
    display: block;
    margin-top: 0.4rem;
    color: #6f8194;
    font-size: 0.78rem;
}

.upload-card.invalid-file {
    border-color: #dd4a5f;
    background: #fff5f6;
    box-shadow: 0 0 0 3px rgba(191, 31, 47, 0.12);
}

.upload-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.actions {
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    text-align: center;
}

.btn-submit {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1.3rem;
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
}

button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

#statusMsg {
    font-weight: 700;
    color: var(--muted);
    text-align: center;
}

#statusMsg.success {
    color: var(--success);
}

#statusMsg.error {
    color: var(--error);
}

.upload-progress-wrap {
    margin-top: 0.9rem;
}

.upload-progress {
    height: 22px;
    border-radius: 999px;
    background: #e7eff8;
    overflow: hidden;
}

.upload-progress .progress-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    font-weight: 700;
    font-size: 0.78rem;
}

.custom-toast {
    min-width: 320px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(10, 42, 74, 0.22);
}

.custom-toast.success .toast-header {
    background: #eaf9f0;
    color: #0b6a39;
}

.custom-toast.error .toast-header {
    background: #fdebed;
    color: #9e1d2a;
}

@media (max-width: 820px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
}

