/* =====================================================================
   pages/conference/register.css — registration page only.
   3-step wizard stepper + form-shell + form fields + summary card.
   ===================================================================== */

/* Stepper */
.steps{
  display:flex;align-items:center;gap:8px;
  background:#fff;border:1px solid var(--sp-line);border-radius:14px;
  padding:14px 18px;margin-bottom:24px;flex-wrap:wrap;
  box-shadow:var(--sp-shadow);
}
.steps .step{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.steps .step .n{
  width:32px;height:32px;border-radius:50%;
  background:#f4f7f9;color:var(--sp-muted);
  display:inline-flex;align-items:center;justify-content:center;
  font-weight:800;font-size:14px;border:2px solid var(--sp-line);
}
.steps .step .lbl{font-size:13px;font-weight:700;color:var(--sp-muted);text-transform:uppercase;letter-spacing:1px}
.steps .step.active .n{background:var(--sp-primary);color:#fff;border-color:var(--sp-primary)}
.steps .step.active .lbl{color:var(--sp-secondary-d)}
.steps .step.done .n{background:var(--sp-mint);color:#fff;border-color:var(--sp-mint)}
.steps .ln{flex:1;height:2px;background:var(--sp-line);min-width:24px}

/* Form shell + headers */
.form-shell{background:#fff;border:1px solid var(--sp-line);border-radius:18px;padding:36px;box-shadow:var(--sp-shadow)}
.reg-title{font-size:24px;font-weight:800;color:var(--sp-secondary-d);margin-bottom:6px;letter-spacing:-.4px}
.reg-intro{font-size:14px;color:var(--sp-muted);line-height:1.6;margin-bottom:8px}
.reg-link{color:var(--sp-primary);font-weight:600}
.reg-step{margin-top:24px;padding-top:20px;border-top:2px solid var(--sp-line)}
.reg-step-title{font-size:20px;font-weight:800;color:var(--sp-secondary-d);margin:8px 0 6px;letter-spacing:-.3px}
.reg-step-desc{font-size:13.5px;color:var(--sp-muted);line-height:1.6;margin-bottom:18px}

/* Field primitives */
.fld{display:flex;flex-direction:column;gap:6px;margin-bottom:18px}
.fld label{font-size:13px;font-weight:700;color:var(--sp-secondary-d);display:flex;align-items:center;gap:6px}
.fld label .req{color:var(--sp-red)}
.req{color:var(--sp-red)}
.fld input[type=text],.fld input[type=email],.fld input[type=tel],.fld input[type=password],.fld input[type=date],.fld input[type=number],.fld input[type=url],.fld select,.fld textarea{
  width:100%;padding:12px 16px;border-radius:10px;
  border:1.5px solid var(--sp-line);background:#fff;
  font-size:14px;color:var(--sp-text);
  transition:.2s;font-family:inherit;
}
.fld input:focus,.fld select:focus,.fld textarea:focus{outline:none;border-color:var(--sp-primary);box-shadow:0 0 0 3px rgba(0,145,194,.15)}
.fld textarea{resize:vertical;min-height:120px;line-height:1.6}
.fld .help{font-size:12px;color:var(--sp-muted);line-height:1.5}
.fld.row{flex-direction:row;align-items:flex-start;gap:10px}
.fld.row input[type=checkbox],.fld.row input[type=radio]{flex-shrink:0;width:18px;height:18px;margin-top:2px;accent-color:var(--sp-primary)}
.fld.row label{font-weight:500;font-size:13.5px;line-height:1.55}
.fld-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.fld-grid .fld{margin-bottom:0}
.fld-group{padding:18px;border:1px dashed var(--sp-line);border-radius:12px;background:var(--sp-bg);margin-bottom:18px}
.fld-group h4{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:1.4px;color:var(--sp-primary);margin-bottom:14px}

/* Summary panel (step 3) */
.reg-summary{
  background:#f6fafa;border:1px solid var(--sp-line);
  border-radius:12px;padding:18px 20px;margin-bottom:18px;
}
.reg-summary-grid{
  display:grid;grid-template-columns:140px 1fr;gap:8px 18px;
  font-size:13.5px;line-height:1.65;
}
.reg-summary-grid strong{color:var(--sp-muted);font-weight:600}

/* Form actions row */
.form-actions{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;
  margin-top:22px;padding-top:22px;border-top:1px solid var(--sp-line);
}

@media (max-width:720px){
  .form-shell{padding:24px}
  .fld-grid{grid-template-columns:1fr}
  .reg-summary-grid{grid-template-columns:1fr}
}

/* Drupal wizard implementation. The static page hero now owns the headline;
   the wizard itself starts as the approved form + helper-sidebar layout. */
body.skin main.section > .container > .content-main:has(.wizard-container) {
  max-width: 1180px;
  margin: 0 auto;
}

body.skin main.section > .container > .content-main:has(.wizard-container) > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

body.skin main.section > .container > .content-main:has(.wizard-container) #block-pirt-main-content {
  grid-column: 1;
  min-width: 0;
}

body.skin main.section > .container > .content-main:has(.wizard-container) #block-pirt-register-helper-sidebar {
  grid-column: 2;
  min-width: 0;
}

body.skin #block-pirt-main-content .wizard-page.page-header {
  display: none !important;
}

body.skin #block-pirt-main-content .wizard-container {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  grid-column: 1;
}

body.skin .wizard-form {
  display: block;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 18px;
  padding: 34px 36px 36px;
  box-shadow: 0 10px 34px rgba(0,34,66,.07);
}

