@charset "utf-8";
/* ==========================================================================
   Page: Online registration (register.php)
   ========================================================================== */

/* Layout
   ----------------------------------------------------------------- */
.reg-section {
  padding: 56px 0 90px;
}

.reg-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Form card
   ----------------------------------------------------------------- */
.reg-card {
  background: #fff;
  border: 1px solid #eef0f6;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 34px;
}

.reg-card__title {
  font-size: 24px;
  margin-bottom: 6px;
}

.reg-card__lead {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 26px;
}

/* Labels + controls
   ----------------------------------------------------------------- */
.req {
  color: var(--red);
}

.form-optional {
  font-weight: 500;
  color: #9498a8;
  font-size: 13px;
}

.form-row {
  margin-bottom: 20px;
  border: 0;
  padding: 0;
  min-width: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid-2 .form-row {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 700;
  color: var(--heading);
  font-size: 14px;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e1e5f0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--heading);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder {
  color: #b3b8c8;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(39, 89, 184, 0.14);
}

textarea.form-control {
  min-height: 118px;
  resize: vertical;
}

select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B5F73' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-row.is-invalid .form-control {
  border-color: var(--red);
}

.form-row.is-invalid .field__error {
  display: block;
}

/* Radio pills
   ----------------------------------------------------------------- */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-chip > span {
  display: inline-block;
  border: 1.5px solid #e1e5f0;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.radio-chip:hover > span {
  border-color: #c5ccdf;
}

.radio-chip input:checked + span {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

.radio-chip input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(39, 89, 184, 0.18);
}

/* Consent checkbox
   ----------------------------------------------------------------- */
.check-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.check-input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  flex-shrink: 0;
  cursor: pointer;
}

.check-label {
  font-size: 14px;
  color: var(--body);
  cursor: pointer;
}

/* Errors
   ----------------------------------------------------------------- */
.field__error {
  display: none;
  color: var(--red);
  font-size: 13px;
  margin-top: 7px;
}

.field__error--consent {
  margin-top: 0;
  margin-bottom: 16px;
}

#consentRow.is-invalid ~ .field__error--consent {
  display: block;
}

/* Honeypot
   ----------------------------------------------------------------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Actions
   ----------------------------------------------------------------- */
.form-actions {
  margin-top: 8px;
}

.form-privacy {
  font-size: 12.5px;
  color: #9498a8;
  text-align: center;
  margin: 12px 0 0;
}

/* Success panel
   ----------------------------------------------------------------- */
.reg-success {
  display: none;
  text-align: center;
  padding: 20px 10px;
}

.reg-success.is-visible {
  display: block;
}

.reg-success__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 34px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reg-success__title {
  font-size: 24px;
  margin-bottom: 10px;
}

.reg-success__text {
  max-width: 460px;
  margin: 0 auto 24px;
  color: var(--body);
}

.reg-success__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Aside
   ----------------------------------------------------------------- */
.reg-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reg-aside__card {
  background: var(--bg-soft);
  border: 1px solid #eef0f6;
  border-radius: var(--radius-md);
  padding: 24px;
}

.reg-aside__title {
  font-size: 18px;
  margin-bottom: 18px;
}

.reg-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reg-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.reg-steps li:last-child {
  margin-bottom: 0;
}

.reg-steps__num {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reg-steps__text {
  font-size: 14px;
  color: var(--body);
}

.reg-steps__text strong {
  color: var(--heading);
}

.reg-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--blue-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.reg-note__badge {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.reg-note p {
  margin: 0;
  font-size: 14px;
  color: #3f4359;
}

.reg-note strong {
  color: var(--heading);
}

.reg-help {
  border: 1px dashed #d5dcf2;
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.reg-help__label {
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.reg-help p {
  margin: 0 0 4px;
  font-size: 14px;
}

.reg-help a {
  color: var(--blue);
  font-weight: 600;
}

.reg-help a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive (max-width: 860px)
   ========================================================================== */
@media (max-width: 860px) {
  /* Layout
     ----------------------------------------------------------------- */
  .reg-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==========================================================================
   Responsive (max-width: 640px)
   ========================================================================== */
@media (max-width: 640px) {
  /* Form card
     ----------------------------------------------------------------- */
  .reg-card {
    padding: 22px;
  }

  /* Labels + controls
     ----------------------------------------------------------------- */
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Success panel
     ----------------------------------------------------------------- */
  .reg-success__actions {
    flex-direction: column;
  }

  .reg-success__actions .btn {
    width: 100%;
  }
}

/* base.css compatibility: keep browser-default fieldset / legend spacing
   ----------------------------------------------------------------- */
fieldset.form-row {
  margin-left: 2px;
  margin-right: 2px;
}

legend.form-label {
  padding-left: 2px;
  padding-right: 2px;
}
