/**
 * Annual Pass - Create Account page
 * Matches the "myLawCLE Create Account" design mock.
 * Tokens / CTA language aligned with css/mylawcle-ui.css (shared package).
 */

/* -- Local tokens (same as mylawcle-ui) -- */
.ap-create {
  --primary: #F08200;
  --primary-hover: #F39B33;
  --arrow: #E67E22;
  --secondary: #002847;
  --text: #004376;
  --navy: #004376;
  --muted: #99B4C8;
  --subtle: #668EAD;
  --line: #CCD9E4;
  --line-deep: #1A5684;
  --surface: #F2F5F8;
  --white: #ffffff;
  --serif: "PPEditorialNew", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-arrow: cubic-bezier(0.6, 0.01, 0, 1);

  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  /* Override theme .wrapper spacing so the mock layout is edge-to-edge */
  padding: 0 !important;
  margin: 0;
  min-height: 0 !important;
  height: auto !important;
}

/* Theme sets #content { min-height: 100vh } - never put that id on this page's shell */
.ap-create #content,
.ap-create__shell {
  min-height: 0 !important;
  height: auto !important;
}

.ap-create *,
.ap-create *::before,
.ap-create *::after {
  box-sizing: border-box;
}

.ap-create a {
  color: inherit;
  text-decoration: none;
}

.ap-create a:hover {
  color: var(--primary);
}

/* -- Hero -- */
.ap-create__hero {
  background: var(--navy);
  padding: 40px 40px 64px;
  text-align: center;
}

.ap-create__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.ap-create__eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  flex-shrink: 0;
}

/* Sizes from Create Account mock; !important so theme/Elementor headings cannot override */
.ap-create__title,
.ap-create h1.ap-create__title {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(34px, 4.5vw, 54px) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.02em !important;
  margin: 0 auto !important;
  color: var(--white) !important;
  max-width: 760px;
}

.ap-create__lead {
  margin: 16px auto 0;
  max-width: 600px;
  font-size: 17px !important;
  line-height: 1.55 !important;
  color: var(--muted) !important;
  letter-spacing: -0.01em;
  font-weight: 400 !important;
}

.ap-create__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.ap-create__stat {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.ap-create__stat-num {
  font-family: var(--serif) !important;
  font-size: 30px !important;
  line-height: 1 !important;
  color: var(--white) !important;
  font-weight: 400 !important;
}

.ap-create__stat-num.is-accent {
  color: var(--primary);
}

.ap-create__stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

/* -- Shell / overlapping card -- */
.ap-create__shell {
  padding: 0 40px 0;
  margin-top: -48px; /* overlap hero without transform leftover space */
  position: relative;
  z-index: 1;
  background: transparent;
}

.ap-create__card {
  max-width: 940px;
  margin: 0 auto 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 22px 54px rgba(0, 40, 71, 0.18);
  display: grid;
  grid-template-columns: 1fr 300px;
}

/* -- Form column -- */
.ap-create__form-col {
  padding: 32px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

/* Beat theme h2 (2rem) and any Elementor heading rules */
.ap-create__form-heading,
.ap-create h2.ap-create__form-heading,
.ap-create .ap-create__form-col h2 {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  color: var(--text) !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
}

.ap-create__form-lead {
  margin: -8px 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--subtle);
}

.ap-create__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ap-create__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ap-create__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.ap-create__field-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtle);
}

.ap-create__input,
.ap-create__field .form-control,
.ap-create__field select.form-control,
.ap-create__field select.ap-create__input {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background-color: var(--white) !important;
  padding: 0 12px !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  line-height: 42px !important; /* 44px box - 2px border */
  color: var(--text) !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  margin: 0 !important;
  vertical-align: middle;
}

.ap-create__field select.form-control,
.ap-create__field select.ap-create__input {
  /* Keep same 44px box as text inputs; custom chevron only */
  background-color: var(--white) !important;
  background-image: linear-gradient(45deg, transparent 50%, var(--subtle) 50%),
    linear-gradient(135deg, var(--subtle) 50%, transparent 50%) !important;
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px) !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  padding-right: 32px !important;
}

.ap-create__input::placeholder,
.ap-create__field .form-control::placeholder {
  color: var(--muted);
}

.ap-create__input:focus,
.ap-create__field .form-control:focus {
  border-color: var(--subtle) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 142, 173, 0.16) !important;
}

.ap-create__password-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.ap-create__password-wrap .ap-create__input,
.ap-create__password-wrap .form-control {
  padding-right: 44px !important;
}

/* Icon control - not a <button>, so theme/Elementor button styles cannot take over */
.ap-create__pw-toggle,
.ap-create .password-toggle-icon,
.ap-create span.ap-create__pw-toggle {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--subtle) !important;
  cursor: pointer !important;
  opacity: 0.55;
  line-height: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.ap-create__pw-toggle:hover,
.ap-create .password-toggle-icon:hover,
.ap-create span.ap-create__pw-toggle:hover {
  opacity: 1;
  color: var(--text) !important;
  background: transparent !important;
}

.ap-create__pw-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.ap-create__check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--subtle);
  font-weight: 500;
  cursor: pointer;
}

.ap-create__check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
  flex-shrink: 0;
}

