/* SunnyFlip contact form layer.
   This file isolates new form layout and guided-field styling from the original site CSS. */

.contact-form-section {
  display: grid;
  gap: 30px;
}

.contact-form-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.contact-form-intro .section-heading.left {
  margin-inline: auto;
  text-align: center;
}

.contact-form-intro .eyebrow {
  margin-inline: auto;
}

.contact-form-wide {
  width: 100%;
  background: #f3f5f4;
}

.contact-form-wide h3 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

.contact-form-wide > p:not(.form-required-note) {
  margin: 12px 0 0;
  line-height: 1.65;
  font-weight: 450;
}

.contact-form-wide .linked-case-note {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 16px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(251, 156, 9, 0.22);
  border-radius: 999px;
  background: rgba(251, 156, 9, 0.12);
  color: var(--graphite);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}

.contact-form-wide .linked-case-note strong {
  color: var(--orange);
  font-weight: 950;
}

html[data-theme="dark"] .contact-form-wide .linked-case-note {
  border-color: rgba(251, 156, 9, 0.28);
  background: rgba(251, 156, 9, 0.14);
  color: rgba(255, 255, 255, 0.78);
}

.contact-form-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.contact-form-wide h3,
.contact-form-wide > p,
.contact-form-wide .form-required-note,
.contact-form-wide .form-promo-note,
.contact-form-wide > .button,
.contact-form-wide .form-status {
  grid-column: 1 / -1;
}

.form-card .form-required-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -6px 0 8px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(251, 156, 9, 0.12);
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.required-mark,
.form-required-note span {
  color: var(--orange);
  font-weight: 950;
}

.form-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 0 18px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(52, 56, 59, 0.12);
}

.form-block[hidden],
[data-techos-detail][hidden] {
  display: none !important;
}

.form-block-contact {
  margin-top: 10px;
}

.form-block-email {
  align-items: center;
}

.email-support-text {
  margin: 17px 0 0;
  color: var(--graphite-light);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.55;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-block-details .form-field-full {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(52, 56, 59, 0.12);
}

.field select {
  width: 100%;
  padding: 15px 44px 15px 16px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 20px;
  background:
    linear-gradient(45deg, transparent 50%, var(--graphite) 50%) calc(100% - 23px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--graphite) 50%, transparent 50%) calc(100% - 17px) 50% / 7px 7px no-repeat,
    var(--cream);
  color: var(--dark);
  font: inherit;
  font-weight: 600;
  outline: none;
  transition: 0.18s ease;
  appearance: none;
}

.field select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 5px rgba(251,156,9,0.14);
  background-color: var(--white);
}

.field select:disabled {
  color: rgba(52, 56, 59, 0.55);
  cursor: not-allowed;
}

.choice-field {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
}

.choice-field legend {
  width: 100%;
  margin-bottom: 1px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 950;
}

.choice-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  background: var(--cream);
  color: var(--dark);
  font-weight: 850;
  cursor: pointer;
}

.choice-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}

.form-promo-note {
  position: relative;
  margin-top: 18px;
  margin-bottom: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(234, 94, 7, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 6% 35%, rgba(251,156,9,0.24), transparent 8rem),
    linear-gradient(135deg, rgba(251,156,9,0.17), rgba(234,94,7,0.08));
  color: var(--dark);
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 10px 24px rgba(234, 94, 7, 0.07);
  overflow: hidden;
}

.form-promo-note strong {
  color: var(--orange);
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.form-promo-note::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.24), transparent 42%);
}

.form-status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-whatsapp-submit {
  width: 100%;
  margin-top: 30px;
  background: #25d366;
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.24);
}

.contact-whatsapp-submit:hover {
  background: #1ebe5d;
}

@media (max-width: 760px) {
  .contact-form-wide {
    grid-template-columns: 1fr;
  }

  .form-block {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .email-support-text {
    margin-top: 8px;
  }
}
