/**
 * SDM - Formulario Contacto (front)
 * @author    SEO DIGITAL MEDIA SAS
 * @copyright 2026 SEO DIGITAL MEDIA SAS
 */
.sdmcf-wrapper { margin: 0 0 1.5rem; }
.sdmcf-title { margin-bottom: .75rem; }
.sdmcf-description { margin-bottom: 1rem; }
.sdmcf-section { border: 0; padding: 0; margin: 0 0 .5rem; min-width: 0; }
.sdmcf-section-title { font-size: 1.1rem; font-weight: 600; margin-bottom: .75rem; padding-bottom: .35rem; border-bottom: 1px solid rgba(0,0,0,.1); width: 100%; }
.sdmcf-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1rem; }
.sdmcf-col { grid-column: span 12; min-width: 0; }
@media (min-width: 768px) {
  .sdmcf-col-1 { grid-column: span 1; } .sdmcf-col-2 { grid-column: span 2; } .sdmcf-col-3 { grid-column: span 3; }
  .sdmcf-col-4 { grid-column: span 4; } .sdmcf-col-5 { grid-column: span 5; } .sdmcf-col-6 { grid-column: span 6; }
  .sdmcf-col-7 { grid-column: span 7; } .sdmcf-col-8 { grid-column: span 8; } .sdmcf-col-9 { grid-column: span 9; }
  .sdmcf-col-10 { grid-column: span 10; } .sdmcf-col-11 { grid-column: span 11; } .sdmcf-col-12 { grid-column: span 12; }
}
.sdmcf-field { margin-bottom: 1rem; text-align: start; }
.sdmcf-label { display: block; font-weight: 600; margin-bottom: .3rem; }
/* Etiquetas siempre a la izquierda: algunos temas (p. ej. formularios horizontales de Bootstrap)
   alinean las etiquetas a la derecha, flotan o limitan su ancho */
.sdmcf-wrapper .sdmcf-field .sdmcf-label,
.sdmcf-wrapper .sdmcf-field .sdmcf-check label,
.sdmcf-wrapper .sdmcf-section-title,
.sdmcf-wrapper .sdmcf-help,
.sdmcf-wrapper .sdmcf-error {
  text-align: start !important;
  float: none !important;
  justify-content: flex-start !important;
}
.sdmcf-wrapper .sdmcf-field .sdmcf-label { width: 100% !important; max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.sdmcf-wrapper .sdmcf-field .sdmcf-check label { width: auto !important; margin: 0; }
.sdmcf-req { color: #c0392b; }
.sdmcf-input { width: 100%; }
.sdmcf-field.has-error .sdmcf-input,
.sdmcf-field.has-error select { border-color: #c0392b; }
.sdmcf-error { color: #c0392b; font-size: .85rem; margin-top: .25rem; }
.sdmcf-error:empty { display: none; }
.sdmcf-help { display: block; color: #6c757d; font-size: .8rem; margin-top: .25rem; }
.sdmcf-check { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .35rem; }
.sdmcf-check input { margin-top: .25rem; flex: 0 0 auto; }
.sdmcf-options--inline { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.sdmcf-submit--center { text-align: center; }
.sdmcf-submit--right { text-align: right; }
.sdmcf-submit--block .sdmcf-btn { width: 100%; }
.sdmcf-btn[disabled] { opacity: .65; cursor: progress; }
.sdmcf-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px; height: 1px; overflow: hidden; }
.sdmcf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sdmcf-alert { padding: .85rem 1rem; border-radius: 4px; margin-bottom: 1rem; border: 1px solid transparent; }
.sdmcf-alert p:last-child { margin-bottom: 0; }
.sdmcf-alert--success { background: #e8f6ee; border-color: #b5e2c7; color: #1e6b3d; }
.sdmcf-alert--error { background: #fdecea; border-color: #f5c2bd; color: #8a1f13; }
.sdmcf-important { padding: .85rem 1rem; border-left: 4px solid; border-radius: 3px; margin-bottom: 1rem; }
.sdmcf-important p:last-child { margin-bottom: 0; }
.sdmcf-important--info { background: #eaf4fb; border-color: #005A8F; }
.sdmcf-important--warning { background: #fff7e6; border-color: #e0a100; }
.sdmcf-important--danger { background: #fdecea; border-color: #c0392b; }
.sdmcf-important--success { background: #e8f6ee; border-color: #27ae60; }
.sdmcf-required-note { font-size: .8rem; color: #6c757d; margin: .25rem 0 0; }
.sdmcf-rc-note { display: block; font-size: .7rem; color: #888; }
.grecaptcha-badge { visibility: hidden; }

/* Secciones repetibles ("Agregar otra línea") */
.sdmcf-repeat-row { border: 1px solid #e3e6ea; border-radius: 6px; padding: .6rem .85rem .2rem; margin-bottom: .75rem; background: #fafbfc; }
.sdmcf-repeat-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.sdmcf-repeat-num { font-weight: 600; font-size: .85rem; color: #4a5560; }
.sdmcf-wrapper .sdmcf-repeat-remove { background: none; border: 0; color: #c0392b; font-size: .85rem; cursor: pointer; padding: .15rem .35rem; border-radius: 4px; line-height: 1.2; }
.sdmcf-wrapper .sdmcf-repeat-remove:hover,
.sdmcf-wrapper .sdmcf-repeat-remove:focus { background: #fdecea; }
.sdmcf-repeat-remove[hidden] { display: none !important; }
.sdmcf-repeat-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .5rem; }
.sdmcf-repeat-add[disabled] { opacity: .55; cursor: not-allowed; }
.sdmcf-repeat-limit { color: #6c757d; font-size: .8rem; }
/* Sin JavaScript no se pueden agregar ni quitar líneas: se ocultan esos botones */
.sdmcf-form:not(.sdmcf-js) .sdmcf-repeat-actions,
.sdmcf-form:not(.sdmcf-js) .sdmcf-repeat-remove { display: none; }
