/* ===== Página de Conta (Paid Member Subscriptions) ===== */
.pms-block-container {
  font-family: "Poppins", sans-serif;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 40px auto;
  align-items: start;
}

/* --- Menu lateral --- */
.pms-account-navigation {
  background: #fff;
  border: 1px solid #e9ecf2;
  border-radius: 12px;
  padding: 12px;
  position: sticky;
  top: 24px;
}
.pms-account-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pms-account-navigation ul li {
  border-radius: 8px;
}

.pms-account-navigation a:hover {
  background: #f4f6fa;
}

.pms-account-navigation-link a {
  display: block;
  padding: 12px 16px;
  /* border-radius: 8px; */
  color: #5a616b;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
/* Logout com leve destaque de "sair" */
.pms-account-navigation-link--logout a {
  color: #b3261e;
  margin-top: 6px;
  border-top: 1px solid #f0f2f6;
  border-radius: 0 0 8px 8px;
}
.pms-account-navigation-link--logout a:hover {
  background: #fdecec;
  color: #b3261e;
}

body .pms-account-navigation a,
body .pms-account-navigation a:hover,
body .pms-account-navigation a:focus,
body .pms-account-navigation a:active,
body .pms-account-navigation li a,
body .pms-account-navigation li a:hover,
body .pms-account-navigation .pms-account-navigation-link--active,
body .pms-account-navigation a.pms-account-navigation-link--active {
  box-shadow: none !important;
}

.pms-account-navigation li.pms-account-navigation-link a,
.pms-account-navigation li.pms-account-navigation-link a:hover,
.pms-account-navigation
  li.pms-account-navigation-link
  a.pms-account-navigation-link--active {
  box-shadow: none !important;
}
.pms-account-navigation li.pms-account-navigation-link a,
.pms-account-navigation li.pms-account-navigation-link a:hover,
.pms-account-navigation
  li.pms-account-navigation-link
  a.pms-account-navigation-link--active:hover {
  box-shadow: none !important;
}

/* --- Conteúdo à direita --- */
.pms-block-container > *:not(.pms-account-navigation) {
  background: #fff;
  border: 1px solid #ffffff;
  border-radius: 12px;
  padding: 32px 36px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.7;
}
/* Junta parágrafos soltos (msg "sem assinatura") num card só */
.pms-block-container > p {
  margin: 0 0 12px;
}
.pms-block-container > p + p {
  margin-top: 0;
  border: none;
  padding-top: 0;
}

/* --- Formulários do plugin (Editar Perfil) --- */
.pms-block-container label {
  display: block;
  color: #14172a;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.pms-block-container input[type="text"],
.pms-block-container input[type="email"],
.pms-block-container input[type="password"],
.pms-block-container select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #14172a;
  margin-bottom: 18px;
  outline: none;
  transition: border-color 0.2s ease;
}
.pms-block-container input:focus,
.pms-block-container select:focus {
  border-color: #1f3a8a;
}

/* --- Botões do plugin --- */
.pms-block-container input[type="submit"],
.pms-block-container button,
.pms-block-container .pms-submit-button {
  background: #d12b2b;
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.pms-block-container input[type="submit"]:hover,
.pms-block-container button:hover {
  background: #a91f1f;
}

/* --- Links dentro do conteúdo (ex: "click here") --- */
.pms-block-container a.pms-register-page-link {
  color: #1f3a8a;
  font-weight: 600;
  text-decoration: underline;
}

/* --- Tabelas (Pagamentos / Assinaturas) --- */
.pms-block-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pms-block-container table th {
  text-align: left;
  color: #14172a;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 2px solid #14172a;
}
.pms-block-container table td {
  padding: 14px;
  color: #5a616b;
  border-bottom: 1px solid #eef0f4;
}

/* --- Responsivo --- */
@media (max-width: 900px) {
  .pms-block-container {
    grid-template-columns: 1fr;
  }
  .pms-account-navigation {
    position: static;
  }
}

/* ===== Página de Registro / Compra (pms-register) — plano único ===== */
#pms_new_subscription-form {
  font-family: "Poppins", sans-serif;
  max-width: 520px;
  margin: 60px auto;
  padding: 0 24px;
}

.pms-form-fields-wrapper {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

/* Com um plano só, ocupa a largura toda */
.pms-field-subscriptions {
  display: block;
}

.pms-subscription-plan {
  position: relative;
}
.pms-subscription-plan label {
  display: block;
  background: #fff;
  border: 2px solid #1f3a8a;
  border-radius: 16px;
  padding: 40px 44px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(31, 58, 138, 0.1);
  cursor: default; /* plano único não precisa parecer clicável */
}

.pms-subscription-plan input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pms-subscription-plan-name {
  display: block;
  color: #1f3a8a;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pms-subscription-plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  color: #14172a;
  margin-bottom: 4px;
}
.pms-subscription-plan-currency {
  font-size: 24px;
  font-weight: 600;
  align-self: flex-start;
  margin-top: 8px;
}
.pms-subscription-plan-price-value {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}
.pms-subscription-plan-duration {
  color: #5a616b;
  font-size: 16px;
  font-weight: 500;
}
/* Esconde os divisores "–" e "/" pra ficar mais limpo */
.pms-subscription-plan-price > .pms-divider {
  display: none;
}
.pms-subscription-plan-duration::before {
  content: "por ";
  color: #8a93a8;
}

/* Aviso de gateway indisponível */
#pms-active-gateways-not-available {
  background: #fff8e6;
  border: 1px solid #f0d98a;
  border-radius: 8px;
  padding: 14px 18px;
  color: #8a6d1a;
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
}

/* Botão de submit */
#pms_new_subscription-form input[type="submit"] {
  display: block;
  width: 100%;
  background: #d12b2b;
  color: #fff;
  border: none;
  padding: 17px 28px;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.2s ease;
}
#pms_new_subscription-form input[type="submit"]:hover {
  background: #a91f1f;
}

