:root {
    --primary: #0c5ea8;
    --primary-dark: #08457c;
    --secondary: #ff9f1a;
    --bg: #f4f7fb;
    --text: #1d2a39;
    --muted: #5b6b7b;
    --white: #ffffff;
    --success: #0f8a4b;
    --error: #bf1f2f;
    --shadow: 0 14px 35px rgba(8, 69, 124, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #e9f1fb 0%, var(--bg) 40%, #eef3f7 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;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-main,
.logo-alt {
    width: 108px;
    height: auto;
    border-radius: 12px;
    background: #f5f8fc;
    padding: 0.35rem;
}

.hero-text h1 {
    margin: 0 0 0.45rem;
    font-size: 1.42rem;
    color: var(--primary-dark);
}

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

.edital {
    display: inline-block;
    background: rgba(255, 159, 26, 0.17);
    color: #734202;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
}

.notice {
    margin-top: 1rem;
    background: #fff8ea;
    border-left: 5px solid var(--secondary);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    color: #60380b;
    box-shadow: 0 8px 20px rgba(115, 66, 2, 0.08);
}

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

.card h2 {
    margin: 0;
    color: var(--primary-dark);
}

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

.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(12, 94, 168, 0.2);
}

.files {
    margin-top: 1.3rem;
}

.files h3 {
    margin: 0;
    color: var(--primary-dark);
}

.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: #a5c5e8;
    box-shadow: 0 10px 20px rgba(8, 69, 124, 0.08);
}

.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(12, 94, 168, 0.12);
    color: var(--primary);
    font-size: 1.1rem;
}

.upload-action {
    display: inline-block;
    background: #0c5ea8;
    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-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(--primary-dark) 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%, #2f8ce2 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;
    }

    .logo-wrap {
        justify-content: center;
        flex-wrap: wrap;
    }
}

