/* Miško Turto Skaičiuoklė — Frontend Styles */

.mts-calculator *,
.mts-calculator *::before,
.mts-calculator *::after {
  box-sizing: border-box;
}

.mts-calculator {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a2332;
  max-width: 780px;
  margin: 0 auto;
}

.mts-form-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 36px 40px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .mts-form-wrapper {
    padding: 24px 18px;
  }
}

.mts-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a5c2a;
  margin: 0 0 6px 0;
}

.mts-subtitle {
  font-size: 1rem;
  color: #5a7070;
  margin: 0 0 28px 0;
}

.mts-row {
  margin-bottom: 18px;
}

.mts-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .mts-row-2 {
    grid-template-columns: 1fr;
  }
}

.mts-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mts-field label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #2d4a3e;
  letter-spacing: 0.01em;
}

.mts-required {
  color: #c0392b;
  font-weight: 700;
}

.mts-field input[type="number"],
.mts-field input[type="text"],
.mts-field input[type="tel"],
.mts-field input[type="email"],
.mts-field select,
.mts-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cddcd4;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #1a2332;
  background: #f9fbf9;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}

.mts-field input:focus,
.mts-field select:focus,
.mts-field textarea:focus {
  border-color: #1a7a3c;
  box-shadow: 0 0 0 3px rgba(26, 122, 60, 0.12);
  background: #fff;
}

.mts-field textarea {
  resize: vertical;
  min-height: 90px;
}

.mts-separator {
  height: 1px;
  background: #e2ede7;
  margin: 24px 0;
}

.mts-exact-fields-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a5c2a;
  margin: 0 0 6px 0;
}

.mts-exact-fields-header p {
  color: #4a6d57;
  margin: 0 0 18px 0;
  font-size: 0.9rem;
}

.mts-field-checkbox {
  margin-top: 4px;
}

.mts-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 400 !important;
  font-size: 0.9rem;
  line-height: 1.4;
}

.mts-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1a7a3c;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.mts-checkbox-label a {
  color: #1a7a3c;
  text-decoration: underline;
}

.mts-submit-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mts-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  text-decoration: none;
  line-height: 1;
}

.mts-btn-primary {
  background: #1a7a3c;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 122, 60, 0.3);
}

.mts-btn-primary:hover,
.mts-btn-primary:focus {
  background: #166832;
  box-shadow: 0 4px 14px rgba(26, 122, 60, 0.4);
  transform: translateY(-1px);
}

.mts-btn-primary:active {
  transform: translateY(0);
}

@keyframes mtsFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mts-notice {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9375rem;
  margin: 0 0 20px 0;
  animation: mtsFadeIn 0.3s ease;
}

.mts-notice-error {
  background: #fde8e8;
  color: #922020;
  border: 1px solid #f5c6c6;
}

.mts-notice-success {
  background: #e8f5ec;
  color: #1a5c2a;
  border: 1px solid #a8ddb8;
  text-align: center;
  font-weight: 600;
  padding: 24px;
}