/* Compound orange CTA - shrink-to-content (do not stretch full form width) */
.ap-create__fields > .ap-create__submit,
.ap-create button.ap-create__submit,
.ap-create button.main-cta.ap-create__submit,
.ap-create .ap-create__submit.main-cta {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: max-content !important;
  min-width: 0 !important;
  align-self: center !important;
  margin-top: 8px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 4px 4px 4px 24px !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 21px !important;
  letter-spacing: -0.28px !important;
  color: var(--white) !important;
  background: var(--primary) !important;
  background-color: var(--primary) !important;
  border-radius: 999px !important;
  text-transform: none !important;
  border: 0 !important;
  cursor: pointer !important;
  transition: background 0.15s ease;
  box-shadow: none !important;
}

.ap-create__submit:hover,
.ap-create button.ap-create__submit:hover,
.ap-create button.main-cta.ap-create__submit:hover {
  background: var(--primary-hover) !important;
  background-color: var(--primary-hover) !important;
  color: var(--white) !important;
  width: auto !important;
}

.ap-create .custom-icon-window {
  width: 42px;
  height: 42px;
  background: var(--white);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  pointer-events: none;
  margin-left: 16px;
}

.ap-create .custom-arrow {
  position: relative;
  width: 100%;
  height: 100%;
}

.ap-create .custom-arrow::before,
.ap-create .custom-arrow::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  left: calc(50% - 8.5px);
  top: calc(50% - 8.5px);
  background-color: var(--arrow);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: transform 0.5s var(--ease-arrow);
}

.ap-create .custom-arrow::before {
  -webkit-mask-image: url("https://mylawcle.com/wp-content/uploads/2025/12/Icon-1-3.svg");
  mask-image: url("https://mylawcle.com/wp-content/uploads/2025/12/Icon-1-3.svg");
}

.ap-create .custom-arrow::after {
  -webkit-mask-image: url("https://mylawcle.com/wp-content/uploads/2025/12/Icon-2-3.svg");
  mask-image: url("https://mylawcle.com/wp-content/uploads/2025/12/Icon-2-3.svg");
  transform: translate(-150%, 150%);
}

.ap-create__submit:hover .custom-arrow::before,
.ap-create button.main-cta:hover .custom-arrow::before {
  transform: translate(150%, -150%);
}

.ap-create__submit:hover .custom-arrow::after,
.ap-create button.main-cta:hover .custom-arrow::after {
  transform: translate(0, 0);
}

.ap-create__auth-links {
  text-align: center;
  margin-top: 14px;
}

.ap-create__auth-links a {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ap-create__auth-links a:hover {
  color: var(--primary);
}

.ap-create__switch {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--text);
}

.ap-create__switch a {
  margin-left: 6px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.ap-create__switch a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.ap-create__privacy {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.ap-create__privacy a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Hide WC privacy block injected into form */
.ap-create .woocommerce-privacy-policy-text {
  display: none;
}

.ap-create .woocommerce-notices-wrapper,
.ap-create .woocommerce-error,
.ap-create .woocommerce-message,
.ap-create .woocommerce-info {
  margin-bottom: 16px;
  font-size: 14px;
}

/* -- Plan summary column -- */
.ap-create__plan {
  padding: 32px 26px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.ap-create__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.ap-create__price {
  font-family: var(--serif) !important;
  font-size: 38px !important;
  line-height: 1 !important;
  color: var(--text) !important;
  font-weight: 400 !important;
}

.ap-create__price-unit {
  font-size: 13px;
  color: var(--subtle);
}

.ap-create__price-note {
  font-size: 13px;
  color: var(--subtle);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.ap-create__benefits {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ap-create__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--subtle);
}

.ap-create__benefits svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.ap-create__plan-foot {
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* -- Support strip (sits just under the main card; site footer follows via get_footer) -- */
.ap-create__support {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 0;
  padding: 0;
}

.ap-create__support-inner {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 16px 40px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ap-create__support-copy {
  font-size: 14px;
  color: var(--subtle);
  margin: 0;
}

.ap-create__support-copy a {
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.ap-create__support-copy a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.ap-create__support-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.ap-create__support-link:hover {
  color: var(--primary);
}

/* -- Responsive -- */
@media (max-width: 900px) {
  .ap-create__shell {
    margin-top: -32px;
  }

  .ap-create__card {
    grid-template-columns: 1fr;
  }

  .ap-create__form-col {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ap-create__plan {
    min-height: auto;
  }

  .ap-create__plan-foot {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  .ap-create__hero {
    padding: 32px 20px 56px;
  }

  .ap-create__shell {
    padding: 0 16px 0;
  }

  .ap-create__support-inner {
    padding: 14px 20px 16px;
  }

  .ap-create__form-col {
    padding: 24px 20px;
  }

  .ap-create__plan {
    padding: 24px 20px;
  }

  .ap-create__row {
    grid-template-columns: 1fr;
  }

  .ap-create__stats {
    gap: 18px 28px;
  }

  .ap-create__support-inner {
    padding: 22px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .ap-create__submit .custom-icon-window {
    width: 40px;
    height: 40px;
    margin-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-create .custom-arrow::before,
  .ap-create .custom-arrow::after {
    transition: none;
  }
}
