/**
 * Form Contact Section Pattern - Pixel Perfect Figma Implementation
 * Used for standalone form blocks with purple gradient background
 */

/* Outer wrapper */

.contact-section-wrapper {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: flex-start;
  padding: 1.875rem 3.125rem;
  gap: 1.875rem;
}

/* Main container with purple gradient background */

.contact-section {
  position: relative;
  display: flex;
  overflow: hidden;
  flex: 1 1 0;
  align-items: center;
  justify-content: flex-start;
  height: 30rem;
  padding: 3.125rem 18.125rem;
  border-radius: 2.5rem;
  background:
    linear-gradient(45deg, rgb(0 0 0 / 0.7) 0%, rgb(0 0 0 / 0) 100%),
    linear-gradient(180deg, rgb(117 115 255 / 0) 0%, rgb(117 115 255 / 0.7) 100%),
    #7573ff;
  box-shadow: 1.875rem 4.375rem 6.25rem rgb(117 115 255 / 0.2);
  gap: 1.875rem;
}

/* Decorative SVG blob background - U shape from Figma */

.contact-section::before {
  position: absolute;
  z-index: 0;
  top: 4.125rem;
  left: -0.8125rem;
  width: 37.1875rem;
  height: 21.75rem;
  content: "";
  pointer-events: none;
  opacity: 0.1;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1OTUiIGhlaWdodD0iMzQ4IiB2aWV3Qm94PSIwIDAgNTk1IDM0OCIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0iTTU5NSAxNzQuMzcxQzU5NSAyNzAuMDkgNTE2LjkxMSAzNDggNDIwLjk3MiAzNDhILTI4Ljk3MkMtMTI0LjkxMSAzNDggLTIwMyAyNzAuMDkgLTIwMyAxNzQuMzcxQy0yMDMgNzguNjUyNSAtMTI0LjkxMSAwIC0yOC45NzIgMEg0MjAuOTcyQzUxNi45MTEgMCA1OTUgNzguNjUyNSA1OTUgMTc0LjM3MVpNNTAyLjAzNiAxNzMuNjI5QzUwMi4wMzYgMTI5LjEwOSA0NjUuNTk1IDkyLjc1MDUgNDIwLjk3MiA5Mi43NTA1SC0yOC45NzJDLTczLjU5NDYgOTIuNzUwNSAtMTEwLjAzNiAxMjkuMTA5IC0xMTAuMDM2IDE3My42MjlDLTExMC4wMzYgMjE4LjE0OSAtNzMuNTk0NiAyNTQuNTA3IC0yOC45NzIgMjU0LjUwN0g0MjAuOTcyQzQ2NS41OTUgMjU0LjUwNyA1MDIuMDM2IDIxOC4xNDkgNTAyLjAzNiAxNzMuNjI5WiIgZmlsbD0iIzc1NzNGRiIvPgogIDwvc3ZnPg==");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Text content section (left side) */

.contact-section__text-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2.5rem;
}

.contact-section__text-content .a-text--headline-3 {
  align-self: stretch;
  color: var(--color-greyscale-7);
  font-family: Inter;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 3.375rem;
}

.contact-section__description {
  align-self: stretch;
  color: var(--color-greyscale-7);
  font-family: Inter;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.375rem;
}

/* Form wrapper (right side) */

.contact-section__form-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
}

/* Form elements - fields container */

.contact-section__form-wrapper .m-form-element {
  width: 100%;
  margin: 0;
}

.contact-section__form-wrapper .m-form-element__header {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-section__form-wrapper .m-form-element__children {
  width: 100%;
}

.contact-section__form-wrapper .m-form-element__label {
  display: none !important;
}

/* Text field styling */

.contact-section__form-wrapper .a-text-field {
  width: 100%;
}

.contact-section__form-wrapper .a-text-field__container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 26.25rem;
  height: 3.75rem;
  padding: 1.25rem;
  border-radius: 0.9375rem;
  outline: 0.0625rem #d9dce3 solid;
  outline-offset: -0.0625rem;
  background: var(--color-greyscale-7);
  gap: 0.625rem;
}

.contact-section__form-wrapper .a-text-field__search-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  fill: var(--color-greyscale-2);
}

.contact-section__form-wrapper .a-text-field__element {
  flex: 1 1 0;
  padding: 0;
  color: var(--color-greyscale-2);
  border: none;
  outline: none;
  background: transparent;
  font-family: Inter;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.contact-section__form-wrapper .a-text-field__element::placeholder {
  color: #acadb4;
}

/* Consent checkbox */

.contact-section__form-wrapper .guide-form-consent {
  display: flex;
  align-items: flex-start;
  align-self: stretch;
  justify-content: flex-start;
  gap: 0.625rem;
}

.contact-section__form-wrapper .guide-form-consent-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.625rem;
  outline: 0.0625rem #d9dce3 solid;
  outline-offset: -0.0625rem;
  background: var(--color-greyscale-7);
  gap: 0.625rem;
}

.contact-section__form-wrapper .guide-form-consent-icon .a-icon {
  width: 1rem;
  height: 1rem;
  fill: var(--color-greyscale-2);
}

.contact-section__form-wrapper .guide-form-consent-text {
  flex: 1 1 0;
  color: var(--color-greyscale-7);
  font-family: Inter;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.125rem;
}

/* Submit button */

.contact-section__form-wrapper .form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
}

.contact-section__form-wrapper .a-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.75rem;
  padding: 1.25rem 1.875rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
  border-radius: 0.9375rem;
  background: var(--color-greyscale-2);
  gap: 0.625rem;
}

.contact-section__form-wrapper .a-button:hover {
  background: var(--color-greyscale-3);
}

.contact-section__form-wrapper .a-button__text {
  color: var(--color-greyscale-7);
  font-family: Inter;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.375rem;
}

/* Responsive */

@media (max-width: 1024px) {
  .contact-section {
    flex-direction: column;
    height: auto;
    padding: 2.5rem 3.75rem;
  }

  .contact-section__form-wrapper .a-text-field__container {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .contact-section-wrapper {
    padding: 0.9375rem 1.25rem;
  }

  .contact-section {
    padding: 1.875rem 1.25rem;
    border-radius: 1.25rem;
  }

  .contact-section__text-content .a-text--headline-3 {
    font-size: 1.75rem;
    line-height: 2.375rem;
  }
}