body.skin .wizard-form .wizard-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,34,66,.04);
}

body.skin .wizard-form .wizard-step {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: var(--sp-muted) !important;
}

body.skin .wizard-form .wizard-step:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  min-width: 30px;
  margin-left: 10px;
  background: var(--sp-line);
}

body.skin .wizard-form .wizard-step__num {
  width: 32px !important;
  height: 32px !important;
  border: 2px solid var(--sp-line);
  background: #f4f7f9 !important;
  color: var(--sp-muted) !important;
}

body.skin .wizard-form .wizard-step.active .wizard-step__num,
body.skin .wizard-form .wizard-step.done .wizard-step__num {
  background: var(--sp-primary) !important;
  border-color: var(--sp-primary) !important;
  color: #fff !important;
}

body.skin .wizard-form .wizard-step__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body.skin .register-form-head {
  margin: 0 0 24px;
  padding-top: 20px;
  border-top: 2px solid var(--sp-line);
}

body.skin .register-form-head .section-tag {
  margin-bottom: 12px;
}

body.skin .register-form-head h2 {
  margin: 0 0 7px;
  color: var(--sp-secondary-d);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.45px;
}

body.skin .register-form-head p {
  max-width: 680px;
  margin: 0;
  color: var(--sp-muted);
  font-size: 14px;
  line-height: 1.65;
}

body.skin .wizard-form #edit-category--wrapper {
  margin: 0;
  padding: 0;
  border: 0;
}

body.skin .wizard-form #edit-category--wrapper legend {
  margin-bottom: 14px;
}

body.skin .wizard-form #edit-category--wrapper .fieldset-legend {
  color: var(--sp-secondary-d);
  font-size: 18px;
  font-weight: 800;
}

body.skin .wizard-form #edit-category--wrapper .form-radios,
body.skin .wizard-form #edit-category {
  grid-template-columns: 1fr;
  gap: 10px;
}

body.skin .wizard-form .form-item-category label {
  min-height: auto;
  padding: 15px 48px 15px 18px !important;
  border-radius: 12px !important;
  line-height: 1.52;
}

body.skin .wizard-form .form-item-category label::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--sp-line);
  box-shadow: 0 0 0 4px #f4f7f9;
  display: none;
}

body.skin .wizard-form .form-item-category:has(input:checked) label {
  background: rgba(1,128,129,.065) !important;
  box-shadow: 0 0 0 2px rgba(1,128,129,.22) !important;
}

body.skin .wizard-form .form-actions {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 24px;
}

body.skin .wizard-form .wizard-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid rgba(0,145,194,.18);
  border-radius: 14px;
  background: #f6fbfc;
  color: var(--sp-secondary-d);
}

body.skin .wizard-form .wizard-total__label {
  color: #31566b;
  font-weight: 800;
}

body.skin .wizard-form .wizard-total__amount {
  color: var(--sp-secondary-d);
  font-size: 22px;
  font-weight: 900;
}

body.skin .wizard-form .wizard-review-table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  color: #1a3656;
}

body.skin .wizard-form .wizard-review-table th,
body.skin .wizard-form .wizard-review-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--sp-line);
  text-align: left;
  vertical-align: top;
}

body.skin .wizard-form .wizard-review-table th {
  color: var(--sp-secondary-d);
  background: #f6fbfc;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.skin .wizard-form .form-type-checkbox {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--sp-line);
  border-radius: 12px;
  background: #fff;
  color: #1a3656;
  line-height: 1.55;
}

body.skin .wizard-form .form-type-checkbox label,
body.skin .wizard-form .form-type-checkbox a {
  color: #1a3656;
}

body.skin .wizard-form .wizard-payment-note,
body.skin .wizard-confirmation__intro {
  color: #31566b;
  line-height: 1.65;
}

body.skin .wizard-form .btn.btn-outline,
body.skin .wizard-confirmation .btn.btn-outline {
  background: #fff;
  color: var(--sp-primary);
  border-color: var(--sp-primary);
}

body.skin .wizard-form .btn.btn-outline:hover,
body.skin .wizard-confirmation .btn.btn-outline:hover {
  background: rgba(0,145,194,.08);
  color: var(--sp-secondary-d);
}

body.skin main.section > .container > .content-main:has(.wizard-container) .register-helper-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 96px;
}

body.skin .register-helper-card {
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0,34,66,.05);
}

body.skin .register-helper-card h3 {
  margin: 0 0 12px;
  color: var(--sp-secondary-d);
  font-size: 15px;
  font-weight: 800;
}

body.skin .register-helper-card p,
body.skin .register-helper-card li {
  color: #2c4565;
  font-size: 13px;
  line-height: 1.65;
}

body.skin .register-helper-card__steps {
  margin: 0;
  padding-left: 20px;
}

body.skin .register-helper-card .cta-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--sp-primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  body.skin main.section > .container > .content-main:has(.wizard-container) > div {
    grid-template-columns: 1fr;
  }

  body.skin main.section > .container > .content-main:has(.wizard-container) #block-pirt-register-helper-sidebar,
  body.skin main.section > .container > .content-main:has(.wizard-container) .register-helper-sidebar {
    grid-column: 1;
    position: static;
  }
}

@media (max-width: 720px) {
  body.skin .wizard-form {
    padding: 24px 20px;
  }

  body.skin .wizard-form .wizard-total {
    display: grid;
  }

  body.skin .wizard-form .wizard-steps {
    flex-direction: column;
    align-items: stretch;
  }

  body.skin .wizard-form .wizard-step:not(:last-child)::after {
    display: none;
  }
}
