:root {
  --scf-font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --scf-color-bg: #ffffff;
  --scf-color-surface: #f8f8f6;
  --scf-color-border: #d8d8d4;
  --scf-color-border-focus: #1a1a1a;
  --scf-color-text: #1a1a1a;
  --scf-color-muted: #6b6b6b;
  --scf-color-accent: #e8440a;
  --scf-color-success: #1d8a4f;
  --scf-color-error: #c0392b;
  --scf-color-btn-bg: #1a1a1a;
  --scf-color-btn-txt: #ffffff;
  --scf-radius: 6px;
  --scf-gap: 5px;
  --scf-transition: 0.22s ease;
}

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap");

.scf-wrapper {
  font-family: var(--scf-font);
  font-size: 15px;
  color: var(--scf-color-text);
  background: var(--scf-color-bg);
  border: 1px solid var(--scf-color-border);
  border-radius: 10px;
  padding: 36px 40px 40px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.scf-notice {
  font-size: 13px;
  color: var(--scf-color-muted);
  background: var(--scf-color-surface);
  border-left: 3px solid var(--scf-color-accent);
  border-radius: 0 var(--scf-radius) var(--scf-radius) 0;
  padding: 10px 14px;
  margin: 0 0 28px;
  line-height: 1.6;
}

.scf-row {
  display: grid;
  gap: var(--scf-gap);
  margin-bottom: var(--scf-gap);
}

.scf-row--two {
  grid-template-columns: 1fr 1fr;
}

.scf-row--bottom {
  grid-template-columns: auto 1fr;
  align-items: flex-start;
}

.scf-field {
  display: flex;
  flex-direction: column;
}

.scf-field.scf-full {
  grid-column: 1 / -1;
}

.scf-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--scf-color-muted);
}

.scf-field label span[aria-hidden] {
  color: var(--scf-color-error);
  margin-left: 2px;
}

.scf-wrapper input[type="text"],
.scf-wrapper input[type="email"],
.scf-wrapper input[type="url"],
.scf-wrapper select,
.scf-wrapper textarea {
  font-family: var(--scf-font);
  font-size: 15px;
  color: var(--scf-color-text);
  background: var(--scf-color-bg);
  border: 1.5px solid var(--scf-color-border);
  border-radius: var(--scf-radius);
  padding: 11px 14px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color var(--scf-transition),
    box-shadow var(--scf-transition);
  -webkit-appearance: none;
  appearance: none;
}

.scf-wrapper input:focus,
.scf-wrapper select:focus,
.scf-wrapper textarea:focus {
  border-color: var(--scf-color-border-focus);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.scf-wrapper input.scf-invalid,
.scf-wrapper select.scf-invalid,
.scf-wrapper textarea.scf-invalid {
  border-color: var(--scf-color-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.scf-wrapper ::placeholder {
  color: #b0b0aa;
  font-style: italic;
}

.scf-wrapper select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}

.scf-wrapper textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.scf-error {
  display: block;
  font-size: 12px;
  color: var(--scf-color-error);
  min-height: 16px;
  line-height: 1.4;
}

.scf-turnstile {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scf-submit-wrap {
  display: flex;
  align-items: center;
}

.scf-btn {
  font-family: var(--scf-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--scf-color-btn-txt);
  background: var(--scf-color-btn-bg);
  border: none;
  border-radius: var(--scf-radius);
  padding: 13px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: background var(--scf-transition), transform 0.12s ease;
  position: relative;
  overflow: hidden;
}

.scf-btn:hover {
  background: #333;
}

.scf-btn:active {
  transform: scale(0.98);
}

.scf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.scf-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: scf-spin 0.65s linear infinite;
  flex-shrink: 0;
}

.scf-btn.scf-loading .scf-btn-spinner {
  display: block;
}

.scf-btn.scf-loading .scf-btn-text {
  opacity: 0.8;
}

@keyframes scf-spin {
  to {
    transform: rotate(360deg);
  }
}

.scf-global-msg {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--scf-radius);
  font-size: 14px;
  font-weight: 500;
  display: none;
  line-height: 1.5;
}

.scf-global-msg.scf-msg--success {
  display: block;
  background: #e8f8ef;
  border: 1px solid #a3d9bb;
  color: var(--scf-color-success);
}

.scf-global-msg.scf-msg--error {
  display: block;
  background: #fdf0ef;
  border: 1px solid #e8b4b0;
  color: var(--scf-color-error);
}

@keyframes scf-fadein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scf-global-msg.scf-msg--success,
.scf-global-msg.scf-msg--error {
  animation: scf-fadein 0.3s ease both;
}

@media (max-width: 680px) {
  .scf-wrapper {
    padding: 24px 20px 28px;
    border-radius: 8px;
  }

  .scf-row--two,
  .scf-row--bottom {
    grid-template-columns: 1fr;
  }

  .scf-submit-wrap {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .scf-wrapper {
    padding: 18px 14px 22px;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .scf-btn {
    font-size: 14px;
    padding: 13px 20px;
  }

  .scf-notice {
    font-size: 12px;
  }
}
