/* Reset básico */
* {
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* Fundo geral */
body {
    margin: 0;
    min-height: 100vh;
    background: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container principal */
#interface {
    background: #ffffff;
    width: 100%;
    max-width: 380px;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Fieldset */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Título */
legend {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

/* Inputs */
.estilo_007 {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    transition: border 0.2s, box-shadow 0.2s;
}

.estilo_007:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Botão */
#button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#button:hover {
    background: #1e4ed8;
}

/* Links */
p {
    text-align: left;
    margin: 8px 0;
}

p a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

p a:hover {
    text-decoration: underline;
}



/* ===== FORMULÁRIO ===== */

form {
    width: 100%;
}

fieldset {
    padding: 25px;
}

/* Linha do formulário */
form p {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

/* Labels */
form label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

/* Inputs padrão */
form input[type="text"],
form input[type="password"],
form select {
    width: 100%;
    max-width: 380px;   /* <<< CONTROLA O TAMANHO */
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}


/* Botões */
form input[type="submit"],
form input[type="button"] {
    width: auto;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 6px;
    border: none;
    background: #2563eb;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

form input[type="button"] {
    background: #6b7280;
}

/* Espaço entre botões */
form input[type="submit"] {
    margin-right: 10px;
}



/* Formulario para datas */
.linha-data {
    display: flex;
    flex-direction: column;
}

.campos-data {
    display: flex;
    align-items: center;
    gap: 6px;
}


.campos-data select {
    width: 8ch;          /* largura para 4 dígitos */
    padding: 6px 6px;    /* ajuste visual */
}

/* Radios alinhados em linha */
.radio-opcao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

.radio-opcao input[type="radio"] {
    margin: 0;
}


/* Links dentro do fieldset como botões */
fieldset p {
    display: block;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
}

fieldset p:hover {
    background: #e6f0ff;
    border-color: #2563eb;
}


textarea {
  width: 100%;
  box-sizing: border-box;
}


.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

