/* ===============================
   BASE
=================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ===============================
   CONTAINER PRINCIPAL
=================================*/
.form-container {
  background: #f4e540;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 600px;
}

/* ===============================
   HEADER / NAVBAR
=================================*/
header {
  margin-bottom: 30px;
}

.navbar {
  width: 100%;
  color: #000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  text-transform: uppercase;
  font-family: 'Arial Black', Arial, sans-serif;
}

.logo {
  width: 120px;
  margin-bottom: 10px;
}

.info {
  text-align: right;
  font-size: 10px;
  font-weight: 600;
  font-family: 'Arial Black', Arial, sans-serif;
}

.contactos p {
  color: #000;
}

.contactos .telefone {
  color: #e00000; 
}

.contactos .email {
  color: #000;
}

.contactos .redes {
  color: #000;
}

/* ===============================
   CARTÃO (TÍTULO LADO DIREITO)
=================================*/
.cartao {
  text-align: right;
  line-height: 1.2;
  margin-top: 40px;
}

.cartao .titulo {
  font-size: 18px;
  font-weight: 900;
  color: #000;
  font-family: 'Arial Black', Arial, sans-serif;
}

.cartao .sub {
  font-weight: normal;
  font-size: 18px;
}

.cartao .ano {
  font-size: 45px;
  color: #e00000; 
  font-weight: 900;
  letter-spacing: 2px;
}

/* ===============================
   FORMULÁRIO
=================================*/
label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  font-size: 12px;
  font-family: 'Arial Black', Arial, sans-serif;
}

a {
  font-size: 8.5px;
  font-family: 'Arial', sans-serif;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.linha {
  display: flex;
  gap: 10px; 
  flex-wrap: wrap;
}

.campo {
  display: flex;
  flex-direction: column; 
  flex: 1; 
}

/* ===============================
   UPLOAD DE IMAGEM
=================================*/
.image-upload-wrapper {
  margin-top: 25px;
  text-align: center;
}

.custom-file-upload {
  display: inline-block;
  padding: 10px 16px;
  background-color: #000;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 12px;
  transition: background 0.3s ease;
}

.custom-file-upload:hover {
  background-color: #333;
}

.image-preview {
  width: 200px;
  height: 200px;
  border: 2px dashed #000;
  border-radius: 10px;
  margin: 15px auto 0;
  object-fit: cover;
  display: none;
  background-color: rgba(255,255,255,0.4);
}

/* ===============================
   BOTÕES
=================================*/
input[type="submit"],
button {
  background: #000;
  color: #fff;
  border: none;
  padding: 14px;
  width: 60%;
  margin: 30px auto 0;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Arial Black', Arial, sans-serif;
  display: block;
  transition: background 0.3s ease;
}

input[type="submit"]:hover,
button:hover {
  background: #333;
}

/* ===============================
   FOOTER
=================================*/
footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
  border-top: 1px solid #000;
  padding: 25px 0 0 0;
  margin-top: 35px;
}

footer p {
  margin: 6px 0;
}

.termos {
  color: #e00000;
  font-size: 8px;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
}

.condicoes {
  color: #000;
  font-size: 8px;
  font-family: 'Arial', sans-serif;
}

/* ===============================
   TÍTULO FINAL
=================================*/
h1 {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 10px;
  color: #e00000; 
  font-weight: 900;
  margin-top: 35px;
  text-align: right;
}

/* ===============================
   RESPONSIVIDADE
=================================*/
@media (max-width: 768px) {
  .form-container {
    padding: 25px 20px;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cartao {
    text-align: center;
    margin-top: 10px;
  }

  input[type="submit"],
  button {
    width: 80%;
  }
}

@media (max-width: 480px) {
  input[type="submit"],
  button {
    width: 100%;
    font-size: 12px;
  }

  .image-preview {
    width: 160px;
    height: 160px;
  }
}
