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

/* ─── Reset & Base ────────────────────────────────────────────────────── */
.mksc-calculator *,
.mksc-calculator *::before,
.mksc-calculator *::after {
  box-sizing: border-box;
}

.mksc-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;
}

/* ─── Card / Wrapper ─────────────────────────────────────────────────── */
.mksc-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) {
  .mksc-form-wrapper {
    padding: 24px 18px;
  }
}

/* ─── Title ──────────────────────────────────────────────────────────── */
.mksc-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a5c2a;
  margin: 0 0 6px 0;
}

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

/* ─── Form Rows ──────────────────────────────────────────────────────── */
.mksc-row {
  margin-bottom: 18px;
}

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

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

/* ─── Fields ─────────────────────────────────────────────────────────── */
.mksc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

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

.mksc-field input[type="number"],
.mksc-field input[type="text"],
.mksc-field input[type="tel"],
.mksc-field input[type="email"],
.mksc-field select,
.mksc-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;
}

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

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

/* ─── Separator ──────────────────────────────────────────────────────── */
.mksc-separator {
  height: 1px;
  background: #e2ede7;
  margin: 24px 0;
}

/* ─── Toggle Group (radio buttons) ──────────────────────────────────── */
.mksc-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mksc-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 400 !important;
  font-size: 0.9375rem;
}

.mksc-toggle-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #1a7a3c;
  cursor: pointer;
}

/* ─── Exact Fields ───────────────────────────────────────────────────── */
.mksc-exact-fields {
  margin-top: 20px;
  padding: 24px;
  background: #f0f8f3;
  border: 1.5px solid #cbe8d5;
  border-radius: 10px;
  animation: mkscFadeIn 0.2s ease;
}

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

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

/* ─── Checkbox ───────────────────────────────────────────────────────── */
.mksc-field-checkbox {
  margin-top: 4px;
}

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

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

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

/* ─── Submit Button ──────────────────────────────────────────────────── */
.mksc-submit-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mksc-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;
}

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

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

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

.mksc-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ─── Loading Spinner ────────────────────────────────────────────────── */
.mksc-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mkscSpin 0.7s linear infinite;
}

@keyframes mkscSpin {
  to { transform: rotate(360deg); }
}

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

/* ─── Result Box ─────────────────────────────────────────────────────── */
.mksc-result {
  animation: mkscFadeIn 0.3s ease;
}

.mksc-result-box {
  background: linear-gradient(135deg, #1a5c2a, #2a8a46);
  color: #fff;
  border-radius: 12px;
  padding: 32px 36px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(26, 92, 42, 0.25);
  margin-bottom: 16px;
}

.mksc-result-price-label {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.mksc-result-price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

@media (max-width: 500px) {
  .mksc-result-price { font-size: 2.2rem; }
}

.mksc-result-disclaimer {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-bottom: 16px;
  font-style: italic;
}

.mksc-result-preliminary-cta {
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #f0f8f3;
  border: 1px solid #cbe8d5;
  color: #2d4a3e;
  font-size: 0.92rem;
  text-align: center;
}


/* ─── Notice ─────────────────────────────────────────────────────────── */
.mksc-notice {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9375rem;
  margin: 0;
}

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

.mksc-notice-warning {
  background: #fff8e6;
  color: #7a5500;
  border: 1px solid #f5dd8a;
}

.mksc-notice-success {
  background: #e8f5ec;
  color: #1a5c2a;
  border: 1px solid #a8ddb8;
}

/* ─── Success Confirmation ───────────────────────────────────────────── */
.mksc-request-success {
  text-align: center;
  padding: 32px;
  background: #f0f9f4;
  border: 2px solid #1a7a3c;
  border-radius: 12px;
  animation: mkscFadeIn 0.3s ease;
}

.mksc-success-icon {
  font-size: 3rem;
  color: #1a7a3c;
  margin-bottom: 12px;
}

.mksc-request-success h3 {
  color: #1a5c2a;
  font-size: 1.4rem;
  margin: 0 0 8px 0;
}

.mksc-request-success p {
  color: #4a6d57;
  margin: 0;
}

/* ─── Ačiū Page ──────────────────────────────────────────────────────── */
.mksc-aciu {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a2332;
  max-width: 680px;
  margin: 0 auto;
}

.mksc-aciu-hero {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 48px 40px 36px;
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .mksc-aciu-hero {
    padding: 32px 20px 28px;
  }
}

.mksc-aciu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: #e8f5ec;
  border: 3px solid #1a7a3c;
  border-radius: 50%;
  font-size: 2.2rem;
  color: #1a7a3c;
  margin-bottom: 20px;
}

.mksc-aciu-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a5c2a;
  margin: 0 0 10px 0;
}

.mksc-aciu-subtitle {
  font-size: 1.05rem;
  color: #4a6d57;
  margin: 0 0 24px 0;
}

.mksc-aciu-price-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #f0f9f4;
  border: 2px solid #a8ddb8;
  border-radius: 12px;
  padding: 18px 32px;
  gap: 4px;
}

.mksc-aciu-price-label {
  font-size: 0.875rem;
  color: #4a6d57;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mksc-aciu-price-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a5c2a;
  line-height: 1.2;
}

.mksc-aciu-price-note {
  font-size: 0.8125rem;
  color: #5a7070;
}

/* ─── Steps ──────────────────────────────────────────────────────────── */
.mksc-aciu-steps {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 32px 40px;
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .mksc-aciu-steps {
    padding: 24px 20px;
  }
}

.mksc-aciu-steps-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a5c2a;
  margin: 0 0 24px 0;
}

.mksc-aciu-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mksc-aciu-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mksc-aciu-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #1a5c2a;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 50%;
}

.mksc-aciu-step-body strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2332;
  margin-bottom: 2px;
}

.mksc-aciu-step-body p {
  margin: 0;
  font-size: 0.9375rem;
  color: #4a6d57;
}

/* ─── Contact Info ───────────────────────────────────────────────────── */
.mksc-aciu-info {
  background: #f7fbf8;
  border: 1px solid #d0ebd8;
  border-radius: 12px;
  padding: 20px 28px;
  text-align: center;
}

.mksc-aciu-info-text {
  margin: 0 0 12px 0;
  color: #4a6d57;
  font-size: 0.9375rem;
}

.mksc-aciu-info-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
}

.mksc-aciu-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
}

.mksc-aciu-info-item a {
  color: #1a5c2a;
  font-weight: 600;
  text-decoration: none;
}

.mksc-aciu-info-item a:hover {
  text-decoration: underline;
}

.mksc-aciu-info-icon {
  font-size: 1.1rem;
}
