:root {
  --amarelo: #F9B104;
  --preto: #1D1D1B;
  --cinza: #5F5959;
  --branco: #FFF;
}


.hidden {
  display: none !important;
}


*, *::before, *::after {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: "Bitter";
  font-size: 16px;
  line-height: 1.5;
  color: var(--preto);
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

.container {
  max-width: 961px;
  margin: 0 auto;
}

header {
  background-color: var(--preto);
  padding: 20px 0;
  text-align: center;
}

header > .container {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  width: 89px;
  height: 89px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 20px;
}

h1 {
  color: var(--branco);
  font-size: 30px;
  font-weight: 500;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}

main {
  display: flex;
  justify-content: space-between;
  gap: 136px;
  padding-top: 32px;
}

.calculator h2 {
  margin-top: 0 !important;
  line-height: normal;
  margin-bottom: 0;
}

.calculator p {
  margin: 0;
}

.calculator p:last-child {
  color: var(--cinza);
  margin-top: 16px;
}

h2 {
  color: var(--amarelo);
  font-size: 40px;
  margin-bottom: 20px;
}

p {
  margin-bottom: 20px;
}

form:not(#catalog-form) {
  margin-top: 18px;
}

#catalog-form {
  max-width: 379px;
}

#catalog-form svg {
  width: 30px;
  height: 30px;
}

#catalog-form .svg-error svg  {
  transition: transform 0.5s ease-out;
}

#catalog-form .svg-error svg #red-exclamation {
  animation: bounce 0.5s ease-out forwards;
  transform-origin: center center;
}
#catalog-form .svg-error svg #red-exclamation .exclamation {
  opacity: 0;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: excl 1.5s ease forwards 0.5s;
}
#catalog-form .svg-error svg #red-exclamation .dot {
  opacity: 0;
  stroke-width: 30;
  stroke-linecap: round;
  animation: dot-fade 0.175s ease forwards 0.7s;
}

@keyframes excl {
  0% {
    stroke-dashoffset: 100;
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}
@keyframes dot-fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes bounce {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(0.6);
  }
  100% {
    opacity: 1;
    transform: scale(0.9);
  }
}

#catalog-form .popup-close svg path {
  fill: var(--preto);
}

input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 16px;
  height: 42px;
  padding: 0 8px;
  background-color: #F3F3F3;
  color: rgba(29, 29, 27, 0.75);
  outline: none;
  font-family: "Bitter"
}

.form-group input:focus + label, 
.form-group input:valid + label{
  font-size: 12px;
  color: rgba(29, 29, 27, 0.75);
  top: -5px;
  left:10px;
  background: #ffffff;
  padding: 0px 5px 0px 5px;
  background: rgb(255,255,255);
  background: -moz-linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 29%, rgba(243,243,243,1) 29%, rgba(243,243,243,1) 100%);
  background: -webkit-linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 29%, rgba(243,243,243,1) 29%, rgba(243,243,243,1) 100%);
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 29%, rgba(243,243,243,1) 29%, rgba(243,243,243,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#f3f3f3",GradientType=1);
}

input:focus {
  border: 1px solid var(--preto);
}

.form-group {
  width:auto; 
  height:auto; 
  position:relative;
  margin-bottom: 8px;
}

.form-group label {
  font-size:16px;
  color: rgba(29, 29, 27, 0.75);
  padding: 9px;
  position: absolute;
  top: 0;
  left: 0;
  transition:0.2s ease all; 
  -moz-transition:0.2s ease all; 
  -webkit-transition:0.2s ease all;
  pointer-events: none;
}

.input_wrap {
  margin-bottom: 8px;
}

input:focus {outline:none;}

form button[type="submit"] {
  background-color: var(--preto);
  color: var(--branco);
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.25);
}


form button[type="submit"]:hover {
  background-color: black;
  transition: background-color 0.3s ease;
}

.product-info {
  background-color: var(--amarelo);
  width: 379px;
  min-width: 379px;
  height: fit-content;
}

.product-description {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  height: 54px; 
}

.product-details {
  padding: 0px 32px 49px 32px;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 20px;
  margin-top: 0;
}

.download-btn {
  display: inline-block;
  background-color: transparent;
  color: var(--preto);
  text-decoration: none;
  padding: 8px 0;
  font-weight: bold;
  border-radius: 3px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--preto);
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.download-btn:hover {
  background-color: var(--preto);
  color: var(--branco);
}

.video-section {
  text-align: center;
  margin-top: 48px;
}

.video-placeholder {
  max-width: 100%;
  height: auto;
}

