/* ============================================================
   REGISTRATION & THANK YOU STYLES — Happy Blue Lessons
   ============================================================ */

/* Reset Astra parent margins on #primary container */
#primary.hbl-register-page {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ── 1. HERO SECTION ── */
.hbl-register-hero {
  position: relative;
  padding: 6rem 0 3.5rem;
  background: radial-gradient(circle at 10% 20%, var(--hbl-blue-50) 0%, #ffffff 90%);
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.hbl-register-hero__grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(37, 99, 235, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}

.hbl-register-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--hbl-space-lg);
}

.hbl-register-hero__title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--hbl-blue-900);
  font-weight: 800;
  margin-bottom: var(--hbl-space-sm);
  letter-spacing: -0.02em;
}

.hbl-register-hero__subtitle {
  font-size: 1.0625rem;
  color: var(--hbl-gray-600);
  line-height: 1.6;
}

/* ── 2. FORM LAYOUT ── */
.hbl-register-form-sec {
  padding: var(--hbl-space-3xl) 0;
  background-color: var(--hbl-gray-50);
}

.hbl-register-form-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--hbl-white);
  border: 1px solid var(--hbl-gray-200);
  border-radius: var(--hbl-radius-xl);
  padding: var(--hbl-space-2xl) var(--hbl-space-xl);
  box-shadow: var(--hbl-shadow-xl), 0 10px 40px rgba(10, 30, 61, 0.04);
}

@media (min-width: 640px) {
  .hbl-register-form-container {
    padding: var(--hbl-space-3xl) var(--hbl-space-2xl);
  }
}

.hbl-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hbl-space-lg);
}

@media (min-width: 640px) {
  .hbl-form-grid--two-col {
    grid-template-columns: 1fr 1fr;
  }
  .hbl-form-col-span-2 {
    grid-column: 1 / -1;
  }
}

/* ── 3. FORM CONTROLS ── */
.hbl-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hbl-form-label {
  font-family: var(--hbl-font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hbl-blue-900);
}

.hbl-form-label span {
  color: var(--hbl-error);
  margin-left: 2px;
}

.hbl-form-input,
.hbl-form-select,
.hbl-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--hbl-gray-200);
  border-radius: var(--hbl-radius-md);
  font-family: var(--hbl-font-body);
  font-size: 0.9375rem;
  color: var(--hbl-gray-800);
  background: var(--hbl-gray-50);
  transition: all var(--hbl-transition-base);
}

.hbl-form-input:focus,
.hbl-form-select:focus,
.hbl-form-textarea:focus {
  border-color: var(--hbl-blue-500);
  background: var(--hbl-white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* Custom Select styling */
.hbl-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234b5563' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
  height: 48px !important;
  line-height: normal !important;
}

/* Segmented selector styling */
.hbl-format-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hbl-space-sm);
}

@media (min-width: 480px) {
  .hbl-format-selector {
    grid-template-columns: 1fr 1fr;
  }
}

.hbl-format-option input[type="radio"] {
  display: none;
}

.hbl-format-box {
  display: block;
  padding: 14px 20px;
  border: 1.5px solid var(--hbl-gray-200);
  border-radius: var(--hbl-radius-md);
  background: var(--hbl-gray-50);
  color: var(--hbl-gray-700);
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--hbl-transition-base);
}

.hbl-format-option input[type="radio"]:checked + .hbl-format-box {
  border-color: var(--hbl-blue-500);
  background: var(--hbl-blue-50);
  color: var(--hbl-blue-700);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* GDPR checkbox */
.hbl-gdpr-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: var(--hbl-space-sm);
}

.hbl-gdpr-checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--hbl-gray-300);
  border-radius: 4px;
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--hbl-blue-500);
}

.hbl-gdpr-text {
  font-size: 0.8125rem;
  color: var(--hbl-gray-600);
  line-height: 1.5;
  margin: 0;
  user-select: none;
}

.hbl-gdpr-text a {
  color: var(--hbl-blue-500);
  font-weight: 600;
  text-decoration: underline;
}

.hbl-gdpr-text a:hover {
  color: var(--hbl-blue-700);
}

/* ── 4. THANK YOU PAGE SPECIFICS ── */
.hbl-thanks-sec {
  padding: 8rem 0;
  background-color: var(--hbl-white);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hbl-thanks-card {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  padding: var(--hbl-space-3xl) var(--hbl-space-xl);
  border: 1px solid var(--hbl-gray-200);
  border-radius: var(--hbl-radius-xl);
  box-shadow: var(--hbl-shadow-xl);
  background: var(--hbl-white);
}

.hbl-thanks-icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--hbl-space-xl);
}

/* Checkmark anim */
@keyframes checkmark-stroke {
  100% { stroke-dashoffset: 0; }
}

.circle-check {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: checkmark-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.path-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkmark-stroke 0.5s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

.hbl-thanks-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--hbl-blue-900);
  font-weight: 800;
  margin-bottom: var(--hbl-space-md);
}

.hbl-thanks-desc {
  font-size: 1.0625rem;
  color: var(--hbl-gray-600);
  line-height: 1.6;
  margin-bottom: var(--hbl-space-2xl);
}

/* ── 5. HOW IT WORKS STEPS ── */
.hbl-steps-section {
  padding: var(--hbl-space-xl) 0 0;
  background-color: var(--hbl-gray-50);
}

.hbl-steps-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--hbl-space-lg);
}

.hbl-steps-title {
  font-size: 1.75rem;
  color: var(--hbl-blue-900);
  font-weight: 850;
  margin-bottom: var(--hbl-space-xl);
  letter-spacing: -0.01em;
}

.hbl-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hbl-space-md);
}

@media (min-width: 640px) {
  .hbl-steps-grid {
    grid-template-columns: repeat(var(--steps-count, 4), 1fr);
  }
}

.hbl-step-card {
  background: var(--hbl-white);
  border: 1px solid var(--hbl-gray-150, #eef2f6);
  border-radius: var(--hbl-radius-lg);
  padding: var(--hbl-space-lg) var(--hbl-space-md);
  position: relative;
  text-align: left;
  transition: transform var(--hbl-transition-base), box-shadow var(--hbl-transition-base), border-color var(--hbl-transition-base);
  box-shadow: 0 4px 12px rgba(10, 30, 61, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 110px;
}

.hbl-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hbl-shadow-lg);
  border-color: var(--hbl-blue-200);
}

.hbl-step-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--hbl-blue-500);
  opacity: 0.15;
  position: absolute;
  top: 15px;
  right: 15px;
  line-height: 1;
}

.hbl-step-text {
  font-size: 0.9375rem;
  color: var(--hbl-blue-900);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  padding-right: 10px;
}

