/* ===== Contact Section ===== */
.contact {
  position: relative;
  background: #fff;
  min-height: 100vh;
  padding: 192px 0 120px;
  overflow: hidden;
  border-bottom: 1px solid #e2e4e6;
}

/* Background image */
.contact__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1078px;
  pointer-events: none;
  overflow: hidden;
}

.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  transform: rotate(180deg);
}

/* Inner layout */
.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 160px;
  display: flex;
  align-items: flex-start;
  gap: 100px;
}

/* Left content */
.contact__left {
  flex: 0 0 405px;
  padding-top: 48px;
}

.contact__title {
  font-family: "Work Sans", sans-serif;
  font-size: 60.585px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #424445;
  margin-bottom: 48px;
}

.contact__title-gradient {
  background:
    linear-gradient(90deg, transparent 0%, transparent 100%),
    linear-gradient(133.66deg, #708ef2 5.92%, #9633dd 50%, #f19f5e 94.08%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact__desc {
  font-family: "Work Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  color: #666;
  max-width: 405px;
  margin-bottom: 32px;
}

.contact__desc:last-child {
  margin-bottom: 0;
}

/* Form card */
.contact__form-card {
  flex: 0 0 619px;
  background: #fff;
  border-radius: 15px;
  padding: 48px 60px;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact__form-row {
  display: flex;
  gap: 32px;
}

.contact__field {
  width: 100%;
  position: relative;
}

.contact__field::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #708ef2 5.92%, #9633dd 50%, #f19f5e 94.08%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
  z-index: 2;
}

.contact__field:focus-within::before {
  transform: scaleX(1);
}

.contact__field--half {
  flex: 1;
}

/* Inputs */
.contact__field input,
.contact__field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e2e4e6;
  padding: 16px 0;
  font-family: "Work Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #424445;
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: #8e9194;
}

.contact__field input:focus,
.contact__field textarea:focus {
  border-bottom-color: transparent;
}

.contact__field textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}

/* Select / Dropdown */
.contact__field--select {
  position: relative;
}

.contact__field--select select {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e2e4e6;
  padding: 16px 32px 16px 0;
  font-family: "Work Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #424445;
  background: transparent;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.3s;
}

.contact__field--select select:invalid {
  color: #424445;
}

.contact__field--select select:focus {
  border-bottom-color: transparent;
}

.contact__field--select::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%238e9194' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Submit button */
.contact__submit-wrap {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  transition: transform 0.2s;
}

.contact__submit-wrap:hover {
  transform: translateY(-2px);
}

.contact__submit-glow {
  position: absolute;
  top: -6px;
  left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  border-radius: 4px;
  background: linear-gradient(125deg, #708ef2 5.92%, #9633dd 50%, #f19f5e 94.08%);
  background-size: 200% 200%;
  filter: blur(16px);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s;
  animation: contactGlowPulse 3s ease-in-out infinite;
}

.contact__submit-wrap:hover .contact__submit-glow {
  opacity: 0.8;
}

@keyframes contactGlowPulse {
  0%, 100% {
    filter: blur(14px);
    background-position: 0% 50%;
  }
  50% {
    filter: blur(20px);
    background-position: 100% 50%;
  }
}

.contact__submit {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0a0d14;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  padding: 21px 40px;
  border: none;
  cursor: pointer;
}

/* ===== Contact — Responsive ===== */
@media (max-width: 1200px) {
  .contact__inner {
    padding: 0 80px;
    gap: 60px;
  }

  .contact__left {
    flex: 0 0 360px;
  }

  .contact__form-card {
    flex: 1;
    padding: 48px 40px;
  }
}

@media (max-width: 1024px) {
  .contact {
    padding: 160px 0 100px;
  }

  .contact__inner {
    padding: 0 60px;
    flex-direction: column;
    gap: 60px;
  }

  .contact__left {
    flex: none;
    padding-top: 0;
  }

  .contact__title {
    font-size: 48px;
  }

  .contact__desc {
    font-size: 22px;
  }

  .contact__form-card {
    flex: none;
    width: 100%;
    max-width: 600px;
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 140px 0 72px;
  }

  .contact__inner {
    padding: 0 24px;
    gap: 48px;
  }

  .contact__title {
    font-size: 40px;
    margin-bottom: 32px;
  }

  .contact__desc {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .contact__form-card {
    padding: 32px 24px;
  }

  .contact__form-row {
    flex-direction: column;
    gap: 40px;
  }

  .contact__bg {
    width: 100%;
    left: 0;
  }
}

@media (max-width: 480px) {
  .contact {
    padding: 120px 0 56px;
  }

  .contact__title {
    font-size: 34px;
  }

  .contact__desc {
    font-size: 18px;
  }

  .contact__form {
    gap: 32px;
  }

  .contact__submit {
    width: 100%;
    justify-content: center;
  }
}
