body {
    background-color: #f8f9fa;
}

/* Highlights required fields */
input[required],
select[required],
textarea[required] {
    border: 2px solid #007bff !important;
    background-color: antiquewhite;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

/* Focus state for required fields */
input[required]:focus,
select[required]:focus,
textarea[required]:focus {
    border-color: #0056b3 !important;
    box-shadow: 0 0 6px rgba(0, 86, 179, 0.5);
    background-color: antiquewhite;
}

/* Add asterisk to required labels */
label[for]::after {
    content: attr(data-required);
    color: #dc3545;
    font-weight: bold;
    margin-left: 4px;
}

/* Fallback asterisk for required inputs */
label[for]+.input-group input[required]~label::after,
label[for]+input[required]::after {
    content: "*";
    color: #dc3545;
}

.radio-erro {
    font-size: 0.9rem;
}

/* Toggle radio buttons */
.toggle-radio {
    display: flex;
    border: 1px solid #ced4da;
    border-radius: 50px;
    overflow: hidden;
    width: fit-content;
    background-color: #f1f3f5;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.toggle-radio input[type="radio"] {
    display: none;
}

.toggle-option {
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #495057;
    text-align: center;
    flex: 1;
    user-select: none;
}

/* Selected toggle option */
.toggle-radio input[type="radio"]:checked+.toggle-option {
    background: linear-gradient(135deg, #28a745, #5cd65c);
    color: #fff;
}

/* Radio buttons styled as toggles */
.form-check-input {
    display: none;
}

.form-check-label {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid #ced4da;
    background-color: #f1f3f5;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    user-select: none;
}

.form-check-input:checked+.form-check-label {
    background: linear-gradient(135deg, #007bff, #66b2ff);
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}

.form-check-label:hover {
    background-color: #e2e6ea;
}

/* Inline radio group */
.form-check.form-check-inline {
    display: block;
    align-items: center;
}

.bg-light {
    background-color: rgb(225 225 226) !important;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('../images/banner_zr2f_home.jpeg') center/cover no-repeat;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.mb-3 {
    margin-bottom: 10px !important;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.card {
    border-radius: 1rem;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.btn-primary {
    background: linear-gradient(135deg, #28a745, #5cd65c);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e7e34, #28a745);
    transform: scale(1.05);
}

.form-section {
    padding: 2rem;
    background-color: #fff;
    border-radius: 1rem;
    margin-top: 1rem;
}

footer {
    background: #001f3f;
    color: #ccc;
    text-align: center;
    padding: 1.5rem 0;
}

.language-selector {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.language-selector small {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.language-selector img {
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}