/* ===== Checkout estilo InvestorPlace (pms-register) ===== */
#pms_register-form {
  font-family: "Poppins", sans-serif;
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}

/* --- Barra de segurança no topo --- */
#pms_register-form::before {
  content: "Compra segura. 100% protegida. Protocolo SSL.";
  display: block;
  background: #1f3a8a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 16px 32px 16px 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 28px center;
}

.pms-form-fields-wrapper {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Seção 1: dados pessoais --- */
.pms-account-section-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  padding: 30px 32px 12px;
}
.pms-account-section-wrapper::before {
  content: "1. Seus dados";
  grid-column: 1 / -1;
  color: #14172a;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Usuário e e-mail ocupam a linha inteira */
.pms-user-login-field,
.pms-user-email-field {
  grid-column: 1 / -1;
}

.pms-field {
  list-style: none;
  margin: 0 0 18px;
}

.pms-field label {
  display: block;
  color: #4b5162;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.pms-field input[type="text"],
.pms-field input[type="email"],
.pms-field input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid #dfe3ea;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #14172a;
  background: #fff;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.pms-field input:focus {
  border-color: #1f3a8a;
  box-shadow: 0 0 0 3px rgba(31, 58, 138, 0.1);
}

/* --- Resumo do pedido --- */
.pms-field-subscriptions {
  margin: 0;
  padding: 22px 32px;
  background: #f7f8fc;
  border-top: 1px solid #eef0f4;
  border-bottom: 1px solid #eef0f4;
}
.pms-field-subscriptions::before {
  content: "Resumo do pedido";
  display: block;
  color: #14172a;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}
.pms-field-subscriptions label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.pms-subscription-plan-name {
  color: #4b5162;
  font-size: 15px;
  font-weight: 500;
}
.pms-subscription-plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #14172a;
}
.pms-subscription-plan-currency {
  font-size: 16px;
  font-weight: 600;
}
.pms-subscription-plan-price-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.pms-subscription-plan-duration {
  color: #5a616b;
  font-size: 14px;
  font-weight: 500;
}
.pms-subscription-plan-price > .pms-divider {
  display: none;
}
.pms-subscription-plan-duration::before {
  content: "/ ";
  color: #8a93a8;
}

/* --- Seção 2: pagamento --- */
.pms-paygates-holder {
  padding: 26px 32px;
  background: #fafbfd;
}
.pms-paygates-holder::before {
  content: "2. Pagamento";
  display: block;
  color: #14172a;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
}
.pms-paygates-holder label {
  display: block;
  color: #4b5162;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.pms-paygates-holder input[type="text"],
.pms-paygates-holder select {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid #dfe3ea;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #14172a;
  background: #fff;
  margin-bottom: 16px;
  outline: none;
}
.pms-paygates-holder input:focus,
.pms-paygates-holder select:focus {
  border-color: #1f3a8a;
  box-shadow: 0 0 0 3px rgba(31, 58, 138, 0.1);
}

#pms-active-gateways-not-available {
  background: #fff8e6;
  border: 1px solid #f0d98a;
  border-radius: 6px;
  padding: 13px 16px;
  color: #8a6d1a;
  font-size: 13px;
}

/* --- Botão --- */
#pms_register-form .pms-form-submit {
  display: block;
  width: calc(100% - 64px);
  margin: 4px 32px 0;
  background: #d12b2b;
  color: #fff;
  border: none;
  padding: 18px 28px;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.18s ease;
}
#pms_register-form .pms-form-submit:hover {
  background: #a91f1f;
}

