* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(
      135deg,
      rgba(11,47,109,0.85) 0%,
      rgba(15,79,196,0.75) 55%,
      rgba(74,163,255,0.7) 100%
    ),
    url("assets/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #16315f;
}

.page-shell {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 40px 20px;
}

.main-card {
  width: 100%;
  max-width: 1100px;
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  background: #f3f6fb;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(140, 163, 218, 0.35);
}

/* PAINEL ESQUERDO */
.left-panel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 35%),
    linear-gradient(180deg, #183b77 0%, #10367b 55%, #15479c 100%);
  overflow: hidden;
}

.left-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0.2) 100%
  );
  z-index: 1;
}

.banner-img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

/* PAINEL DIREITO */
.right-panel {
  background: #f7f9fd;
  padding: 56px 38px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 20px;
}

.brand {
  font-size: 26px;
  font-weight: 900;
  color: #143d84;
}

.lead-form h2,
.success-banner h2 {
  font-size: 54px;
  line-height: 1;
  color: #163d82;
  margin-bottom: 24px;
  font-weight: 900;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 14px;
  position: relative;
}

.field.full {
  width: 100%;
}

label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #233f72;
  margin-bottom: 8px;
}

input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 15px;
  border: 1px solid #d6dfef;
  background: #ffffff;
  outline: none;
  font-size: 16px;
  color: #19345f;
  transition: all 0.2s ease;
}

input::placeholder {
  color: #9ba9bf;
}

input:focus {
  border-color: #4b91ff;
  box-shadow: 0 0 0 4px rgba(75, 145, 255, 0.12);
}

/* SELECT IGUAL AOS INPUTS */
select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 15px;
  border: 1px solid #d6dfef;
  background: #ffffff;
  outline: none;
  font-size: 16px;
  color: #19345f;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

select:focus {
  border-color: #4b91ff;
  box-shadow: 0 0 0 4px rgba(75, 145, 255, 0.12);
}

.field select {
  padding-right: 40px;
}

.field:has(select)::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 42px;
  font-size: 12px;
  color: #7a8fb3;
  pointer-events: none;
}

/* LGPD */
.lgpd-field {
  margin-top: 8px;
  margin-bottom: 6px;
  padding: 14px 16px;
  border: 1px solid #d8e2f2;
  border-radius: 16px;
  background: #ffffff;
}

.lgpd-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #2a416f;
  cursor: pointer;
}

.lgpd-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: #1361df;
  cursor: pointer;
  box-shadow: none;
}

.lgpd-label span {
  display: block;
  flex: 1;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 14px;
}

button {
  height: 52px;
  padding: 0 28px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(90deg, #125fdf 0%, #2c8cff 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(39, 119, 242, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(39, 119, 242, 0.28);
}

.secondary-btn {
  background: transparent;
  color: #1361df;
  box-shadow: none;
  padding: 0;
  height: auto;
}

.secondary-btn:hover {
  transform: none;
  box-shadow: none;
  text-decoration: underline;
}

#msg {
  min-height: 24px;
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
}

/* BANNER DE SUCESSO */
.hidden {
  display: none;
}

.success-banner {
  width: 100%;
  text-align: center;
  padding: 28px 22px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(18, 95, 223, 0.96), rgba(44, 140, 255, 0.96));
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(18, 95, 223, 0.22);
  animation: fadeInUp 0.45s ease;
}

.success-banner h2 {
  color: #ffffff;
  font-size: 42px;
  margin-bottom: 12px;
}

.success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;
}

.success-subtitle {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.92);
}

.success-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto 24px;
}

.success-links a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 60px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.2s ease, background 0.2s ease;
}

.success-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.social-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  color: #ffffff;
}

#novoCadastroBtn {
  margin-top: 8px;
}

.site-footer {
  width: 100%;
  padding: 18px 20px 24px;
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.2px;
}

/* ANIMAÇÃO */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TABLET E MOBILE */
@media (max-width: 980px) {
  body {
    background:
      linear-gradient(
        180deg,
        rgba(9, 34, 84, 0.88) 0%,
        rgba(17, 79, 189, 0.80) 52%,
        rgba(78, 165, 255, 0.74) 100%
      ),
      url("assets/bg-mobile.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .page-shell {
    padding: 24px;
    align-items: flex-start;
  }

  .main-card {
    grid-template-columns: 1fr;
    min-height: auto;
    max-width: 760px;
  }

  .left-panel {
    min-height: 260px;
    padding: 28px 24px;
  }

  .left-panel::after {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.28) 0%,
      rgba(0,0,0,0.14) 100%
    );
  }

  .banner-img {
    max-width: 48%;
    max-height: 180px;
  }

  .right-panel {
    padding: 36px 28px 32px;
  }

  .lead-form h2,
  .success-banner h2 {
    font-size: 40px;
  }
}

/* MOBILE */
@media (max-width: 640px) {
  .page-shell {
    min-height: auto;
    padding: 14px;
  }

  .main-card {
    border-radius: 22px;
  }

  .left-panel {
    min-height: 180px;
    padding: 20px 18px;
  }

  .banner-img {
    max-width: 68%;
    max-height: 120px;
  }

  .right-panel {
    padding: 24px 18px 22px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .form-topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 8px;
  }

  .lead-form h2,
  .success-banner h2 {
    font-size: 34px;
    line-height: 1.05;
    margin-bottom: 18px;
  }

  .field {
    margin-bottom: 12px;
  }

  label {
    font-size: 14px;
    margin-bottom: 6px;
  }

  input,
  select {
    height: 54px;
    font-size: 16px;
  }

  .field:has(select)::after {
    top: 40px;
  }

  .lgpd-field {
    padding: 14px;
    border-radius: 14px;
  }

  .lgpd-label {
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 18px;
  }

  button {
    width: 100%;
  }

  .secondary-btn {
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 16px;
    border: 1px solid #b8cdf5;
    background: #ffffff;
    color: #1361df;
    box-shadow: none;
  }

  .secondary-btn:hover {
    text-decoration: none;
  }

  .success-banner {
    padding: 24px 16px;
    border-radius: 22px;
  }

  .success-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    font-size: 30px;
  }

  .success-subtitle {
    font-size: 16px;
    margin-bottom: 18px;
  }

  .success-links {
    gap: 12px;
  }

  .success-links a {
    min-height: 56px;
    justify-content: flex-start;
  }

  .site-footer {
    padding: 14px 16px 20px;
  }

  .site-footer p {
    font-size: 12px;
    line-height: 1.45;
  }
}

/* TELAS BEM PEQUENAS */
@media (max-width: 430px) {
  .page-shell {
    padding: 10px;
  }

  .left-panel {
    min-height: 150px;
    padding: 16px;
  }

  .banner-img {
    max-width: 74%;
    max-height: 100px;
  }

  .right-panel {
    padding: 20px 14px 18px;
  }

  .lead-form h2,
  .success-banner h2 {
    font-size: 30px;
  }

  .success-banner {
    padding: 20px 14px;
  }

  .lgpd-label {
    font-size: 12.5px;
  }
  /* LGPD CONFIRMAÇÃO (BANNER FINAL) */
.lgpd-confirm {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}


}