footer {
  background-color: var(--branco);
  padding: 0 123px 30px 123px;
  text-align: center;
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p {
  margin: 0;
}

footer a:hover svg g path {
  fill: var(--amarelo);
  transition: fill 0.3s ease;
}

#result-box {
  background-color: #f5f5f5;
  border-radius: 2px;
  position: relative;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 15px;
  border-width: 0;
  transition: max-height 0.5s ease-out, opacity 0.4s ease-out, margin-top 0.5s ease-out;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

#result-box:not(.hidden) {
  max-height: 165px;
  opacity: 1;
  margin-top: 24px;
  padding: 15px;
  margin-bottom: 32px;
  height: 165px;
  display: flex;
  justify-content: flex-end;
  gap: 39px;
}

#result-box span {
  position: absolute;
  top: -9%; 
  left: 0;
  padding: 5px 10px; 
  text-align: center;
  font-size: 12px;
  color: rgba(29, 29, 27, 0.75);
}

#result-box a#new-calc {
  display: inline-flex;
  align-items: center;
  margin-left: auto; 
  color: inherit;
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 14px;
  font-weight: normal;
}

#result-box a#new-calc svg {
  width: 11px;
  height: 11px;
  margin-left: 11px;
}

#result-box a#new-calc:hover,
#result-box a#new-calc:hover svg g path {
  color: black;
  stroke: black;
}

#result-box a#new-calc:hover svg {
  transition: transform 0.5s ease-in-out;
  transform: rotate(360deg);
}

#result-box #result-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.popup-hidden {
  display: none; 
}

#popup-overlay {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); 
  z-index: 999; 
  opacity: 0; 
  transition: opacity 0.3s ease-in-out;
}

#catalog-popup {
  position: fixed; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
  width: 90%; 
  max-width: 573px; 
  background-color: var(--branco);
  z-index: 1000; 
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-radius: 4px; 
  opacity: 0; 
  transform: translate(-50%, -60%); 
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  overflow: hidden; 
}

#popup-overlay.active,
#catalog-popup.active {
  display: block; 
  opacity: 1;
}

#catalog-popup.active {
  transform: translate(-50%, -50%); 
}

.popup-content {
  position: relative; 
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px; 
  font-weight: bold;
  color: var(--preto); 
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}

.popup-close:hover {
  opacity: 0.7;
}

.popup-header {
  background-color: var(--amarelo);
  padding: 28px 86px; 
  text-align: center;
  color: var(--preto); 
}

.popup-header h3 {
  color: var(--preto); 
  font-size: 40px; 
  margin-top: 0;
  margin-bottom: 16px;
  line-height: normal;
}

.popup-header p {
  color: var(--preto); 
  font-size: 16px; 
  margin-bottom: 0;
  line-height: 26px;
}

.popup-body {
  padding: 30px 40px; 
  display: flex;
  justify-content: center; 
}

.popup-body .form-group {
  margin-bottom: 15px; 
}

.popup-privacy {
  display: flex;
  align-items: center; 
  margin-top: 15px;
  margin-bottom: 15px; 
}

.popup-privacy input[type="checkbox"] {
  width: auto; 
  height: auto;
  margin-right: 10px; 
  flex-shrink: 0; 
}

.popup-privacy label {
  font-size: 13px; 
  color: var(--cinza);
  position: static; 
  padding: 0; 
  pointer-events: auto; 
  transition: none; 
  line-height: 1.3;
}

.popup-body form button[type="submit"] {
  margin-top: 36px;
  align-items: center;
  justify-content: center;
  display: flex;
  height: 42px;
}

body.popup-active {
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important; 
  height: 1px; width: 1px;      
  overflow: hidden;             
  clip: rect(1px, 1px, 1px, 1px); 
  clip-path: inset(50%);       
  white-space: nowrap;          
  border: 0;                   
  margin: -1px;                 
  
}

.main-content {
  padding: 40px 20px;
  align-items: center;
  flex-direction: column;
  gap: 0;
}

.info-box {
  background-color: var(--amarelo);
  padding: 23px 98px;
  text-align: center;
  height: 297px;
  max-width: 767px;
  margin-bottom: 32px;
}

.info-box h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 0;
  color: var(--preto);
}

.info-box p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 21px;
  margin-top: 16px;
}

.download-icon {
  width: 59px;
  height: 59px;
  margin-bottom: 20px;
}

.btn {
  border: none;
  padding: 9px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  width: 282px;
  text-align: center;
}

.btn.btn-primary:first-child {
  padding: 12px 20px;
}

