/* ========================================================
   CSS PARA CALCULADORA DE ANDAIMES
   ======================================================== */

.calc-section {
  padding: 60px 0;
  background-color: var(--bg-body);
}

.calc-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* LEFT: Formulário */
.calc-form {
  padding: 40px;
  background: white;
}

.calc-header {
  margin-bottom: 32px;
}

.calc-header h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.calc-header p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.calc-group {
  margin-bottom: 24px;
}

.calc-label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.calc-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-slider {
  flex: 1;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  outline: none;
  border-radius: 4px;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(30,150,200,0.4);
  transition: transform 0.1s;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-value-display {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  min-width: 60px;
  text-align: right;
}

/* Radio Buttons para tipo de Base */
.calc-radio-group {
  display: flex;
  gap: 16px;
}

.calc-radio-option {
  flex: 1;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.calc-radio-option input {
  display: none;
}

.calc-radio-option:hover {
  border-color: var(--color-primary);
  background: #f0f9ff;
}

.calc-radio-option.selected {
  border-color: var(--color-primary);
  background: #f0f9ff;
}

.calc-radio-option svg {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}
.calc-radio-option.selected svg {
  color: var(--color-primary);
}

.calc-radio-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  display: block;
}

/* Pisos Checkbox */
.calc-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
}
.calc-checkbox-wrap:hover {
  border-color: var(--color-primary);
}
.calc-checkbox-wrap.selected {
  border-color: var(--color-primary);
  background: #f0f9ff;
}
.calc-checkbox-wrap input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}


/* RIGHT: Resultado */
.calc-result {
  background: var(--color-primary);
  padding: 40px;
  color: white;
  display: flex;
  flex-direction: column;
}

.calc-result h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 12px;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1.1rem;
}

.result-item:last-child {
  border-bottom: none;
}

.result-qtd {
  font-weight: 800;
  font-size: 1.3rem;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 8px;
  min-width: 48px;
  text-align: center;
}

.result-name {
  flex: 1;
  margin-left: 16px;
  font-weight: 600;
}

.result-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-calc-zap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.btn-calc-zap:hover {
  background: #20bc59;
  transform: translateY(-2px);
}
.btn-calc-zap svg { width: 24px; height: 24px; }

/* Responsive */
@media (max-width: 768px) {
  .calc-container {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .calc-form { padding: 24px; }
  .calc-result { padding: 32px 24px; }
}
