/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================================================
   CONFIGURAÇÃO GERAL
========================================================= */

html,
body {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: #f6f6f6;
    color: #222;
}

/* =========================================================
   CABEÇALHO
========================================================= */

.top-header {
    background-color: #ffffff;
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eeeeee;
}

.top-header img {
    height: 35px;
}

/* =========================================================
   BANNER
========================================================= */

.banner {
    background-image: url("../assets/images/banner-spx.webp");
    background-size: cover;
    background-position: center;
    height: 140px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    position: relative;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.banner-text {
    position: relative;
    z-index: 1;
    width: 90%;
    padding-bottom: 15px;
    color: #ffffff;
    text-align: center;
}

.banner-text h1 {
    font-size: 22px;
    font-weight: bold;
}

/* =========================================================
   CONTEÚDO PRINCIPAL
========================================================= */

.main-card {
    width: 100%;
    padding: 20px 16px;
    background-color: #ffffff;
    border-bottom: 1px solid #dddddd;
}

/* =========================================================
   AVISO
========================================================= */

.disclaimer {
    margin-bottom: 24px;
    padding: 12px;
    background-color: #fff5f2;
    border-left: 4px solid #ee4d2d;
    color: #555555;
    font-size: 13px;
    line-height: 1.5;
}

/* =========================================================
   FORMULÁRIO
========================================================= */

.form-group {
    width: 100%;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-size: 15px;
    font-weight: 600;
}

.help-text {
    display: block;
    margin-bottom: 10px;
    color: #888888;
    font-size: 12px;
    font-style: italic;
}

/* =========================================================
   INPUTS E SELECT
========================================================= */

input[type="text"],
select {
    width: 100%;
    padding: 14px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    outline: none;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
}

#pesquisaHub {
    margin-bottom: 14px;
}

#hubId {
    appearance: auto;
    -webkit-appearance: menulist;
}

#statusHubs {
    margin-top: 8px;
    font-size: 14px;
    color: #555555;
    overflow-wrap: anywhere;
}

input[type="text"]:focus,
select:focus {
    border-color: #ee4d2d;
}

/* =========================================================
   RADIO BUTTONS
========================================================= */

.radio-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 5px 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    font-size: 16px;
    cursor: pointer;
}

.radio-option input {
    width: 24px;
    height: 24px;
    accent-color: #ee4d2d;
    cursor: pointer;
}

/* =========================================================
   ALERTA
========================================================= */

.alert-text {
    margin-top: 12px;
    color: #ee4d2d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* =========================================================
   BOTÃO
========================================================= */

button {
    width: 100%;
    margin-top: 10px;
    padding: 18px;
    background-color: #ee4d2d;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    opacity: 0.95;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================
   MENSAGEM DE RETORNO
========================================================= */

#mensagemRetorno {
    display: none;
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (min-width: 768px) {
    .main-card {
        max-width: 600px;
        margin: 0 auto;
    }

    .banner-text {
        max-width: 600px;
    }
}
