/* === Bloque: Formulario Promoción === */
.promotions-form {
  width: 100%;
  max-width: 100%;
}
.promotions-form * {
  font-family: var(--font-inter);
}

.promotions-form__inner {
}

/* === Geely CF7 Form === */
.geely-form-main {
  border-radius: 40px;
  margin: 0 auto;
  padding: 40px 32px;
  box-shadow: 0px 4px 4px 0px #bdbdbd80;
  background-color: #ffffff;
}

.geely-form__title {
  text-align: center;
  font-weight: 700;
  color: var(--c-black);
  font-family: var(--font-geely);
}

.geely-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #212529;
  padding-inline: 16px;
  margin-bottom: 16px;
}

.geely-form-main > .geely-row:nth-of-type(1) {
  margin-top: 32px;
}

.geely-row__label {
  font-weight: 500;
  font-size: var(--fs-p-2);
  line-height: var(--lh-p-2);
  color: var(--c-black);
}

p:has(> .geely-row__label) {
}

.geely-row__control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.geely-input,
.geely-select {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--c-black);
  padding: 6px 0;
}

.geely-input::placeholder {
  color: var(--c-steel-grey);
}

.geely-row__control--doc {
  gap: 12px;
}
.geely-row__control--doc br {
  display: none !important;
}
.geely-row__control--doc > p {
  display: flex;
  align-items: center;
  gap: 24px;
}

p:has(> [data-name*="department"]),
p:has(> [data-name*="store"]) {
  width: 100%;
}

.geely-select {
  appearance: none;
  padding-right: 20px;
  background-image: linear-gradient(45deg, transparent 50%, #2a2a2a 50%),
    linear-gradient(135deg, #2a2a2a 50%, transparent 50%);
  background-position: calc(100% - 10px) calc(50% - 2px),
    calc(100% - 5px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.geely-row--document .geely-select {
  width: 73px;
  height: 36px;
  flex: 0 0 73px;
  background-color: #e7e6e6;
  padding: 7px;
  font-family: var(--font-geely);
  font-weight: 700;
}

.geely-select.first option {
  color: var(--c-black);
}
.geely-select.first {
  color: var(--c-steel-grey);
}

.geely-input--doc {
  flex: 1;
}

.geely-geo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 4px;
}

.geely-geo__btn {
  font-size: 12px;
  color: #1a66ff;
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.geely-geo__btn:hover {
  text-decoration: underline;
}

.geely-geo__status {
  font-size: 12px;
  color: #666;
}

.geely-consent {
  margin-top: 10px;
  font-size: 12px;
  color: #333;
}

.geely-consent a {
  color: #1a66ff;
  text-decoration: none;
}

.geely-consent a:hover {
  text-decoration: underline;
}

.geely-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.geely-submit {
  border: 0;
  cursor: pointer;
  transition: filter 0.2s ease;
}
p:has(> .geely-submit) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.geely-submit:hover {
  filter: brightness(0.95);
}

/* CF7 messages */
.wpcf7-not-valid-tip {
  font-size: 12px;
  margin-top: 6px;
  color: #dc3232;
}

.wpcf7-response-output {
  margin: 12px 0 0 !important;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
}

.wpcf7-validation-errors {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
}

.wpcf7-mail-sent-ok {
  background: #d4edda;
  border: 1px solid #28a745;
  color: #155724;
}

.wpcf7-mail-sent-ng {
  background: #f8d7da;
  border: 1px solid #dc3545;
  color: #721c24;
}

.geely-form__footer .geely-consent {
  margin-top: 0;
}
.geely-form__footer {
  margin-top: 40px;
}
.geely-form__footer .wpcf7-list-item {
  margin-left: 0;
  font-size: var(--fs-p-4);
  line-height: var(--lh-p-4);
  font-family: var(--font-inter);
  font-weight: 500;
  color: var(--c-black);
}
.geely-form__footer .wpcf7-list-item a {
  color: var(--c-greely-blue);
  text-decoration: underline;
}

label:has(> [name*="marketing_consent"]) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.geely-actions .geely-submit {
  padding: 12px 35.85px;
  font-size: var(--fs-title-7);
  line-height: var(--lh-title-7);
  font-weight: 700;
  color: var(--c-white);
  font-family: var(--font-geely);
  background-color: var(--c-greely-blue);
}
.geely-actions .geely-submit:disabled {
  background-color: var(--c-steel-grey);
}

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

@media (max-width: 1279px) {
  .geely-promotions-form {
    padding: 32px;
  }
}

@media (max-width: 1023px) {
  .geely-promotions-form {
    padding: 24px;
    max-width: 100%;
  }

  .geely-promotions-form__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .geely-promotions-form__label {
    width: auto;
  }

  .geely-promotions-form__footer-note {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  /* Móvil: Usuario lo creará */
  .geely-form-main {
    border-radius: 16px;
    padding-inline: 16px;
    padding-block: 32px;
  }

  .geely-row {
    padding-inline: 8px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 7px;
  }
  .geely-row__label {
    font-size: var(--fs-p-5);
    line-height: var(--lh-p-5);
  }

  .geely-input,
  .geely-select {
    font-size: var(--fs-p-5);
    line-height: var(--lh-p-5);
  }

  .geely-row__control {
    width: 100%;
  }
  .geely-geo__btn {
    font-size: var(--fs-p-5) !important;
    line-height: var(--lh-p-5) !important;
  }
  .geely-form__footer {
    margin-top: 24px;
  }
  .geely-form__footer .wpcf7-list-item {
    font-size: var(--fs-p-5);
    line-height: var(--lh-p-5);
  }
  .geely-form__title {
    font-size: var(--fs-title-sm-3);
    line-height: var(--lh-title-sm-3);
  }
  .geely-form-main > .geely-row:nth-of-type(1) {
    margin-top: 4px;
  }
  .geely-row--document .geely-select {
    width: 69px;
    flex: 0 0 69px;
  }
  .geely-actions {
    margin-top: 24px;
  }

  p:has(> .geely-submit) {
    width: 100%;
  }
  .geely-actions .geely-submit {
    padding-inline: 10px;
    font-size: var(--fs-title-sm-6);
    line-height: var(--lh-title-sm-6);
  }
}
