/*
 * Contact form enhancement for nileshjadhav.in
 * Keeps the original dark/pink design language while adding an editable form section.
 */

.s-message-form {
  background:
    radial-gradient(circle at 14% 14%, rgba(207, 23, 103, 0.22), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.07), transparent 30rem),
    #050505;
  color: #ffffff;
  overflow: hidden;
  padding-top: 17.6rem;
  padding-bottom: 16rem;
  position: relative;
}

.s-message-form::before {
  content: "";
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(207, 23, 103, 0.35);
  border-radius: 50%;
  position: absolute;
  right: 8vw;
  bottom: 9rem;
  animation: njSpin 16s linear infinite;
}

.s-message-form .section-heading {
  color: #ffffff;
}

.nj-form-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.nj-form-intro {
  color: rgba(255, 255, 255, 0.72);
  font-family: "Roboto", sans-serif;
  font-size: 2.2rem;
  line-height: 1.65;
  max-width: 76rem;
  margin-top: 3.2rem;
}

.nj-form-wrap {
  align-items: stretch;
  margin-top: 8rem;
  position: relative;
  z-index: 1;
}

.nj-form-copy {
  padding-right: 6.4rem;
}

.nj-form-kicker {
  color: #cf1767;
  font-family: "Roboto", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .28rem;
  line-height: 1.4;
  margin: 0 0 2.4rem;
  text-transform: uppercase;
}

.nj-form-copy h3 {
  color: #ffffff;
  font-size: 4.8rem;
  line-height: 1.16;
  margin-top: 0;
}

.nj-form-copy p:not(.nj-form-kicker) {
  color: rgba(255, 255, 255, 0.7);
}

.nj-contact-mini {
  display: grid;
  gap: 1.2rem;
  margin-top: 5.2rem;
}

.nj-contact-mini a {
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 2rem;
  line-height: 1.45;
  width: max-content;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.nj-contact-mini a:hover,
.nj-contact-mini a:focus {
  color: #cf1767;
  border-bottom-color: #cf1767;
}

.nj-contact-form {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 32px 95px rgba(0, 0, 0, 0.42);
  padding: 5.6rem;
  position: relative;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  backdrop-filter: blur(16px);
}

.nj-contact-form:hover {
  transform: translateY(-6px);
  border-color: rgba(207, 23, 103, 0.42);
  box-shadow: 0 38px 120px rgba(207, 23, 103, 0.14), 0 32px 95px rgba(0, 0, 0, 0.45);
}

.nj-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
}

.nj-field {
  margin-bottom: 2.6rem;
  position: relative;
}

.nj-field label {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .16rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.nj-field input,
.nj-field textarea {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 1.7rem;
  line-height: 1.5;
  min-height: 5.8rem;
  outline: none;
  padding: 1.6rem 1.9rem;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
  width: 100%;
}

.nj-field textarea {
  min-height: 15.5rem;
  resize: vertical;
}

.nj-field input::placeholder,
.nj-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.nj-field input:focus,
.nj-field textarea:focus {
  background: rgba(0, 0, 0, 0.55);
  border-color: #cf1767;
  box-shadow: 0 0 0 4px rgba(207, 23, 103, 0.15);
}

.nj-field.is-invalid input,
.nj-field.is-invalid textarea {
  border-color: #ff7a90;
  box-shadow: 0 0 0 4px rgba(255, 122, 144, 0.13);
}

.nj-error {
  color: #ffb2c0;
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 1.25rem;
  line-height: 1.35;
  min-height: 1.7rem;
  padding-top: .8rem;
}

.nj-submit-btn {
  align-items: center;
  background: #cf1767;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(207, 23, 103, 0.35);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: "Roboto", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  gap: 1.6rem;
  letter-spacing: .18rem;
  min-height: 6rem;
  overflow: hidden;
  padding: 0 1.1rem 0 3rem;
  position: relative;
  text-transform: uppercase;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.nj-submit-btn::before {
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.26), transparent);
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  transform: skewX(-20deg);
  width: 70%;
}

