.cd-form { --cd-accent: #7a1f2b; --cd-line: #cfcfcf; --cd-danger: #b42318; --cd-ok: #1f7a3a; max-width: 680px; box-sizing: border-box; }
.cd-form *, .cd-form *::before, .cd-form *::after { box-sizing: border-box; }
.cd-form { container-type: inline-size; }
.cd-grid { display: flex; flex-wrap: wrap; gap: 16px 4%; }
.cd-field { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; }
.cd-field.cd-w-half { flex-basis: 48%; }
/* Two columns on desktop; one per row on phones or when the form itself is narrow. */
@media (max-width: 767px) { .cd-field.cd-w-half { flex-basis: 100%; } }
@container (max-width: 440px) { .cd-field.cd-w-half { flex-basis: 100%; } }
.cd-form.cd-labels-hidden .cd-label { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Estilo «Marcado»: borde de color y esquinas redondeadas. */
.cd-form.cd-style-bold input[type="text"],
.cd-form.cd-style-bold input[type="email"],
.cd-form.cd-style-bold input[type="tel"],
.cd-form.cd-style-bold textarea,
.cd-form.cd-style-bold select { border: 2px solid var(--cd-accent); border-radius: 16px; padding: 12px 18px; color: #444; }
.cd-form.cd-style-bold textarea { min-height: 180px; }
.cd-form.cd-style-bold ::placeholder { color: #666; }
.cd-form.cd-style-bold .iti__selected-country { border-radius: 14px 0 0 14px; }
.cd-form.cd-style-bold .cd-check-label input { border-radius: 4px; }
.cd-form .cd-field > label { display: block; font-weight: 600; margin-bottom: 6px; line-height: 1.3; padding: 0; }
.cd-form input[type="text"],
.cd-form input[type="email"],
.cd-form input[type="tel"],
.cd-form textarea,
.cd-form select {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--cd-line);
  border-radius: 8px;
  background: #fff;
  color: #1d1d1d;
  font: inherit;
  font-size: 16px; /* evita zoom en iOS */
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.cd-form select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23555' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.cd-form textarea { min-height: 120px; resize: vertical; }
.cd-form input:focus, .cd-form textarea:focus, .cd-form select:focus { outline: none; border-color: var(--cd-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cd-accent) 18%, transparent); }
.cd-form ::placeholder { color: #9a9a9a; opacity: 1; }
.cd-form .cd-req { color: var(--cd-danger); }
.cd-form .cd-help { display: block; margin-top: 5px; font-size: 13px; color: #6b6b6b; }
.cd-form .cd-error { display: block; font-size: 13px; color: var(--cd-danger); margin-top: 5px; min-height: 0; }
.cd-form .cd-error:empty { display: none; }
.cd-form .cd-invalid input, .cd-form .cd-invalid textarea, .cd-form .cd-invalid select { border-color: var(--cd-danger); }
.cd-form .cd-invalid input:focus, .cd-form .cd-invalid textarea:focus, .cd-form .cd-invalid select:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.cd-form .cd-valid input[type="email"], .cd-form .cd-valid input[type="tel"] { border-color: var(--cd-ok); }
.cd-form .cd-check-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; line-height: 1.4; }
.cd-form .cd-check-label input { width: 18px; height: 18px; margin: 2px 10px 0 0 !important; flex: 0 0 auto; accent-color: var(--cd-accent); }
.cd-form-submit { margin-top: 20px; }
.cd-form-submit button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--cd-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 13px 28px;
  cursor: pointer;
  transition: filter .15s, transform .15s;
}
.cd-form-submit button:hover { filter: brightness(1.1); }
.cd-form-submit button:active { transform: translateY(1px); }
.cd-form-submit button:disabled { opacity: .7; cursor: progress; }
.cd-form-error { background: #fff4f4; border: 1px solid #e7b4b4; color: #6d1515; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.cd-form-ok { display: flex; gap: 12px; align-items: center; background: #f3faf3; border: 1px solid #b7dfb9; color: #14532d; border-radius: 10px; padding: 16px 18px; max-width: 680px; }
.cd-form-ok p { margin: 0; padding: 0; }
.cd-ok-icon { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--cd-ok, #1f7a3a); color: #fff; display: grid; place-items: center; font-weight: 700; }
.cd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* intl-tel-input */
.cd-form .iti { width: 100%; display: block; }
.cd-form .iti input[type="tel"] { width: 100%; }
.cd-form .iti__selected-country { border-radius: 8px 0 0 8px; }
.cd-form .iti__selected-country-primary { padding: 0 8px 0 12px; }
.cd-form .iti__selected-dial-code { color: #1d1d1d; }
.iti--fullscreen-popup.iti--container, .iti--container { z-index: 100000; }
.iti__country-selector, .iti__dropdown-content { color: #222; background: #fff; text-align: left; }
.iti__search-input { color: #222; background: #fff; padding: 10px 12px; }

/* Estados de validación (después del estilo para que prevalezcan). */
.cd-form .cd-field.cd-invalid input:not([type="checkbox"]), .cd-form .cd-field.cd-invalid textarea, .cd-form .cd-field.cd-invalid select { border-color: var(--cd-danger); }
.cd-form .cd-field.cd-valid input[type="email"], .cd-form .cd-field.cd-valid input[type="tel"] { border-color: var(--cd-ok); }
.cd-form select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.cd-form.cd-style-bold select { padding-right: 42px; background-position: right 16px center; }
