.tile-calculator {
  max-width: 760px;
  margin: 30px auto;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #f4f7fb);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  font-family: Arial, sans-serif;
  color: #222;
}

.tile-calculator h2 {
  margin: 0;
  font-size: 30px;
  text-align: center;
}

.tile-calculator .subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 28px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tile-calculator label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 14px;
}

.tile-calculator input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #d9dfe8;
  border-radius: 14px;
  font-size: 16px;
  background: #fff;
  transition: 0.2s;
}

.tile-calculator input:focus {
  outline: none;
  border-color: #2f80ed;
  box-shadow: 0 0 0 4px rgba(47,128,237,0.12);
}

.tile-calculator button {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #61784c, #b88b52);
  box-shadow: 0 18px 44px rgb(97 120 76 / 28%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.tile-calculator button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(47,128,237,0.35);
}

.result-box {
  margin-top: 24px;
  padding: 22px;
  border-radius: 18px;
  background: #101828;
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
}

.result-box strong {
  color: #7ee787;
  font-size: 22px;
}

@media (max-width: 600px) {
  .tile-calculator {
    padding: 22px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .tile-calculator h2 {
    font-size: 24px;
  }
}