* {
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: #e6f0f7;
}

.container {
  display: flex;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 40px auto;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.calculator {
  flex: 1 1 350px;
  padding: 40px;
  background: #fff;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h2 {
  margin: 0;
  font-size: 20px;
}

.header a {
  color: #556;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

label {
  display: block;
  font-size: 14px;
  margin: 20px 0 6px;
}

.input-group {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.input-group span {
  background: #f5f5f5;
  padding: 12px 16px;
  color: #333;
  font-weight: bold;
}

.input-group input {
  flex: 1;
  padding: 12px;
  border: none;
  font-size: 16px;
}

.row {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.column {
  flex: 1;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.radio-btn {
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.radio-btn.active {
  background: #f9fcd6;
  border-color: #e0e04a;
}

.radio-btn input {
  margin-right: 10px;
}

button#calculate {
  background: #d4df00;
  color: black;
  border: none;
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.3s;
}

button#calculate:hover {
  background: #cbd500;
}

.result-section {
  flex: 1 1 300px;
  background: #092c3f;
  color: white;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-section img {
  max-width: 80px;
  margin: 0 auto 20px;
}

.result-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.result-section p {
  font-size: 14px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .result-section {
    padding: 30px 20px;
  }

  .calculator {
    padding: 30px 20px;
  }
}
