/* public/themes/modern-white/assets/css/pages/enterprise_request_form.css
   Formulario de solicitud de programa — Studium 360
   Vista bajo layout.php (interno). Sin lp-* ni estilos inline.
   ============================================================ */

/* ============================================================
   Wrapper
   ============================================================ */

.cp-ent-wrap--rform{
  max-width: 1080px;
  margin: 0 auto;
}

/* ============================================================
   Breadcrumb
   ============================================================ */

.cp-ent-subhead__crumb{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--muted);
}

.cp-ent-subhead__crumb a{
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.cp-ent-subhead__crumb a:hover{
  color: var(--primary);
  text-decoration: underline;
}

.cp-ent-subhead__crumb span[aria-hidden]{
  color: var(--border);
}

.cp-ent-subhead__crumb span:last-child{
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   Hero de la vista
   ============================================================ */

.cp-ent-rform-hero{
  margin-bottom: var(--space-5);
}

.cp-ent-page-title{
  margin: 0 0 6px;
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

/* ============================================================
   Alertas
   ============================================================ */

.cp-ent-rform-alert{
  margin-bottom: var(--space-4);
}

.cp-ent-form-errors__title{
  margin: 0 0 8px;
  font-weight: 700;
}

/* ============================================================
   Layout: formulario + aside
   ============================================================ */

.cp-ent-rform-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--space-4);
  align-items: start;
}

/* ============================================================
   Formulario
   ============================================================ */

.cp-ent-rform{
  display: grid;
  gap: var(--space-4);
}

/* ---- Sección numerada ---- */

.cp-ent-rform-section{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.cp-ent-rform-section__head{
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.cp-ent-rform-section__num{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
}

.cp-ent-rform-section__title{
  margin: 0 0 4px;
  font-size: var(--text-lg);
  font-weight: 700;
}

.cp-ent-rform-section__help{
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---- Grid de campos dentro de la sección ---- */

.cp-ent-rform-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  padding: var(--space-4);
}

.cp-ent-rform-field{
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cp-ent-rform-field--full{
  grid-column: 1 / -1;
}

/* ---- Label y texto de ayuda ---- */

.cp-ent-label{
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.cp-ent-label__required{
  color: var(--tone-danger-text);
  margin-left: 2px;
}

.cp-ent-label__optional{
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.cp-ent-rform-help{
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---- Textarea ---- */

.cp-ent-rform-textarea{
  resize: vertical;
  min-height: 100px;
  line-height: 1.55;
}

/* ---- Checkboxes ---- */

.cp-ent-rform-checks{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.cp-ent-rform-check{
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: var(--text-sm);
  transition: border-color .12s ease, background .12s ease;
}

.cp-ent-rform-check:hover{
  border-color: var(--tone-info-border);
  background: var(--tone-info-bg);
}

.cp-ent-rform-check input[type="checkbox"]{
  margin-top: 2px;
  flex: 0 0 auto;
}

/* ---- Acciones del formulario ---- */

.cp-ent-rform-actions{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-3);
}

/* ============================================================
   Aside de ayuda
   ============================================================ */

.cp-ent-rform-aside{
  position: sticky;
  top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ---- Tips ---- */

.cp-ent-rform-tip{
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.cp-ent-rform-tip__icon{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--tone-info-border);
}

.cp-ent-rform-tip__icon svg{
  width: 18px;
  height: 18px;
}

.cp-ent-rform-tip strong{
  display: block;
  margin-bottom: 4px;
  font-size: var(--text-sm);
  color: var(--text);
}

.cp-ent-rform-tip p{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- Pasos siguientes ---- */

.cp-ent-rform-steps{
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--tone-info-bg);
  border: 1px solid var(--tone-info-border);
}

.cp-ent-rform-steps .cp-kicker{
  margin-bottom: var(--space-2);
  color: var(--tone-info-text);
}

.cp-ent-rform-steps__list{
  margin: 0;
  padding-left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-ent-rform-steps__list li{
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.4;
}

/* ============================================================
   Utilidades
   ============================================================ */

.is-hidden{
  display: none !important;
}

.cp-sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 860px){
  .cp-ent-rform-layout{
    grid-template-columns: 1fr;
  }

  .cp-ent-rform-aside{
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cp-ent-rform-tip{
    flex: 1 1 240px;
  }

  .cp-ent-rform-steps{
    width: 100%;
  }
}

@media (max-width: 639px){
  .cp-ent-rform-grid{
    grid-template-columns: 1fr;
    padding: var(--space-3);
  }

  .cp-ent-rform-checks{
    grid-template-columns: 1fr;
  }

  .cp-ent-rform-actions{
    flex-direction: column-reverse;
  }

  .cp-ent-rform-actions .btn{
    width: 100%;
    justify-content: center;
  }

  .cp-ent-rform-aside{
    flex-direction: column;
  }
}