.fluentform .ff-el-form-check-label a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
}

.fluentform .ff-el-form-check-label a:hover {
  text-decoration: underline;
}

.contact-section {
  padding: 120px 0;
     background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--bg-soft);

}

.contact-section--header {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.contact-section--header h2 {
  margin-bottom: 20px;
}

.contact-section--header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
}

.contact-section--form {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* Fluent Forms */
.contact-section .fluentform {
  width: 100%;
}

.contact-section .fluentform .ff-el-group {
  margin-bottom: 24px;
}

.contact-section .fluentform label {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.contact-section .fluentform input,
.contact-section .fluentform select,
.contact-section .fluentform textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  background: color-mix(in srgb, var(--bg) 92%, var(--text) 8%);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: none;
}

.contact-section .fluentform textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-section .fluentform input::placeholder,
.contact-section .fluentform textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.contact-section .fluentform input:focus,
.contact-section .fluentform select:focus,
.contact-section .fluentform textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 22%, transparent);
}

.section-form--cta{
    color: var(--bg) !important;
  background: var(--text) !important;
}

/* Radio */
.contact-section .fluentform .ff-el-form-check {
  margin-bottom: 10px;
}

.contact-section .fluentform .ff-el-form-check-label {
  color: var(--muted);
  font-weight: 500;
}

/* Checkbox privacidad */
.contact-section .fluentform .ff-el-form-check input[type="checkbox"],
.contact-section .fluentform .ff-el-form-check input[type="radio"] {
  width: auto;
  min-height: auto;
  margin-right: 8px;
}

.contact-section .fluentform .ff-el-form-check-label a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
}

.contact-section .fluentform .ff-el-form-check-label a:hover {
  text-decoration: underline;
}

/* Botón */
.contact-section .fluentform .ff-btn-submit {
  min-width: 180px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  background: var(--secondary);
  color: var(--bg);
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-section .fluentform .ff-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--secondary) 22%, transparent);
}

/* Mensajes de error */
.contact-section .fluentform .error,
.contact-section .fluentform .text-danger,
.contact-section .fluentform .ff-el-is-error {
  color: #ff6b6b;
}

/* Mensaje de éxito */
.contact-section .ff-message-success {
  margin-top: 32px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--secondary) 38%, transparent);
  background: color-mix(in srgb, var(--secondary) 10%, transparent);
  color: var(--text);
  font-weight: 600;
}

.js-phone-error {
  display: none;
  margin-top: 8px;
  color: #ff6b6b;
  font-size: 0.9rem;
  line-height: 1.4;
}

.is-phone-invalid {
  border-color: #ff6b6b !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18) !important;
}

.contact-form-success,
.contact-section .ff-message-success,
.contact-section .ff_success_message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 820px;
  margin: 32px auto 0;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--secondary) 40%, transparent);
  background: color-mix(in srgb, var(--secondary) 12%, transparent);
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

.contact-form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 800;
}

/* ------
WHATSAPP
--------- */

.whatsapp-floating {
  position: fixed;

  right: max(18px, calc((100vw - var(--max)) / 2 - 64px));
  bottom: 36px;

  z-index: 9999;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;
  border-radius: 999px;

  background: #25d366;
  color: #ffffff;
  text-decoration: none;

  box-shadow: none;

  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease;
}

.whatsapp-floating:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: none;
}

.whatsapp-floating__icon {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.whatsapp-floating:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.whatsapp-floating:focus-visible {
  outline: 3px solid color-mix(in srgb, #25d366 45%, white);
  outline-offset: 4px;
}

.whatsapp-floating__icon {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.contact-alternative-row {
  width: 100%;
  max-width: 1040px;
  margin: 40px auto 0;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px;
}

.contact-alternative-row p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5;
  color: var(--muted);
}

.contact-alternative-row p:first-child {
  text-align: left;
}

.contact-alternative-row p:last-child {
  text-align: right;
}

.contact-alternative-row a {
  color: var(--secondary);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.contact-alternative-row a:hover {
  opacity: 0.8;
}

/* Mobile */
@media (max-width: 767px) {
  .whatsapp-floating {
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-floating__icon {
    width: 29px;
    height: 29px;
  }

    .contact-alternative-row {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    margin-top: 32px;
    text-align: center;
  }

  .contact-alternative-row p,
  .contact-alternative-row p:first-child,
  .contact-alternative-row p:last-child {
    text-align: center;
  }
}