/* =========================================================
   SERVICE CONTACT FORM
   LucaLoco_Web
   Versione definitiva
   ========================================================= */

.service-contact {
  margin-top: 64px;
}

.service-contact__box {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(243, 188, 0, 0.10), transparent 24%),
    linear-gradient(180deg, #0f7a28 0%, #0a5b1d 100%);
  box-shadow: 0 24px 60px rgba(10, 32, 18, 0.18);
}

.service-contact__box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 36px;
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: #f3bc00;
}

.service-contact__intro {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: 28px;
}

.service-contact__title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.service-contact__text {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 16px;
  line-height: 1.82;
}

.service-contact__text strong {
  color: #ffffff;
}

/* =========================================================
   FORM
   ========================================================= */

.service-contact .contact-panel__form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-contact .contact-panel__field,
.service-contact .contact-panel__field-grid {
  min-width: 0;
}

.service-contact .contact-panel__field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-contact .contact-panel__field label {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.service-contact .contact-panel__field input,
.service-contact .contact-panel__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.service-contact .contact-panel__field textarea {
  min-height: 144px;
  resize: vertical;
}

.service-contact .contact-panel__field input::placeholder,
.service-contact .contact-panel__field textarea::placeholder {
  color: rgba(255,255,255,0.60);
}

.service-contact .contact-panel__field input:hover,
.service-contact .contact-panel__field textarea:hover {
  background: rgba(255,255,255,0.12);
}

.service-contact .contact-panel__field input:focus,
.service-contact .contact-panel__field textarea:focus {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.50);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.service-contact .contact-panel__field input:user-invalid,
.service-contact .contact-panel__field textarea:user-invalid {
  border-color: rgba(255, 215, 140, 0.95);
}

/* =========================================================
   CONSENT
   ========================================================= */

.service-contact .contact-panel__consent {
  margin-top: 4px;
}

.service-contact .contact-panel__consent label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  line-height: 1.6;
}

.service-contact .contact-panel__consent input {
  margin-top: 2px;
  accent-color: #f3bc00;
}

/* =========================================================
   BUTTON
   ========================================================= */

.service-contact .contact-submit {
  width: 100%;
  min-height: 58px;
  padding: 16px 22px;
  border: 0;
  border-radius: 18px;
  background: #f3bc00;
  color: #0a2a14;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform .18s ease,
    background .2s ease,
    box-shadow .22s ease,
    opacity .2s ease,
    color .2s ease;
}

.service-contact .contact-submit:hover {
  background: #ffd84d;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.14);
}

.service-contact .contact-submit:disabled {
  cursor: wait;
  opacity: 0.96;
}

.service-contact .contact-submit.is-loading {
  background: #f6cf45;
  color: #0a2a14;
}

.service-contact .contact-submit.is-success {
  background: #dff0df;
  color: #0a2a14;
}

.service-contact .contact-submit.is-error {
  background: #f3bc00;
  color: #0a2a14;
}

.service-contact .contact-submit__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   FEEDBACK
   ========================================================= */

.service-contact .contact-panel__feedback {
  min-height: 22px;
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  transition: opacity .2s ease, transform .2s ease;
}

.service-contact .contact-panel__feedback.is-success {
  color: #e8ffe8;
}

.service-contact .contact-panel__feedback.is-error {
  color: #ffe7a3;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {
  .service-contact {
    margin-top: 48px;
  }

  .service-contact__box {
    padding: 24px;
    border-radius: 24px;
  }

  .service-contact__box::before {
    left: 24px;
    width: 84px;
  }

  .service-contact__intro {
    margin-bottom: 22px;
  }

  .service-contact__title {
    font-size: 28px;
  }

  .service-contact__text {
    font-size: 15px;
  }

  .service-contact .contact-panel__field-grid {
    grid-template-columns: 1fr;
  }

  .service-contact .contact-panel__field input,
  .service-contact .contact-panel__field textarea {
    font-size: 16px;
  }
}