.txc-membership-hero {
  box-sizing: border-box;
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  background: linear-gradient(135deg, #10233f 0%, #1f5f99 100%);
  color: #ffffff;
}

.txc-membership-hero h1,
.txc-membership-hero p {
  color: #ffffff;
}

.txc-membership-page {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.txc-membership-page .txc-section {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.txc-membership-page .txc-section + .txc-section {
  border-top: 1px solid rgba(16, 35, 63, 0.12);
}

.txc-membership-callout {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid #d72638;
  border-radius: 0 10px 10px 0;
  background: #f4f7fb;
}

.txc-membership-callout p {
  margin: 0;
}

.txc-membership-category-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.txc-membership-category-grid > .wp-block-column {
  display: flex;
}

.txc-membership-category-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.5rem;
  border: 1px solid rgba(16, 35, 63, 0.14);
  border-top: 4px solid #1f5f99;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 35, 63, 0.08);
}

.txc-membership-category-card h3 {
  margin-top: 0;
}

.txc-membership-price {
  margin: 0 0 1rem;
  color: #d72638;
  font-size: 1.3rem;
  font-weight: 700;
}

.txc-membership-steps {
  padding-left: 1.4rem;
}

.txc-membership-steps li {
  margin-bottom: 0.8rem;
  padding-left: 0.3rem;
}

.txc-membership-document-card {
  margin-top: 2rem;
  padding: 1.75rem;
  border: 1px solid rgba(16, 35, 63, 0.14);
  border-radius: 14px;
  background: #f4f7fb;
}

.txc-membership-document-card h3 {
  margin-top: 0;
}

.txc-membership-download {
  margin-top: 1.25rem;
}

.txc-membership-form {
  margin-top: 1.75rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(16, 35, 63, 0.14);
  border-radius: 14px;
  background: #f4f7fb;
}

.txc-membership-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.txc-membership-field {
  display: grid;
  gap: 0.45rem;
}

.txc-membership-field--full {
  grid-column: 1 / -1;
}

.txc-membership-field label,
.txc-membership-consent {
  color: #10233f;
  font-weight: 700;
}

.txc-membership-field input,
.txc-membership-field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(16, 35, 63, 0.35);
  border-radius: 8px;
  background: #ffffff;
  color: #10233f;
  font: inherit;
}

.txc-membership-field input:focus-visible,
.txc-membership-field textarea:focus-visible,
.txc-membership-consent input:focus-visible,
.txc-membership-submit:focus-visible {
  outline: 3px solid #1f5f99;
  outline-offset: 3px;
}

.txc-membership-help {
  margin: 0;
  color: #465466;
  font-size: 0.92rem;
}

.txc-membership-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.txc-membership-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-block: 1.5rem;
  line-height: 1.5;
}

.txc-membership-consent input {
  flex: 0 0 auto;
  margin-top: 0.25rem;
}

.txc-membership-submit {
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #10233f;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.txc-membership-submit:hover {
  background: #1f5f99;
}

.txc-membership-notice {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 5px solid;
  border-radius: 0 8px 8px 0;
}

.txc-membership-notice p {
  margin: 0;
}

.txc-membership-notice--success {
  border-left-color: #16794f;
  background: #edf8f3;
  color: #0f5132;
}

.txc-membership-notice--error {
  border-left-color: #d72638;
  background: #fff0f1;
  color: #7a1721;
}

@media (max-width: 900px) {
  .txc-membership-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .txc-membership-page {
    padding-inline: 1.1rem;
  }

  .txc-membership-form__grid {
    grid-template-columns: 1fr;
  }

  .txc-membership-field--full {
    grid-column: auto;
  }
}
