/* Contact page — rich brief + map */

.contact-page {
  padding-block: clamp(48px, 7vw, 88px);
  background:
    radial-gradient(ellipse 55% 40% at 0% 10%, rgba(243, 123, 32, 0.09), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 80%, rgba(243, 123, 32, 0.05), transparent 50%),
    linear-gradient(180deg, #fff 0%, #FFF8F3 55%, #fff 100%);
}

.contact-page__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.contact-page__aside {
  position: sticky;
  top: 96px;
}

.contact-page__aside-title {
  margin: 10px 0 14px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text, #3F2A1E);
}

.contact-page__aside-text {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-muted, #8A6E5C);
}

.contact-page__channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contact-page__channels li {
  display: grid;
  gap: 4px;
}

.contact-page__channel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent, #F37B20);
}

.contact-page__channels a,
.contact-page__channels span:not(.contact-page__channel-label) {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text, #3F2A1E);
  text-decoration: none;
}

.contact-page__channels a:hover {
  color: var(--color-accent, #F37B20);
}

.contact-page__aside .btn--whatsapp {
  width: 100%;
  justify-content: center;
  margin-top: 28px;
}

.contact-page__map {
  margin-top: 36px;
}

.contact-page__map-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #8A6E5C);
}

.contact-page__map-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(240, 224, 212, 0.95);
  box-shadow: 0 18px 40px rgba(63, 42, 30, 0.08);
  background: #e8e0d8;
  aspect-ratio: 16 / 11;
}

.contact-page__map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.92) contrast(1.02);
}

.contact-page__map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent, #F37B20);
  text-decoration: none;
}

.contact-page__map-link:hover {
  text-decoration: underline;
}

.contact-page__map-link .icon {
  width: 16px;
  height: 16px;
}

/* Form shell */
.contact-form--rich {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, #FFF8F3 100%);
  border: 1px solid rgba(243, 123, 32, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 56px rgba(63, 42, 30, 0.07);
  overflow: hidden;
}

.contact-form--rich::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F37B20, #ffb347 55%, transparent);
}

.contact-form__head {
  margin-bottom: 28px;
}

.contact-form__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent, #F37B20);
}

.contact-form__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text, #3F2A1E);
}

.contact-form__lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted, #8A6E5C);
}

.contact-form__section {
  margin-bottom: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(240, 224, 212, 0.9);
}

.contact-form__section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.contact-form__section-title {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text, #3F2A1E);
}

.contact-form__fieldset-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text, #3F2A1E);
}

.contact-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-form__chip {
  position: relative;
  cursor: pointer;
}

.contact-form__chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.contact-form__chip span {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(240, 224, 212, 0.95);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted, #8A6E5C);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-form__chip:hover span {
  border-color: rgba(243, 123, 32, 0.4);
  color: var(--color-text, #3F2A1E);
}

.contact-form__chip input:focus-visible + span {
  outline: 2px solid var(--color-accent, #F37B20);
  outline-offset: 2px;
}

.contact-form__chip input:checked + span {
  border-color: var(--color-accent, #F37B20);
  background: rgba(243, 123, 32, 0.1);
  color: var(--color-accent, #F37B20);
  transform: translateY(-1px);
}

.contact-form__message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.contact-form__message-head label {
  margin-bottom: 0;
}

.contact-form__ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid rgba(243, 123, 32, 0.35);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #FFF8F3 100%);
  color: var(--color-accent, #F37B20);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.contact-form__ai-btn:hover:not(:disabled) {
  border-color: var(--color-accent, #F37B20);
  background: rgba(243, 123, 32, 0.1);
  transform: translateY(-1px);
}

.contact-form__ai-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-form__ai-btn.is-busy .contact-form__ai-icon {
  animation: contact-ai-spin 0.9s linear infinite;
}

.contact-form__ai-icon {
  display: inline-flex;
}

.contact-form__ai-hint {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted, #8A6E5C);
}

.contact-form__ai-hint.is-error {
  color: #b45309;
}

.contact-form__ai-hint.is-success {
  color: #15803d;
}

.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 22px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted, #8A6E5C);
  cursor: pointer;
}

.contact-form__consent input {
  margin-top: 3px;
  accent-color: var(--color-accent, #F37B20);
  flex-shrink: 0;
}

.contact-form--rich .btn--full {
  width: 100%;
  justify-content: center;
}

.contact-form--rich .contact-form__note {
  margin-top: 14px;
}

.contact-form__note.is-success {
  color: #15803d;
  font-weight: 600;
}

.contact-form__note.is-error {
  color: #b45309;
  font-weight: 600;
}

.contact-form--rich .form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A6E5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

@keyframes contact-ai-spin {
  to {
    transform: rotate(180deg);
  }
}

@media (max-width: 960px) {
  .contact-page__grid {
    grid-template-columns: 1fr;
  }

  .contact-page__aside {
    position: static;
  }

  .contact-page__map {
    margin-top: 28px;
  }
}

@media (max-width: 640px) {
  .contact-form--rich .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form__chips {
    gap: 8px;
  }

  .contact-form__chip span {
    padding: 9px 14px;
    font-size: 13px;
  }

  .contact-form__message-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
