/* Reset e configurações básicas */
* {
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #444444;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #f4f4f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 80px 0 40px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  transition: all 0.5s;
  z-index: 997;
  background: rgba(40, 58, 90, 0.9);
  backdrop-filter: blur(10px);
}

.header.header-scrolled {
  background: rgba(40, 58, 90, 0.95);
  height: 60px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
}

.header .logo {
  font-size: 30px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header .logo a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.header .logo a:hover {
  color: #33C3F3;
}

.header .logo img {
  max-height: 40px;
  margin-right: 10px;
}

.header .logo span {
  font-family: "Jost", sans-serif;
  font-weight: 600;
}

.header .navbar-nav .nav-item {
  margin-left: 5px;
}

.header .navbar-nav .nav-item .nav-link {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #fff;
  padding: 12px 15px;
  text-transform: capitalize;
  border-radius: 50px;
  transition: 0.3s;
}

.header .navbar-nav .nav-item .nav-link:hover,
.header .navbar-nav .nav-item .nav-link.active {
  color: #33C3F3;
  background: rgba(51, 195, 243, 0.1);
}

.header .navbar-toggler {
  color: #fff;
  border: none;
}

/* Container principal */
.main-container {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  margin: 20px;
}

.page-title {
  color: #37517e;
  margin-bottom: 40px;
  text-align: center;
  font-family: "Jost", sans-serif;
  font-weight: 700;
}

.page-title i {
  color: #33C3F3;
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-title i:hover {
  color: #00A0D0;
}

/* Formulário */
.form-section {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin-bottom: 20px;
}

.form-label {
  font-weight: 600;
  color: #37517e;
  margin-bottom: 8px;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 12px 15px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #33C3F3;
  box-shadow: 0 0 0 0.2rem rgba(51, 195, 243, 0.25);
}

.btn-primary {
  background: linear-gradient(45deg, #33C3F3, #00A0D0);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 14px;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #00A0D0, #33C3F3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(51, 195, 243, 0.4);
}

/* Resultado */
.result-section {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin-bottom: 20px;
}

.result-section h2 {
  color: #37517e;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  margin-bottom: 20px;
}

.preco-badge {
  font-size: 1.4rem;
  font-weight: bold;
  padding: 0.5em 1em;
  border-radius: 0.5rem;
  display: inline-block;
  margin-bottom: 1em;
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.result-section ul {
  list-style: none;
  padding: 0;
}

.result-section ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f8f9fa;
  display: flex;
  justify-content: space-between;
}

.result-section ul li:last-child {
  border-bottom: none;
}

.result-section strong {
  color: #37517e;
}

/* Footer */
.footer {
  background: #37517e;
  padding: 30px 0;
  color: #fff;
  text-align: center;
  margin-top: auto;
}

.footer a {
  color: #33C3F3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #00A0D0;
  text-decoration: underline;
}

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-description {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.footer-copyright {
  font-size: 12px;
  opacity: 0.7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  margin-top: 15px;
}

/* Responsividade */
@media (max-width: 768px) {
  .main-container {
    margin: 10px;
    padding: 20px;
  }
  
  .page-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .form-section,
  .result-section {
    padding: 20px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
  
  main {
    padding: 70px 0 20px;
  }
}

@media (max-width: 576px) {
  .preco-badge {
    font-size: 1.2rem;
  }
  
  .main-container {
    margin: 5px;
    padding: 15px;
  }
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-section {
  animation: fadeInUp 0.5s ease;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #33C3F3;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.3s ease;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.back-to-top:hover {
  background: #00A0D0;
  color: #fff;
  transform: translateY(-3px);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}