.btn-primary {
  background-color: var(--preto);
  color: var(--branco);
}

.btn-primary:hover {
  background-color: black;
  transition: background-color 0.3s ease;
}

.btn-secondary {
  background-color: var(--branco);
  color: var(--preto);
  border: 1px solid var(--preto);
}

.btn-secondary:hover {
  background-color: var(--preto);
  color: var(--branco);
  transition: background-color 0.3s ease;
}

.message {
  text-align: center;
}

.message h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.message p {
  font-size: 16px;
}

.message p a,
#catalog-form label a {
  color: var(--preto);
  text-decoration: none;
}

.message p a:hover,
#catalog-form label a:hover {  
  text-decoration: underline;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  height: 42px;
}

hr {
  border-top: 1px solid var(--cinza);
  width: 100%;
  margin: 0;
  border-bottom: 0;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 961px; 
  margin: 0 auto; 
  padding-bottom: 56.25%; 
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.not-allowed {
  cursor: not-allowed !important;
}

@media (max-width: 768px) {
  header > .container {
    gap: 12px;
  }
  
  header svg {
    width: 80px;
    height: 80px;
  }
  
  h1 {
    font-size: 32px;
  }
  
  .container {
    padding: 0 32px;
  }
  
  main {
    flex-direction: column;
    gap: 40px;
  }
  
  .calculator h2 { 
    color: var(--amarelo);
    font-size: 48px;
    margin-bottom: 8px;
  }
  
  .calculator p {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .product-info {
    width: 100%;
    min-width: 100%;
  }
  
  .product-info img {
    width: 100%;
  }
  
  .product-description svg {
    width: 60px;
    height: 60px;
  }
  
  footer {
    flex-direction: column;
    padding: 16px 0;
    margin-top: 32px;
  }
  
  .popup-header {
    padding: 24px 40px;
  }
  
  .popup-header h3 {
    font-size: 32px;
  }
  
  .popup-header p {
    font-size: 14px;
    line-height: 22px;
  }
  
  .popup-body {
    padding: 24px 30px;
  }
  
  #catalog-popup {
    width: 95%;
  }
  
  .info-box {
    padding: 23px 40px;
    height: auto;
  }
  
  .info-box h2 {
    font-size: 32px;
  }
  
  .info-box p {
    font-size: 15px;
  }
  
  .download-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
  }
  
  .button-group {
    flex-direction: column;
    gap: 12px;
    height: auto;
  }
  
  .btn {
    width: 100%;
  }
  
  .main-content {
    padding: 30px 16px;
  }
}


@media (max-width: 480px) {
  header > .container {
    gap: 8px;
  }
  
  header svg {
    width: 61px;
    height: 61px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .container {
    padding: 0 20px;
  }
  
  main {
    flex-direction: column;
    gap: 32px;
  }
  
  .calculator h2 { 
    color: var(--amarelo);
    font-size: 40px;
    margin-bottom: 0;
  }
  
  .calculator p {
    font-size: 16px;
    margin-bottom: 0;
  }
  
  .product-info {
    width: 100%;
    min-width: 100%;
  }
  
  .product-info img {
    width: 100%;
  }
  
  .product-description svg {
    width: 50px;
    height: 50px;
  }
  
  footer {
    flex-direction: column;
    padding: 10px 0;
    margin-top: 0;
  }
  
  #catalog-form {
    max-width: 100%;
  }
  
  .popup-header {
    padding: 20px 20px;
  }
  
  .popup-header h3 {
    font-size: 24px;
  }
  
  .popup-header p {
    font-size: 13px;
    line-height: 20px;
  }
  
  .popup-body {
    padding: 20px 20px;
  }
  
  .popup-body .form-group {
    margin-bottom: 12px;
  }
  
  .popup-privacy {
    align-items: flex-start;
  }
  
  .popup-privacy label {
    font-size: 12px;
  }
  
  .popup-close {
    font-size: 24px;
    top: 8px;
    right: 10px;
  }
  
  #catalog-popup {
    max-width: 100%;
    border-radius: 0;
  }
  
  .info-box {
    padding: 20px;
  }
  
  .info-box h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .info-box p {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .download-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
  }
  
  .btn {
    font-size: 14px;
    padding: 10px 16px;
    width: 100%;
  }
  
  .message h3 {
    font-size: 20px;
  }
  
  .message p {
    font-size: 14px;
  }
  
  .main-content {
    padding: 24px 12px;
  }
  
  .main-content .info-box  .btn {
    display: block;
  }
}