.nj-submit-btn:hover::before,
.nj-submit-btn:focus::before {
  animation: njShine .75s ease;
}

.nj-submit-btn:hover,
.nj-submit-btn:focus {
  background: #ffffff;
  color: #050505;
  transform: translateY(-3px);
  box-shadow: 0 20px 54px rgba(255, 255, 255, 0.12), 0 18px 48px rgba(207, 23, 103, 0.42);
}

.nj-submit-btn i {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: inline-flex;
  font-size: 2.4rem;
  height: 4.5rem;
  justify-content: center;
  line-height: 1;
  transition: transform .25s ease, background .25s ease;
  width: 4.5rem;
}

.nj-submit-btn:hover i,
.nj-submit-btn:focus i {
  background: #cf1767;
  color: #ffffff;
  transform: translateX(4px);
}

.nj-submit-btn.is-loading {
  pointer-events: none;
  opacity: .82;
}

.nj-form-status {
  color: rgba(255,255,255,.68);
  font-family: "Roboto", sans-serif;
  font-size: 1.4rem;
  margin: 2.2rem 0 0;
}

.nj-honey {
  display: none !important;
}

.nj-creative-reveal {
  transition: transform .7s ease, opacity .7s ease;
}

.nj-creative-reveal:not(.nj-visible) {
  opacity: .94;
}

.nj-thank-you-page {
  background: #050505;
  min-height: 100vh;
}

.nj-thank-you-hero {
  align-items: center;
  background:
    radial-gradient(circle at 20% 22%, rgba(207, 23, 103, 0.24), transparent 34rem),
    radial-gradient(circle at 82% 25%, rgba(255,255,255,.08), transparent 28rem),
    #050505;
  color: #ffffff;
  display: flex;
  min-height: calc(100vh - 110px);
  overflow: hidden;
  padding: 18rem 0 10rem;
  position: relative;
}

.nj-thank-you-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 34px;
  box-shadow: 0 34px 110px rgba(0,0,0,.45);
  margin: 0 auto;
  max-width: 900px;
  padding: 7.2rem;
  text-align: center;
}

.nj-thank-you-badge {
  align-items: center;
  background: #cf1767;
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(207,23,103,.36);
  display: inline-flex;
  font-family: "Roboto", sans-serif;
  font-size: 3.4rem;
  height: 8rem;
  justify-content: center;
  margin-bottom: 3.4rem;
  width: 8rem;
}

.nj-thank-you-card h1 {
  color: #ffffff;
  font-size: 6rem;
  line-height: 1.1;
  margin-top: 0;
}

.nj-thank-you-card p {
  color: rgba(255,255,255,.72);
  font-family: "Roboto", sans-serif;
  font-size: 2rem;
  line-height: 1.75;
}

.nj-thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  justify-content: center;
  margin-top: 4.2rem;
}

.nj-thank-you-actions a {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .14rem;
  padding: 1.5rem 2.4rem;
  text-transform: uppercase;
}

.nj-thank-you-actions a:first-child,
.nj-thank-you-actions a:hover,
.nj-thank-you-actions a:focus {
  background: #cf1767;
  border-color: #cf1767;
  color: #ffffff;
}

@keyframes njShine {
  to { left: 130%; }
}

@keyframes njSpin {
  to { transform: rotate(360deg); }
}

@media screen and (max-width:1200px) {
  .nj-form-copy {
    padding-right: 3.2rem;
  }

  .nj-form-copy h3 {
    font-size: 4.2rem;
  }

  .nj-contact-form {
    padding: 4.8rem;
  }
}

@media screen and (max-width:900px) {
  .nj-form-copy {
    padding-right: 0;
    margin-bottom: 5.6rem;
  }

  .nj-form-copy h3 {
    max-width: 72rem;
  }
}

