/* Contact section — shared with home page */
#contact.page-section {
  position: relative;
  z-index: 5;
  padding: 100px 50px 80px;
}
/* --- Contact Section --- */
#contact {
  border-top: 1px solid var(--border-subtle);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: min(600px, 70vw);
  height: min(600px, 70vw);
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.contact-section__head {
  max-width: 640px;
  margin-bottom: 56px;
}

.contact-section__eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 16px;
}

.contact-section__head .section-title {
  margin-bottom: 16px;
}

.contact-section__intro {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.contact-aside {
  position: sticky;
  top: 120px;
}

.contact-promise {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  margin-bottom: 28px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.08),
    transparent
  );
  border-radius: 4px;
}

.contact-promise__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold);
}

.contact-promise__icon svg {
  width: 20px;
  height: 20px;
}

.contact-promise b {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-promise span {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}

.contact-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.contact-quick-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-quick-btn:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.06);
  transform: translateX(6px);
}

.contact-quick-btn--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.06);
}

.contact-quick-btn__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  transition: border-color 0.35s ease;
}

.contact-quick-btn--whatsapp .contact-quick-btn__icon {
  color: #25d366;
}

.contact-quick-btn:hover .contact-quick-btn__icon {
  border-color: rgba(212, 175, 55, 0.4);
}

.contact-quick-btn__icon svg {
  width: 18px;
  height: 18px;
}

.contact-quick-btn__text b {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.85);
}

.contact-quick-btn__text span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
}

.contact-aside h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.35s ease;
}

.social-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
  transform: translateY(-3px);
}

.social-link:hover svg {
  transform: scale(1.12);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-details p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  line-height: 1.6;
}

.contact-details strong {
  color: var(--gold);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 4px;
}

#contact .footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

/* Interactive form panel */
.contact-form-shell {
  position: relative;
  padding: 36px 36px 32px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.04),
    rgba(8, 8, 13, 0.6)
  );
  backdrop-filter: blur(12px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-form-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    transparent
  );
  opacity: 0.6;
}

.contact-form-progress {
  margin-bottom: 32px;
}

.contact-form-progress__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.contact-form-progress__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.45);
}

.contact-form-progress__pct {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
}

.contact-form-progress__track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.contact-form-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-form-step__label {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form-step__num {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 8px;
  border-radius: 999px;
}

.contact-form-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form-fields--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.field-float {
  position: relative;
  padding-top: 18px;
}

.field-float input,
.field-float textarea {
  width: 100%;
  padding: 14px 40px 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.35s ease;
  border-radius: 0;
}

.field-float textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.65;
}

.field-float label {
  position: absolute;
  left: 0;
  top: 32px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left top;
}

.field-float input:focus,
.field-float textarea:focus {
  border-bottom-color: var(--gold);
}

.field-float input:focus + label,
.field-float input:not(:placeholder-shown) + label,
.field-float textarea:focus + label,
.field-float textarea:not(:placeholder-shown) + label {
  transform: translateY(-28px) scale(0.82);
  color: var(--gold);
  letter-spacing: 1px;
  font-size: 10px;
  text-transform: uppercase;
}

.field-float::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-float:focus-within::after {
  width: 100%;
}

.field-check {
  position: absolute;
  right: 0;
  top: 34px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gold);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-float.is-valid .field-check {
  opacity: 1;
  transform: scale(1);
  background: rgba(212, 175, 55, 0.12);
}

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

.contact-chip {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-chip:hover {
  border-color: rgba(212, 175, 55, 0.35);
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

.contact-chip.is-selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.contact-message-hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  font-family: var(--serif);
  min-height: 1.4em;
  transition:
    color 0.3s ease,
    opacity 0.2s ease;
}

.contact-form-step:last-child:focus-within .contact-message-hint {
  color: rgba(212, 175, 55, 0.55);
}

.field-float--textarea .field-check {
  top: 24px;
}

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 32px;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #08080d;
  background: linear-gradient(
    135deg,
    var(--gold-light),
    var(--gold-dark)
  );
  background-size: 200% auto;
  border: none;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.contact-submit:not(:disabled):hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

.contact-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.contact-submit__arrow {
  transition: transform 0.35s ease;
}

.contact-submit:not(:disabled):hover .contact-submit__arrow {
  transform: translateX(4px);
}

.contact-form-error {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: #ffb4b4;
  text-align: center;
}

.contact-form-error[hidden] {
  display: none;
}

.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}

.contact-success.is-visible {
  display: flex;
}

.contact-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
  animation: contactPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contactPop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.contact-success h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
}

.contact-success p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  max-width: 320px;
  line-height: 1.7;
}

.contact-form-shell.is-submitted .contact-form,
.contact-form-shell.is-submitted .contact-form-progress {
  display: none;
}

@media (max-width: 1024px) {
  #contact.page-section {
    padding: 70px 24px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-aside {
    position: static;
  }
  .contact-form-fields--row {
    grid-template-columns: 1fr;
  }
  .contact-form-shell {
    padding: 28px 22px;
  }
  #contact .footer-copy {
    text-align: center;
  }
}
