/**
 * GoTalentia Registration Form — page styles for [gotalentia_registro].
 *
 * Page layout, not an overlay — see purchase-guard.css for the modal variant
 * used by Etapa 2. Color palette matches (brand green #16a34a).
 */

/*
 * The theme (MaxCoach) renders a ~220px decorative "page title bar" (hero
 * banner + breadcrumb) above the content on every page. That's fine for
 * blog/marketing pages but pushes a checkout-adjacent step needlessly far
 * down, so it's hidden here via the gt-registration-page body class (added
 * by GT_Registration::add_body_class()) rather than editing the theme.
 */
body.gt-registration-page .page-title-bar {
  display: none;
}

.gt-reg-wrap {
  max-width: 560px;
  margin: 24px auto;
  padding: 0 16px;
}

.gt-reg-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ------------------------------------------------------------------ */
/* Plan summary                                                        */
/* ------------------------------------------------------------------ */

.gt-reg-plan-summary {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.gt-reg-plan-label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.gt-reg-plan-name {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.gt-reg-plan-price {
  font-size: 18px;
  font-weight: 600;
  color: #16a34a;
}

/* ------------------------------------------------------------------ */
/* Form                                                                 */
/* ------------------------------------------------------------------ */

.gt-reg-row {
  margin-bottom: 18px;
}

.gt-reg-row-2col {
  display: flex;
  gap: 14px;
}

.gt-reg-row-2col > div {
  flex: 1;
}

.gt-reg-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.gt-reg-row input[type="text"],
.gt-reg-row input[type="email"] {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  color: #111827;
  background: #fff;
}

.gt-reg-row input[type="text"]:focus,
.gt-reg-row input[type="email"]:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.gt-reg-checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #374151;
  cursor: pointer;
}

.gt-reg-checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.gt-reg-required {
  color: #dc2626;
  font-weight: 700;
}

.gt-reg-checkbox-row a {
  color: #16a34a;
  text-decoration: underline;
}

.gt-reg-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 220px;
  margin: 12px auto 0;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #16a34a;
  border: 2px solid #16a34a;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.gt-reg-btn-primary:hover:not(:disabled),
.gt-reg-btn-primary:focus:not(:disabled) {
  background: #15803d;
  border-color: #15803d;
}

.gt-reg-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ------------------------------------------------------------------ */
/* Error message                                                       */
/* ------------------------------------------------------------------ */

.gt-reg-error-msg {
  color: #dc2626;
  font-size: 14px;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gt-reg-error-msg::before {
  content: "✕";
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 540px) {
  .gt-reg-wrap {
    margin: 24px auto;
  }

  .gt-reg-card {
    padding: 24px 20px;
    border-radius: 10px;
  }

  .gt-reg-row-2col {
    flex-direction: column;
    gap: 18px;
  }

  .gt-reg-plan-name {
    font-size: 20px;
  }
}
