:root {
    --primary: #fd9a07;
    --primary-dark: #fbc606;
    --primary-soft: #fff4d8;
    --accent: #f8b12f;
    --bg: #fff8eb;
    --text: #2b2b2b;
    --muted: #6d5b2f;
    --white: #ffffff;
    --success: #1f7a1f;
    --error: #c4333d;
    --shadow: 0 14px 36px rgba(253, 154, 7, 0.15);
    --tile-border: #f7d59c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #dff3e8 0%, var(--bg) 42%, #e8f2ec 100%);
    color: var(--text);
}

.hero {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(253, 154, 7, 0.12);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    flex-shrink: 0;
}

.logo-alt {
    width: 108px;
    max-width: min(108px, 28vw);
    height: auto;
    border-radius: 12px;
    background: rgba(253, 154, 7, 0.08);
    padding: 0.35rem;
    object-fit: contain;
}

.hero-text {
    flex: 1 1 200px;
    min-width: 0;
}

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

.badge-edital {
    display: inline-block;
    margin-top: 0.5rem;
    background: rgba(251, 198, 6, 0.18);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.notice {
    background: #fff5e5;
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #5a4416;
    border: 1px solid rgba(251, 198, 6, 0.2);
}

.card-form {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(253, 154, 7, 0.08);
}

.field-card {
    background: var(--primary-soft);
    border: 1px solid rgba(253, 154, 7, 0.14);
    border-radius: 14px;
    padding: 1rem 1.05rem;
}

.upload-section.field-card {
    background: linear-gradient(180deg, #f6fcf8 0%, #eef8f2 100%);
}

.form-control,
.form-select {
    border: 1px solid #b9d9c8;
    border-radius: 10px;
    background: #fff;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(248, 177, 47, 0.22);
}

.upload-field-hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.45rem;
    line-height: 1.35;
}

.btn-submit {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1.4rem;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease;
    box-shadow: 0 8px 20px rgba(253, 154, 7, 0.25);
}

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

.actions {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    text-align: center;
    margin: 2rem 0;
}

.footer-bg {
    width: 100%;
    background-image: url('img/comum/bg-rodape.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
    margin-top: 0;
}

.footer-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .footer-bg {
        min-height: 150px;
        background-size: cover;
    }
}

.captcha-slider {
    position: relative;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    height: 50px;
    margin-bottom: 1rem;
    overflow: hidden;
    touch-action: none;
}

.slider-handle {
    position: absolute;
    width: 50px;
    height: 46px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    left: 0;
    top: 0;
    transition: background-color 0.3s;
    z-index: 2;
    touch-action: none;
}

.slider-track {
    position: absolute;
    height: 100%;
    width: 0;
    transition: width 0.3s;
}

.slider-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 46px;
    color: #6c757d;
    user-select: none;
    font-size: 0.9rem;
    z-index: 1;
}

.slider-success {
    background: var(--primary-dark) !important;
}

.captcha-error {
    color: #dc3545;
    font-size: 0.875rem;
    display: none;
    margin-top: 0.5rem;
}

.page-title {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 35px;
    width: 100%;
}

.page-title i {
    color: var(--primary);
    font-size: 35px;
}

.header-info {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 1.5rem;
    background-color: #fff2da;
    margin: -2rem -2rem 2rem -2rem;
    padding: 2rem;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.header-info h6 {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.header-info h5 {
    color: var(--primary);
}

.segmentos {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 1rem;
}

.segmentos p {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.swal2-popup {
    padding: 2em;
}

.swal2-title {
    color: var(--primary) !important;
    font-size: 1.8em !important;
}

.swal2-html-container {
    margin: 1.5em 0 !important;
}

.alert-info {
    background-color: #fff4d8;
    border-color: #f7d59c;
    color: #6d520f;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.alert-info h3 {
    font-size: 2em;
    font-weight: bold;
    color: #b47006;
}

.text-muted.small {
    font-size: 0.85em;
}
