﻿.calculator-card {
  max-width: 860px;
  margin: 0 auto;
}

.card-header {
  margin-bottom: 24px;
  text-align: center;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--neon-blue);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.22);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.label-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.input-wrapper {
  position: relative;
}

.input-glow,
.select-glow {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color-soft);
  background: rgba(2, 6, 23, 0.52);
  color: var(--text-primary);
  font-size: 15px;
}

.input-glow:focus,
.select-glow:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.16);
}

.input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-weight: 700;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.radio-card {
  position: relative;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.radio-content {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color-soft);
  background: rgba(2, 6, 23, 0.52);
  transition: all 0.2s ease;
}

.radio-card input[type="radio"]:checked + .radio-content {
  border-color: var(--neon-blue);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(139, 0, 255, 0.11));
}

.radio-label {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.btn-primary,
.btn-secondary {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #00d8ff, #3567ff);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 216, 255, 0.22);
}

.btn-secondary {
  background: rgba(2, 6, 23, 0.6);
  color: var(--neon-blue);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--neon-blue);
}

.results-container {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(0, 240, 255, 0.05);
}

.results-header h3 {
  color: var(--neon-blue);
  margin-bottom: 12px;
}

.result-summary,
.result-breakdown {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color-soft);
  background: rgba(2, 6, 23, 0.58);
  margin-bottom: 10px;
}

.result-row,
.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.result-row:last-child,
.breakdown-row:last-child {
  border-bottom: 0;
}

.result-main {
  margin-top: 8px;
  border-top: 1px solid var(--border-color-soft);
}

.text-success {
  color: var(--success-color);
}

.text-error {
  color: var(--error-color);
}

.info-badge {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-primary);
  background: rgba(0, 240, 255, 0.08);
}

@media (max-width: 700px) {
  .section-title {
    font-size: 24px;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .result-row,
  .breakdown-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
