#ctc-wrapper {
  max-width: 520px;
  font-family: "Montserrat", Arial;
  font-family: inherit;
  margin: 40px auto;
}

#ctc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.ctc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  break-inside: avoid-column;
}

.ctc-field label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
  font-size: 14px;
}

.ctc-field select {
  padding: 12px 15px;
  border: 1px solid #efefef;
  border-radius: 0;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.ctc-field select:focus {
  outline: none;
  border-color: #FF8F1F;
}

.ctc-result {
  margin-top: 20px;
  padding: 16px 20px;
  background: #f8f8f8;
  border-left: 4px solid #FF8F1F;
  border-radius: 6px;
}

.ctc-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.ctc-price-row.ctc-brutto {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.ctc-label {
  font-size: 0.9rem;
  color: #555;
}

.ctc-value {
  font-weight: 700;
  color: #222;
  font-size: 1.3rem;
  font-family: "Lexend Mega", Arial;
  letter-spacing: -0.15em;
}

.ctc-brutto .ctc-value {
  color: #FF8F1F;
  font-size: 24px;
}

.ctc-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff3f3;
  border: 1px solid #f5c6c6;
  border-radius: 6px;
  color: #FF8F1F;
  font-size: 0.9rem;
}

.ctc-loader {
  margin-top: 16px;
  color: #666;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctc-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top-color: #FF8F1F;
  border-radius: 50%;
  animation: ctc-spin 0.7s linear infinite;
}

@keyframes ctc-spin {
  to {
    transform: rotate(360deg);
  }
}

.ctc-hidden {
  display: none !important;
}

.ctc-buttons {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  margin-top: 40px;
}

.ctc-button {
  padding: 14px 32px;
  border: 1px solid #FF8F1F !important;
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: #FF8F1F !important;
  color: #fff !important;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media screen and (max-width: 768px) {
  #ctc-form {
    grid-template-columns: 1fr;
  }
}