/* 🎯 CONTAINER BASE */
.calculadora-container {
  background-color: #f0f8ff;
  padding: 24px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.04);
}

/* 🧭 TÍTULO E DESCRIÇÃO */
.titulo-principal {
  font-size: 22px;
  color: #1a1a1a;
  font-weight: 600;
  text-align: center;
  margin: 0 0 8px 0;
}

.descricao-curta {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin: 0 0 16px 0;
}

.campo:first-of-type {
  margin-top: 8px;
}

/* 📝 CAMPOS */
.campo {
  margin-bottom: 20px;
}

.campo label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  display: block;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.prefixo {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: #555;
  font-weight: 600;
  pointer-events: none;
  z-index: 2;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 10px 10px 10px 42px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #edf2f7;
  font-weight: 500;
  box-sizing: border-box;
  transition: border 0.3s ease;
  appearance: none;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: #2e73ff;
  outline: none;
}

input::placeholder {
  color: #666;
  opacity: 1;
}

/* 🖼️ LOGO EMPRESA */
#empresa-logo-img {
  height: 36px;
  margin-left: auto;
}

/* 🔘 BOTÕES DE AÇÃO */
.botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.botoes button {
  flex: 1;
  padding: 12px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}

#btn-calcular {
  background-color: #2e73ff;
  color: white;
}

#btn-calcular:hover {
  background-color: #1f5ae0;
}

#btn-limpar {
  background-color: #e54848;
  color: white;
}

#btn-limpar:hover {
  background-color: #c73737;
}

/* 📊 RESULTADO */
.resultado {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #ccc;
}

.titulo-resultado {
  font-size: 18px;
  font-weight: 600;
  color: #004085;
  margin-bottom: 16px;
}

#tabela-resultado table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

#tabela-resultado td {
  padding: 10px 8px;
  border-bottom: 1px solid #ccc;
  font-size: 14px;
}

/* 📎 BOTÕES DE RESULTADO */
.resultado-botoes {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.resultado-botoes button {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#btn-copiar {
  background-color: #28a745;
}

#btn-copiar:hover {
  background-color: #218838;
}

#btn-whatsapp {
  background-color: #25D366;
}

#btn-whatsapp:hover {
  background-color: #1ebe57;
}

/* ⚖️ Switch personalizado */
.switch-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.switch-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #28a745;
}

input:checked + .slider::before {
  transform: translateX(26px);
}

/* ✅ RESPONSIVO */
@media (max-width: 600px) {
  .botoes,
  .resultado-botoes {
    flex-direction: column;
  }

  .botoes button,
  .resultado-botoes button {
    width: 100%;
  }

  .input-wrapper input,
  .input-wrapper select {
    font-size: 15px;
    padding-left: 42px !important;
  }

  .prefixo {
    font-size: 13px;
    left: 10px;
  }

  .input-wrapper select {
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px;
  }
}