@media screen and (max-width:700px) {
  .s-message-form {
    padding-top: 13rem;
    padding-bottom: 12rem;
  }

  .nj-form-wrap {
    margin-top: 5.6rem;
  }

  .nj-field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nj-contact-form {
    border-radius: 22px;
    padding: 3.2rem;
  }

  .nj-form-copy h3 {
    font-size: 3.6rem;
  }

  .nj-form-intro {
    font-size: 1.9rem;
  }

  .nj-thank-you-card {
    padding: 4.4rem 3rem;
  }

  .nj-thank-you-card h1 {
    font-size: 4.2rem;
  }

  .nj-thank-you-actions {
    display: grid;
  }
}

@media screen and (max-width:420px) {
  .nj-contact-form {
    padding: 2.4rem;
  }

  .nj-submit-btn {
    justify-content: space-between;
    width: 100%;
  }

  .nj-form-copy h3 {
    font-size: 3.1rem;
  }

  .nj-contact-mini a {
    font-size: 1.7rem;
  }
}

/* -------------------------------------------------------------------
 * Form spacing, readability and interaction polish - added May 2026
 * ------------------------------------------------------------------- */
.s-message-form {
  padding-bottom: 9rem;
}

.nj-form-wrap {
  margin-top: 6.2rem;
}

.nj-contact-form {
  isolation: isolate;
  transform-style: preserve-3d;
}

.nj-contact-form::before,
.nj-contact-form::after {
  border-radius: inherit;
  content: "";
  pointer-events: none;
  position: absolute;
}

.nj-contact-form::before {
  background: radial-gradient(circle at var(--nj-spot-x, 50%) var(--nj-spot-y, 0%), rgba(207, 23, 103, .22), transparent 34rem);
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: -1;
}

.nj-contact-form::after {
  border: 1px solid rgba(255,255,255,.12);
  inset: 1rem;
  opacity: .45;
}

.nj-contact-form:hover::before,
.nj-contact-form:focus-within::before {
  opacity: 1;
}

.js .nj-field {
  transform: translateY(12px);
  opacity: 0;
  transition: transform .55s ease, opacity .55s ease;
}

.js .nj-field.nj-field-visible {
  transform: translateY(0);
  opacity: 1;
}

.nj-field input,
.nj-field textarea {
  caret-color: #ffffff;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 0 0 #ffffff;
}

.nj-field input:-webkit-autofill,
.nj-field input:-webkit-autofill:hover,
.nj-field input:-webkit-autofill:focus,
.nj-field textarea:-webkit-autofill,
.nj-field textarea:-webkit-autofill:hover,
.nj-field textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, .62) inset, 0 0 0 4px rgba(207, 23, 103, 0.15) !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  transition: background-color 9999s ease-in-out 0s;
}

.nj-field input:focus,
.nj-field textarea:focus {
  transform: translateY(-2px);
}

.nj-field:focus-within label {
  color: #ffffff;
  transform: translateX(4px);
}

.nj-field label {
  transition: color .25s ease, transform .25s ease;
}

.nj-submit-btn {
  margin-top: .4rem;
}

.nj-form-status {
  margin-bottom: 0;
  min-height: 2.4rem;
}

.nj-contact-mini a {
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}

.nj-contact-mini a:hover,
.nj-contact-mini a:focus {
  transform: translateX(6px);
}

.s-message-form::after {
  animation: njFloatOrb 8s ease-in-out infinite;
  background: radial-gradient(circle, rgba(207, 23, 103, .2), transparent 70%);
  border-radius: 50%;
  content: "";
  height: 24rem;
  left: 5vw;
  pointer-events: none;
  position: absolute;
  top: 15rem;
  width: 24rem;
}

@keyframes njFloatOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2rem, -1.6rem, 0) scale(1.08); }
}

@media screen and (max-width:700px) {
  .s-message-form {
    padding-bottom: 8rem;
  }

  .nj-form-wrap {
    margin-top: 4.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-main-nav .header-cta a::after,
  .s-message-form::before,
  .s-message-form::after,
  .nj-submit-btn::before,
  .header-main-nav .header-cta a::before,
  .cta-content .btn::before {
    animation: none !important;
  }

  .nj-field,
  .nj-contact-form,
  .cta-content .btn,
  .header-main-nav .header-cta a {
    transition: none !important;
    transform: none !important;
  }
}
