/**
 * IMDTEC EDU — Registration Hub
 * Scope:
 *  - /inscription/ (training-course-registration.php)
 *  - /candidature/ (educational-course-registration.php)
 *
 * Goal: keep UI aligned with the Services Hub hero/cards layout while
 * staying template-agnostic (shared, reusable CSS).
 */

:root{
  --imd-reg-blue: #003192;
  --imd-reg-arrow-bg: #f2f5fc;
  --imd-reg-card-radius: 24px;
  --imd-reg-max-width: 1320px;
  --imd-reg-border: #e5e7eb;
}

/* Ensure form controls inherit the same typography as the page */
.imd-home input,
.imd-home button,
.imd-home select,
.imd-home textarea{
  font-family: inherit;
  font-weight: inherit;
}

.imd-home{ background: #fff; }
/* Hero */
.imd-reg-page .imd-hero--edu{
  background: var(--imd-reg-blue);
  color: #fff;
  padding: 40px 0 120px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

/* Decorative ellipse (same asset used by the Services Hub) */
.imd-reg-page .imd-hero--edu::before{
  content: "";
  position: absolute;
  top: 10%;
  right: -18%;
  width: 55rem;
  height: 55rem;
  background-image: url('../images-edu/ellipse.svg');
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 1;
}

.imd-reg-page .imd-hero__grid--edu{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.imd-reg-page .imd-hero__copy{
  width: 100%;
  max-width: 820px;
  z-index: 5;
  padding-top: 10px;
}

.imd-reg-page .imd-hero__eyebrow{
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: .9;
}

.imd-reg-page .imd-hero__title{
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 12px 0 0;
  color: #ffffff !important;
}

.imd-reg-page .imd-hero__sub{
  margin-top: 14px;
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 72ch;
}

.imd-reg-page .imd-reg-meta{
  margin-top: 18px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.imd-reg-page .imd-reg-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}

.imd-reg-page .imd-reg-pill a{
  color: #fff;
  text-decoration: underline;
}

/* Decision Cards */
.imd-reg-page .imd-hero-cards{
  position: relative;
  z-index: 10;
  margin-top: -70px;
  padding-bottom: 64px;
}

.imd-reg-page .imd-hero-cards__wrap{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.imd-reg-page .imd-hero-card{
  background: #fff;
  border-radius: var(--imd-reg-card-radius);
  padding: 30px 25px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.10);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition: transform .25s ease;
}

.imd-reg-page .imd-hero-card:hover{ transform: translateY(-4px); }

.imd-reg-page .imd-hero-card__icon-corner{
  position: absolute;
  top: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
}

.imd-reg-page .imd-hero-card__title{
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0F1114;
  padding-right: 70px;
}

.imd-reg-page .imd-reg-card__desc{
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.imd-reg-page .imd-hero-card__footer{
  margin-top: auto;
  padding-top: 18px;
  text-align: left;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.imd-reg-page .imd-hero-card__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--imd-reg-blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  transition: filter .2s ease;
}

.imd-reg-page .imd-hero-card__btn:hover{ filter: brightness(0.92); }

.imd-reg-page .imd-hero-card__btn--ghost{
  background: #fff;
  color: var(--imd-reg-blue);
  border: 2px solid rgba(0,49,146,.18);
}

.imd-reg-page .imd-hero-card__btn--ghost:hover{ filter: none; background: rgba(0,49,146,.06); }

/* Responsive */
@media (max-width: 991px){
  .imd-reg-page .imd-hero--edu::before{ display:none; }
}

@media (max-width: 768px){
  .imd-reg-page .imd-hero-cards__wrap{ grid-template-columns: 1fr; }
  .imd-reg-page .imd-hero__grid--edu{ flex-direction: column; }
  .imd-reg-page .imd-hero-cards{ margin-top: -60px; }
}


/* ============================================================
 * Registration Wizard (Cegos-like) — /inscription/ (Step 1)
 * Scope: .imd-reg-wizard (does not affect other templates)
 * ============================================================ */

:root{
  --imd-wiz-header-bg: #F2F5FC;
  --imd-wiz-header-fg: #003192;
  --imd-wiz-action-bg: #003192;
  --imd-wiz-action-fg: #ffffff;
  --imd-wiz-accent: #0a6a73;
  --imd-wiz-card-green: #0b4f4a;
  --imd-wiz-border: #e5e7eb;
}

body.imd-modal-open{ overflow:hidden; }

.imd-reg-wizard{
  background:#f5f6f8;
  min-height:70vh;
}

/* Top header */
.imd-reg-wizard .imd-wizard-hero{
  background: var(--imd-wiz-header-bg);
  color: var(--imd-wiz-header-fg);
  padding: 38px 0 26px;
}

.imd-reg-wizard .imd-wizard-title{
  margin:0 0 16px;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 900;
  letter-spacing: .01em;
}

/* Steps */
.imd-reg-wizard .imd-wizard-steps{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

.imd-reg-wizard .imd-step{
  display:flex;
  align-items:center;
  gap: 10px;
}

.imd-reg-wizard .imd-step__dot{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--imd-wiz-accent);
  color:#fff;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}

.imd-reg-wizard .imd-step.is-active .imd-step__dot{
  background:#fff;
  color: var(--imd-wiz-accent);
  box-shadow: inset 0 0 0 3px var(--imd-wiz-accent);
}

.imd-reg-wizard .imd-step__label{
  font-weight: 900;
  font-size: 1rem;
}

/* Body card */
.imd-reg-wizard .imd-wizard-body{ padding: 26px 0 64px; }

.imd-reg-wizard .imd-wizard-card{
  background:#fff;
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
  border: 1px solid rgba(15,17,20,.05);
}

.imd-reg-wizard .imd-wizard-card__head{
  padding: 20px 22px 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  border-bottom: 1px solid var(--imd-wiz-border);
}

.imd-reg-wizard .imd-wizard-card__head-left{ min-width: 0; }

.imd-reg-wizard .imd-wizard-breadcrumb{
  font-size: .9rem;
  opacity: .86;
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}

.imd-reg-wizard .imd-wizard-breadcrumb a{ color:#111827; text-decoration: underline; }
.imd-reg-wizard .imd-wizard-breadcrumb span{ color:#111827; opacity:.75; }

.imd-reg-wizard .imd-wizard-card__title{
  margin: 10px 0 10px;
  font-size: 1.55rem;
  font-weight: 900;
  color:#0f1114;
}

.imd-reg-wizard .imd-wizard-summary{ margin-top: 2px; }
.imd-reg-wizard .imd-wizard-summary__line{ line-height: 1.45; }
.imd-reg-wizard .imd-wizard-muted{ color:#64748b; }
.imd-reg-wizard .imd-wizard-link{ color:#0f172a; font-weight: 800; text-decoration: underline; display:inline-block; margin-top: 8px; }

.imd-reg-wizard .imd-wizard-card__head-right{
  text-align:right;
  flex: 0 0 auto;
  min-width: 180px;
}

.imd-reg-wizard .imd-wizard-price{
  font-size: 1.6rem;
  font-weight: 900;
  color:#0f1114;
  white-space: nowrap;
}

/* Card body sections */
.imd-reg-wizard .imd-wizard-card__body{ padding: 18px 22px 22px; }

.imd-reg-wizard .imd-wizard-section-title{
  font-weight: 900;
  margin: 0 0 12px;
  font-size: 1.1rem;
  color:#0f1114;
}

.imd-reg-wizard .imd-wizard-empty{
  padding: 14px 16px;
  border: 1px dashed rgba(15,17,20,.18);
  border-radius: 14px;
  background: #fafafa;
}

.imd-reg-wizard .imd-wizard-note{
  margin-top: 10px;
  font-size: .92rem;
}

/* Sessions list */
.imd-reg-wizard .imd-session-list{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.imd-reg-wizard .imd-session-option{
  display:block;
  cursor:pointer;
}

.imd-reg-wizard .imd-session-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.imd-reg-wizard .imd-session-option__card{
  border: 1px solid rgba(15,17,20,.12);
  border-radius: 16px;
  padding: 16px 16px 14px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
  background: #fff;
}

.imd-reg-wizard .imd-session-option:hover .imd-session-option__card{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
}

.imd-reg-wizard .imd-session-option input:checked + .imd-session-option__card{
  border-color: rgba(10,106,115,.75);
  box-shadow: 0 0 0 4px rgba(10,106,115,.14);
}

.imd-reg-wizard .imd-session-option__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.imd-reg-wizard .imd-session-option__name{
  font-weight: 900;
  color:#0f1114;
}

.imd-reg-wizard .imd-session-option__tag{
  font-weight: 900;
  font-size: .9rem;
  color:#fff;
  background: var(--imd-wiz-card-green);
  padding: 8px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.imd-reg-wizard .imd-session-option__meta{
  margin-top: 10px;
  color:#334155;
}

/* Promo block */
.imd-reg-wizard .imd-promo-block{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--imd-wiz-border);
}

.imd-reg-wizard .imd-promo-block__title{
  font-weight: 900;
  color:#0f1114;
  font-size: 1.1rem;
}

.imd-reg-wizard .imd-promo-block__desc{
  margin-top: 6px;
  color:#475569;
}

.imd-reg-wizard .imd-promo-block__row{
  margin-top: 12px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
}

.imd-reg-wizard .imd-promo-input{
  flex: 1 1 320px;
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,17,20,.15);
  background:#fff;
  outline: none;
}

.imd-reg-wizard .imd-promo-input:focus{
  border-color: rgba(10,106,115,.70);
  box-shadow: 0 0 0 4px rgba(10,106,115,.12);
}

.imd-reg-wizard .imd-promo-btn{
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--imd-wiz-action-bg);
  color:#fff;
  border: none;
  font-weight: 900;
  cursor:pointer;
}

.imd-reg-wizard .imd-promo-btn:hover{ filter: brightness(1.08); }

.imd-reg-wizard .imd-promo-block__hint{
  margin-top: 10px;
  font-size: .92rem;
}

/* Step actions */
.imd-reg-wizard .imd-wizard-actions{
  margin-top: 18px;
  display:flex;
  justify-content:flex-end;
}

.imd-reg-wizard .imd-step2-btn{
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--imd-wiz-action-bg);
  color: var(--imd-wiz-action-fg);
  border:none;
  font-weight: 900;
  cursor:pointer;
  min-width: 220px;
}

.imd-reg-wizard .imd-step2-btn:disabled{
  opacity: .55;
  cursor:not-allowed;
}

/* Modal */
.imd-reg-wizard .imd-auth-modal{
  position:fixed;
  inset:0;
  z-index: 9999;
  display:flex;
  align-items:center;
  justify-content:center;
}

.imd-reg-wizard .imd-auth-modal[hidden]{ display:none; }

.imd-reg-wizard .imd-auth-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

.imd-reg-wizard .imd-auth-modal__dialog{
  position:relative;
  width: min(980px, calc(100% - 32px));
  background:#fff;
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.imd-reg-wizard .imd-auth-modal__close{
  position:absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15,17,20,.12);
  background:#fff;
  font-size: 22px;
  line-height: 1;
  cursor:pointer;
}

.imd-reg-wizard .imd-auth-modal__cols{
  display:grid;
  grid-template-columns: 1fr 1fr;
}

.imd-reg-wizard .imd-auth-modal__col{
  padding: 28px 26px;
}

.imd-reg-wizard .imd-auth-modal__col--left{
  background:#fff;
  border-right: 1px solid var(--imd-wiz-border);
}

.imd-reg-wizard .imd-auth-modal__title{
  margin: 0 0 12px;
  font-size: 1.6rem;
  font-weight: 900;
  color:#0f1114;
}

.imd-reg-wizard .imd-auth-modal__subtitle{
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 900;
  color:#0f1114;
}

.imd-reg-wizard .imd-auth-modal__muted{
  color:#475569;
  line-height: 1.55;
}

.imd-reg-wizard .imd-auth-modal__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration:none;
  margin-top: 14px;
}

.imd-reg-wizard .imd-auth-modal__btn--primary{
  background: var(--imd-wiz-action-bg);
  color: var(--imd-wiz-action-fg);
}

.imd-reg-wizard .imd-auth-modal__btn--ghost{
  background: #fff;
  color: var(--imd-wiz-action-bg);
  border: 2px solid rgba(42,11,11,.18);
}

.imd-reg-wizard .imd-auth-modal__btn--ghost:hover{
  background: rgba(42,11,11,.06);
}

.imd-reg-wizard .imd-auth-modal__link{
  display:block;
  text-align:center;
  margin-top: 10px;
  font-weight: 900;
  color: var(--imd-wiz-action-bg);
  text-decoration: underline;
}

.imd-reg-wizard .imd-auth-modal__list{
  margin: 12px 0 0;
  padding-left: 18px;
  color:#0f1114;
}

.imd-reg-wizard .imd-auth-modal__list li{
  margin: 10px 0;
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 860px){
  .imd-reg-wizard .imd-auth-modal__cols{ grid-template-columns: 1fr; }
  .imd-reg-wizard .imd-auth-modal__col--left{ border-right: none; border-bottom: 1px solid var(--imd-wiz-border); }
  .imd-reg-wizard .imd-wizard-card__head{ flex-direction: column; }
  .imd-reg-wizard .imd-wizard-card__head-right{ text-align:left; min-width: 0; }
  .imd-reg-wizard .imd-wizard-actions{ justify-content: stretch; }
  .imd-reg-wizard .imd-step2-btn{ width: 100%; }
}

/* ============================================================
 * Contact Forms (INTER / INTRA)
 * ============================================================ */

.imd-reg-wizard .imd-alert{
  border: 1px solid var(--imd-wiz-border);
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.imd-reg-wizard .imd-alert--success{
  border-color: rgba(29,120,73,.30);
  background: rgba(29,120,73,.08);
}

.imd-reg-wizard .imd-alert--error{
  border-color: rgba(176,0,32,.30);
  background: rgba(176,0,32,.06);
}

.imd-reg-wizard .imd-contact-form{
  margin-top: 18px;
}

.imd-reg-wizard .imd-form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.imd-reg-wizard .imd-field{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.imd-reg-wizard .imd-field label{
  font-weight: 900;
  color: #0f1114;
}

.imd-reg-wizard .imd-field input,
.imd-reg-wizard .imd-field textarea,
.imd-reg-wizard .imd-field select{
  width:100%;
  padding: 12px 14px;
  border: 1px solid var(--imd-wiz-border);
  border-radius: 12px;
  background: #fff;
  color:#0f1114;
  font-size: 14px;
}

.imd-reg-wizard .imd-field textarea{
  resize: vertical;
  min-height: 120px;
}

.imd-reg-wizard .imd-field input:focus,
.imd-reg-wizard .imd-field textarea:focus,
.imd-reg-wizard .imd-field select:focus{
  outline:none;
  border-color: rgba(42,11,11,.45);
  box-shadow: 0 0 0 3px rgba(42,11,11,.10);
}

.imd-reg-wizard .imd-req{
  color: #b00020;
  font-weight: 900;
}

.imd-reg-wizard .imd-field--full{
  grid-column: 1 / -1;
}

.imd-reg-wizard .imd-form-actions{
  margin-top: 18px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}

.imd-reg-wizard .imd-form-submit{
  width: 100%;
  max-width: 360px;
}

@media (max-width: 860px){
  .imd-reg-wizard .imd-form-grid{ grid-template-columns: 1fr; }
  .imd-reg-wizard .imd-form-actions{ align-items: stretch; }
  .imd-reg-wizard .imd-form-submit{ max-width: 100%; }
}

/* ============================================================
 * Cegos-like Course Card Head (Blue title bar)
 * ============================================================ */
.imd-reg-wizard .imd-wizard-card__head{
  background: var(--imd-reg-blue);
  color: #fff;
  border-bottom: none;
}

.imd-reg-wizard .imd-wizard-card__head a,
.imd-reg-wizard .imd-wizard-card__head .imd-wizard-link{
  color:#fff;
}

.imd-reg-wizard .imd-wizard-card__title{
  color:#fff;
}

.imd-reg-wizard .imd-wizard-breadcrumb a{
  color:#fff;
  opacity: .92;
}

.imd-reg-wizard .imd-wizard-breadcrumb span{
  color:#fff;
  opacity: .65;
}

.imd-reg-wizard .imd-wizard-price{
  color:#fff;
}

.imd-reg-wizard .imd-wizard-card__sub{
  color:#fff;
  opacity: .9;
}

/* ============================================================
 * Enterprise registration layout (/inscription-entreprises/)
 * ============================================================ */
.imd-reg-wizard .imd-enterprise-grid{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items:start;
}

@media (max-width: 980px){
  .imd-reg-wizard .imd-enterprise-grid{ grid-template-columns: 1fr; }
}

.imd-reg-wizard .imd-contact-stack{
  display:flex;
  flex-direction:column;
  gap: 18px;
}

.imd-reg-wizard .imd-contact-card{
  background:#fff;
  border: 1px solid rgba(15,17,20,.08);
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
}

.imd-reg-wizard .imd-contact-card__title{
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 1.05rem;
  color:#0f1114;
}

.imd-reg-wizard .imd-contact-card__text{
  margin:0;
  color:#2b2f36;
  line-height: 1.55;
}

.imd-reg-wizard .imd-contact-card__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid rgba(42,11,11,.20);
  color: var(--imd-wiz-action-bg);
  font-weight: 900;
  text-decoration:none;
}

.imd-reg-wizard .imd-contact-card__btn:hover{
  background: rgba(42,11,11,.06);
}

.imd-reg-wizard .imd-account-box{
  background:#fff;
  border: 1px solid rgba(15,17,20,.10);
  border-radius: 16px;
  padding: 16px 16px;
  margin-top: 18px;
}

.imd-reg-wizard .imd-account-box__title{
  margin:0 0 6px;
  font-weight: 900;
  color:#0f1114;
}

.imd-reg-wizard .imd-account-box__muted{
  margin:0 0 12px;
  color:#4b5563;
}

.imd-reg-wizard .imd-account-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

.imd-reg-wizard .imd-account-actions a{
  text-decoration:none;
}

.imd-reg-wizard .imd-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
}

.imd-reg-wizard .imd-cta--primary{
  background: var(--imd-wiz-action-bg);
  color:#fff;
}

.imd-reg-wizard .imd-cta--ghost{
  background:#fff;
  color: var(--imd-wiz-action-bg);
  border: 2px solid rgba(42,11,11,.18);
}

.imd-reg-wizard .imd-cta--ghost:hover{
  background: rgba(42,11,11,.06);
}

/* Ensure hero typography readable on light header */
.imd-reg-wizard .imd-wizard-title{
  color: var(--imd-wiz-header-fg);
}

.imd-reg-wizard .imd-wizard-steps{ color: var(--imd-wiz-header-fg); }

/* Alerts */
.imd-reg-wizard .imd-wizard-alert{
  background:#fff;
  border: 1px dashed rgba(15,17,20,.24);
  border-radius: 14px;
  padding: 14px 14px;
  margin: 12px 0;
}

.imd-reg-wizard .imd-wizard-alert--danger{
  border-style: solid;
  border-color: rgba(220,38,38,.35);
  background: rgba(220,38,38,.06);
}
