@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
:root {
  --primary: #662d91;
  --accent: #be2782;
  --bg: #f6f9fe;
  --form-bg: #fff;
  --side-bg: #f7f9ff;
  --input-bg: #f8f8fa;
  --input-border: #d2ccec;
  --radius: 18px;
  --shadow: 0 3px 24px rgba(90,50,150,.09);
}
html, body { height: 100%; }
body {
  background: var(--bg);
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #27273c;
}
.layout {
  display: flex;
  gap: 44px;
  max-width: 1200px;
  margin: 44px auto 0 auto;
  align-items: flex-start;
  padding: 0 14px 120px 14px;
}
.container {
  flex: 1.2 1 520px;
  background: var(--form-bg);
  padding: 48px 36px 36px 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 340px;
  max-width: 540px;
  position: relative;
}
.sidebox {
  flex: 1 1 370px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--side-bg);
  border-radius: 19px;
  box-shadow: 0 2px 16px #c3c8f11a;
  padding: 36px 34px 24px 34px;
  min-width: 340px;
  max-width: 500px;
  border: 2px solid #e7e3f9;
  color: #3b3674;
}
#sugestao-preco {
  width: 100%;
  margin-bottom: 10px;
  margin-top: -14px;
  z-index: 3;
  position: relative;
  animation: sugestao-in 0.6s cubic-bezier(.8,-0.4,.7,1.6) 1;
}
@keyframes sugestao-in {
  0% { opacity: 0; transform: translateY(-30px) scale(.94); }
  100% { opacity: 1; transform: none; }
}
.sugestao {
  background: #e5e9ff;
  padding: 26px 24px 20px 24px;
  border-radius: 18px;
  box-shadow: 0 3px 12px #d8e8ff1c;
  margin-bottom: 10px;
  min-width: 290px;
  font-size: 1.13em;
  color: #3a307a;
  font-family: inherit;
  font-weight: 600;
  border: 2px solid #c8c6e5;
  transition: box-shadow .18s, border .15s;
}
.preco-row, .preco-highlight {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-content: center;
  margin-bottom: 18px;
}
.preco-icone, .preco-big-icone {
  font-size: 2em;
  margin-right: 1px;
}
.preco, .preco-big-label {
  font-size: 1.18em;
  font-weight: 700;
  color: #662d91;
  margin-right: 8px;
}
.preco-valor, .preco-big-valor {
  background: #fff;
  color: #511a92;
  font-size: 1.32em;
  font-weight: 800;
  padding: 7px 17px;
  border-radius: 8px;
  box-shadow: 0 1.5px 9px #4a308308;
  margin-left: 6px;
  border: 1.5px solid #e0dbf9;
  display: inline-block;
}
.sugestao-cols {
  display: flex;
  gap: 28px;
  margin-bottom: 13px;
}
.col {
  flex: 1 1 0;
}
.col h4 {
  font-size: 1em;
  font-weight: 700;
  color: #2d3382;
  margin-bottom: 2px;
  margin-top: 0;
  text-decoration: underline;
}
.col ul { padding: 0 0 0 13px; margin: 0 0 4px 0; }
.col ul li {
  font-size: 1em;
  color: #bb2556;
  margin-bottom: 1px;
  list-style: disc inside;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.item-label { color: #565082; font-weight: 500;}
.item-value { margin-left: 8px;}
.item-roxo { color: #511a92; }
.item-vermelho { color: #c02355; font-weight: 600;}
@media (max-width: 900px) {
  .sugestao-cols { flex-direction: column; gap: 5px; }
  .col { margin-bottom: 7px; }
  .layout { flex-direction: column; gap: 0; }
  .sidebox, .container { max-width: 100vw; min-width: unset; border-radius: 13px; }
  #sugestao-preco { margin-top: 0; }
}
.lucro-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  padding: 12px 7px;
  background: #dbf3e4;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.13em;
}
.lucro-icone { font-size: 1.35em; color: #237333; }
.lucro-label { color: #237333; margin-right: 12px; }
.lucro-valor {
  background: #fff;
  color: #237333;
  font-size: 1.19em;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 7px;
  box-shadow: 0 1.5px 9px #43a8660a;
  border: 1.5px solid #c1e7cf;
  margin-left: 8px;
  display: inline-block;
}
.sugestao-bar {
  height: 7px;
  border-radius: 4px;
  margin: 18px -22px -19px -22px;
  background: linear-gradient(90deg,#662d91 5%,#be2782 90%);
  opacity: 0.8;
  animation: bar-slidein .77s cubic-bezier(.6,.15,.7,1.09) 1;
}
@keyframes bar-slidein {
  0% { width: 0; opacity: 0; }
  100% { width: 100%; opacity: 1;}
}
h1 {
  text-align: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 2.15rem;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}
form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
form label {
  font-weight: 600;
  color: #55577a;
  font-size: 1.13em;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
input, select {
  border: 1.7px solid var(--input-border);
  border-radius: 12px;
  padding: 15px 15px;
  font-size: 1.06rem;
  background: var(--input-bg);
  color: #27273c;
  font-family: inherit;
  transition: border-color .17s, box-shadow .17s;
  outline: none;
  box-shadow: 0 1.5px 9px #4a308305;
}
input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1.8px var(--primary)33;
}
input[disabled], select[disabled] {
  background: #ededf7;
  color: #aaa;
  opacity: 0.82;
}
button[type="submit"] {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  width: 100vw;
  max-width: 1200px;
  border: none;
  padding: 20px;
  font-size: 1.23rem;
  font-weight: 700;
  background: linear-gradient(92deg,#662d91 36%,#be2782 100%);
  color: #fff;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 -1px 20px #7a2d9111;
  letter-spacing: 0.01em;
  cursor: pointer;
  z-index: 110;
  transition: background .16s;
}
button[type="submit"]:hover {
  background: linear-gradient(92deg,#512677 30%,#be2782 100%);
}
.side-desc b, .side-desc strong { color: var(--primary); }
.side-desc em { color: var(--accent); font-style: normal; font-weight: bold; }
#ml_fields {
  gap: 10px 18px;
  margin-bottom: 2px;
}
@media (max-width: 700px) {
  .container, .sidebox { padding: 6vw 3vw 3vw 3vw; }
  h1 { font-size: 1.22rem; }
  .sidebox { font-size: 0.99em; }
}
@media (max-width: 540px) {
  .container, .sidebox { padding: 4vw 1vw 2vw 1vw; border-radius: 10px; }
  button[type="submit"] { padding: 10px; font-size: 1.04rem; }
  .sugestao, .result { font-size: 0.97em; }
}
