/* Contact Form 7: integración visual completa con EMET SOLAR. */
.cf7-form-shell,
.cf7-form-shell .wpcf7,
.cf7-form-shell .wpcf7-form {
  width: 100%;
  min-width: 0;
}

.cf7-form-shell {
  align-self: stretch;
  background: var(--yellow);
  color: var(--ink);
}

.contact-page .cf7-form-shell {
  overflow: hidden;
  align-self: start;
}

.cf7-form-shell .wpcf7-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  height: 100%;
  margin: 0;
  padding: clamp(65px, 7vw, 105px) clamp(28px, 6vw, 90px);
  background: var(--yellow);
  color: var(--ink);
}

.contact-page .cf7-form-shell .wpcf7-form {
  padding: 55px;
}

.cf7-form-shell .wpcf7-form > .contact-form,
.cf7-form-shell .wpcf7-form > .career-form {
  display: contents;
}

.cf7-form-shell .wpcf7-form > p,
.cf7-form-shell .wpcf7-form label,
.cf7-form-shell .wpcf7-form-control-wrap {
  min-width: 0;
}

.cf7-form-shell .wpcf7-form > p,
.cf7-form-shell .wpcf7-form label {
  margin: 0;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cf7-form-shell .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin-top: 0;
}

.cf7-form-shell input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.cf7-form-shell select,
.cf7-form-shell textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(16, 39, 80, .53);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.cf7-form-shell textarea {
  min-height: 150px;
  resize: vertical;
}

.cf7-form-shell select {
  cursor: pointer;
}

.cf7-form-shell select option {
  background: #fff;
  color: var(--ink);
}

.cf7-form-shell input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):hover,
.cf7-form-shell select:hover,
.cf7-form-shell textarea:hover {
  border-color: var(--blue-deep);
}

.cf7-form-shell input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.cf7-form-shell select:focus,
.cf7-form-shell textarea:focus {
  border-bottom: 3px solid var(--blue);
  background: transparent;
  box-shadow: none;
}

.cf7-form-shell .wide,
.cf7-form-shell .wpcf7-form > .wpcf7-response-output,
.cf7-form-shell .wpcf7-form > .wpcf7-spinner {
  grid-column: 1 / -1;
}

.cf7-form-shell .check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

.cf7-form-shell .check a {
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(5, 41, 95, .38);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.cf7-form-shell .check a:hover,
.cf7-form-shell .check a:focus-visible {
  color: #000;
  text-decoration-color: currentColor;
}

.cf7-form-shell .check .wpcf7-form-control-wrap {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  margin: 1px 0 0;
}

.cf7-form-shell .wpcf7-list-item {
  margin: 0;
}

.cf7-form-shell input[type="checkbox"],
.cf7-form-shell input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.cf7-form-shell input[type="file"] {
  min-height: 46px;
  padding: 9px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.cf7-form-shell .file > span,
.cf7-form-shell .file > small {
  display: block;
}

.cf7-form-shell .file > small {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: .68;
  text-transform: none;
}

.cf7-form-shell .career-form .file {
  padding: 18px;
  border: 1px dashed rgba(7, 26, 54, .38);
  border-radius: 14px;
  background: rgba(255, 255, 255, .18);
}

.cf7-form-shell input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 0;
  background: var(--blue);
  color: #fff;
  font: 700 10px/1 'DM Sans', Arial, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}

.cf7-form-shell input[type="submit"],
.cf7-form-shell button[type="submit"] {
  grid-column: 1 / -1;
  width: max-content;
  min-width: 190px;
  min-height: 46px;
  margin: 4px 0 0;
  padding: 0 24px;
  border: 1px solid var(--blue-deep);
  border-radius: 0;
  background: var(--blue-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .cf7-form-shell input[type="submit"]:hover,
  .cf7-form-shell button[type="submit"]:hover {
    transform: translateY(-3px);
    border-color: #fff;
    background: #fff;
    color: var(--blue-deep);
    box-shadow: 0 0 0 3px rgba(11, 63, 143, .2);
  }
}

.cf7-form-shell input[type="submit"]:focus-visible,
.cf7-form-shell button[type="submit"]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cf7-form-shell .wpcf7-not-valid {
  border-color: #a31d1d !important;
  background: #fff7f7 !important;
  box-shadow: 0 0 0 3px rgba(163, 29, 29, .12) !important;
}

.cf7-form-shell .wpcf7-not-valid-tip {
  display: block;
  margin-top: 7px;
  color: #821616;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.cf7-form-shell .wpcf7-response-output {
  margin: 8px 0 0 !important;
  padding: 14px 16px !important;
  border-width: 1px !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.cf7-form-shell .wpcf7 form.sent .wpcf7-response-output {
  border-color: #24753a !important;
  background: #effbf2;
  color: #164a25;
}

.cf7-form-shell .wpcf7 form.invalid .wpcf7-response-output,
.cf7-form-shell .wpcf7 form.unaccepted .wpcf7-response-output,
.cf7-form-shell .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #a31d1d !important;
  background: #fff4f4;
  color: #711414;
}

.cf7-form-shell .wpcf7-spinner {
  align-self: center;
  margin: 8px 0 0 12px;
  background-color: var(--blue-deep);
}

.cf7-form-shell .wpcf7-spinner::before {
  background-color: var(--yellow);
}

.cf7-form-shell .form-notice {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(11, 63, 143, .2);
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-deep);
}

@media (max-width: 768px) {
  .cf7-form-shell .wpcf7-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 64px 22px;
  }

  .contact-page .cf7-form-shell .wpcf7-form {
    padding: 32px 22px;
  }

  .cf7-form-shell .wide,
  .cf7-form-shell .wpcf7-form > .wpcf7-response-output,
  .cf7-form-shell .wpcf7-form > .wpcf7-spinner {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .cf7-form-shell .wpcf7-form,
  .contact-page .cf7-form-shell .wpcf7-form {
    padding: 46px 18px;
  }

  .cf7-form-shell input[type="submit"],
  .cf7-form-shell button[type="submit"] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cf7-form-shell input,
  .cf7-form-shell select,
  .cf7-form-shell textarea,
  .cf7-form-shell button {
    transition: none !important;
  }
}
