:root {
  --derya-form-ink: #25211e;
  --derya-form-muted: #706860;
  --derya-form-line: #d9d4ce;
  --derya-form-paper: #fff;
  --derya-form-soft: #f8f5f1;
  --derya-form-green: #188c55;
  --derya-form-green-dark: #0f7041;
  --derya-form-error: #a52a2a;
  --derya-form-success: #126b42;
}

.contact-area {
  padding: clamp(2rem, 5vw, 5rem) 0;
  background: linear-gradient(180deg, #fbfaf8 0%, #f5f1ec 100%);
  color: var(--derya-form-ink);
}

.contact-area > .container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.contact-area .header-caption-inner {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem) !important;
}

.contact-area .header-caption-inner h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
}

.derya-form {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(78, 65, 55, 0.13);
  border-radius: 18px;
  background: var(--derya-form-paper);
  color: var(--derya-form-ink);
  box-shadow: 0 18px 48px rgba(54, 42, 32, 0.08);
}

.derya-form *,
.derya-form *::before,
.derya-form *::after {
  box-sizing: border-box;
}

.derya-form .controls {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.derya-form .row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  width: 100%;
  margin: 0 !important;
}

.derya-form .row > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  padding: 0 !important;
  margin: 0 !important;
  flex: none !important;
}

.derya-form .form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0 !important;
}

.derya-form label {
  display: block;
  margin: 0 0 0.5rem;
  color: var(--derya-form-ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.derya-form .form-control,
.derya-form input:not([type="hidden"]):not([type="submit"]),
.derya-form select,
.derya-form textarea {
  display: block;
  width: 100% !important;
  min-width: 0;
  min-height: 3.25rem;
  margin: 0 !important;
  padding: 0.78rem 0.9rem !important;
  border: 1px solid var(--derya-form-line) !important;
  border-radius: 10px !important;
  outline: 0;
  background: #fff !important;
  color: var(--derya-form-ink) !important;
  font: inherit;
  line-height: 1.35;
  box-shadow: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.derya-form select {
  appearance: auto;
}

.derya-form textarea,
.derya-form textarea.form-control {
  min-height: 12rem;
  resize: vertical;
}

.derya-form .form-control:focus,
.derya-form input:not([type="hidden"]):not([type="submit"]):focus,
.derya-form select:focus,
.derya-form textarea:focus {
  border-color: var(--derya-form-green) !important;
  box-shadow: 0 0 0 4px rgba(24, 140, 85, 0.14) !important;
}

.derya-form input::placeholder,
.derya-form textarea::placeholder {
  color: #817a74;
  opacity: 1;
}

.derya-form input[name="website"] {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.derya-form .derya-captcha {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(120px, 1fr);
  align-items: end;
  gap: 0.75rem;
}

.derya-form .derya-captcha > label {
  grid-column: 1 / -1;
  margin-bottom: -0.25rem;
}

.derya-form .derya-captcha > div {
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
}

.derya-form .derya-captcha > div:nth-of-type(3) {
  display: none !important;
}

.derya-form .derya-captcha img {
  display: block;
  width: 200px !important;
  max-width: 100%;
  height: 52px !important;
  border: 1px solid var(--derya-form-line) !important;
  border-radius: 8px;
  object-fit: cover;
}

.derya-form .derya-captcha input {
  height: 52px !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 1.25rem !important;
  font-weight: 750 !important;
}

.derya-form .btn-send,
.derya-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 3.15rem;
  margin-top: 1rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 10px;
  background: var(--derya-form-green);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.derya-form .btn-send:hover,
.derya-form .btn-send:focus-visible {
  background: var(--derya-form-green-dark);
  box-shadow: 0 8px 20px rgba(15, 112, 65, 0.22);
  transform: translateY(-1px);
}

.derya-form .text-muted {
  margin: 0.75rem 0 0;
  color: var(--derya-form-muted) !important;
}

.derya-form-notice {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: #fff;
  font-weight: 650;
  line-height: 1.5;
}

.derya-form-notice--success {
  color: var(--derya-form-success);
  background: #f0faf5;
}

.derya-form-notice--error {
  color: var(--derya-form-error);
  background: #fff4f3;
}

@media (max-width: 700px) {
  .contact-area {
    padding: 1.5rem 0 3rem;
  }

  .contact-area > .container {
    width: min(100% - 1rem, 1180px);
  }

  .derya-form {
    padding: 1rem;
    border-radius: 14px;
  }

  .derya-form .row {
    grid-template-columns: 1fr;
  }

  .derya-form .derya-captcha {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .derya-form .derya-captcha img {
    width: 100% !important;
    max-width: 300px;
  }

  .derya-form .btn-send,
  .derya-form input[type="submit"] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .derya-form *,
  .derya-form *::before,
  .derya-form *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