/* --- Nota de segurança abaixo do botão --- */
#pms_register-form::after {
  content: "Todas as transações são seguras e criptografadas.";
  display: block;
  text-align: center;
  color: #5a616b;
  font-size: 13px;
  padding: 14px 32px 30px;
}

@media (max-width: 620px) {
  #pms_register-form::before {
    padding: 14px 20px 14px 52px;
    background-position: 20px center;
    font-size: 13px;
  }
  .pms-account-section-wrapper {
    grid-template-columns: 1fr;
    padding: 24px 20px 8px;
  }
  .pms-field-subscriptions,
  .pms-paygates-holder {
    padding: 20px;
  }
  #pms_register-form .pms-form-submit {
    width: calc(100% - 40px);
    margin: 4px 20px 0;
  }
  #pms_register-form::after {
    padding: 12px 20px 24px;
  }
}

.ct-form {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: #fefefe;
  font-family: "Poppins", system-ui, sans-serif;
}
.ct-form .ct-names {
  display: flex;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* labels */
.ct-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #3a4266;
}

/* campos */
.ct-form input[type="text"],
.ct-form input[type="email"],
.ct-form select,
.ct-form textarea {
  border: 1.5px solid #e0e4f5;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  color: #151b3d;
  background: #f7f8fd;
  outline: none;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.ct-form textarea {
  resize: vertical;
  line-height: 1.6;
}
.ct-form input:focus,
.ct-form select:focus,
.ct-form textarea:focus {
  border-color: #3d52e8;
  background: #fff;
}

/* botão */
.ct-form input[type="submit"],
.ct-form .wpcf7-submit {
  margin-top: 6px;
  background: #d12b2b;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 17px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
.ct-form input[type="submit"]:hover,
.ct-form .wpcf7-submit:hover {
  background: #ac2020;
}

.ct-form .ct-privacy {
  margin: 0;
  font-size: 13px;
  color: #fff;
  text-align: center;
}
.ct-form .ct-privacy a {
  color: #3d52e8;
  font-weight: 600;
}

/* CF7 embrulha os campos em <span class="wpcf7-form-control-wrap"> — garante largura total */
.ct-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

@media (max-width: 560px) {
  .ct-form {
    padding: 36px 26px;
  }
  .ct-form .ct-names {
    grid-template-columns: 1fr;
  }
}
