/* ==========================================================================
   Estilos Gerais do Signup
   ========================================================================== */
   body {
    font-family: 'Inter', sans-serif; /* Garante a fonte se estiver definida */
    background-color: #f8f9fa; /* Fundo cinza claro para a página */
    margin: 0;
    padding: 0;
    display: flex; /* Usar flexbox para centralizar o conteúdo */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: flex-start; /* Alinha ao topo verticalmente */
    min-height: 100vh; /* Garante que o body ocupe a altura total da viewport */
    box-sizing: border-box; /* Inclui padding e border no cálculo da largura/altura */
}

/* Cabeçalho do formulário */
.form-header {
    margin-bottom: 35px; /* Ajustado */
}

.main-title {
    font-size: 2.2rem; /* Ajustado */
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.sub-header {
    font-size: 1.1rem; /* Ajustado */
    color: #666;
    line-height: 1.5;
}

/* ==========================================================================
   Lista de Planos
   ========================================================================== */
.planos-list {
    display: grid;
    /* Ajustado minmax para cards menores, permitindo 3 colunas */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px; /* Reduzido o gap entre os cards */
    margin-bottom: 45px; /* Ajustado */
    justify-content: center; /* Centraliza os cards se houver menos de 3 */
}

.plano-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 55px 25px; /* <-- Aqui! */
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.plano-card:hover {
    border-color: #007bff;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.15);
    transform: translateY(-3px);
}

.plano-card.selected {
    border-color: #007bff;
    background-color: #e6f2ff; /* Fundo mais claro para o selecionado */
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

/* Badge "MAIS ESCOLHIDO" */
.plano-card.popular .badge-popular {
    background-color: #ffc107; /* Amarelo vibrante */
    color: #333;
    padding-top: 30px;
    padding: 8px 30px; /* Aumentei a altura (8px) e a largura (30px) */
    border-radius: 20px;
    font-size: 0.9rem; /* Aumentei um pouco o tamanho da fonte */
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
}


.check-icon {
    font-size: 1.5rem; /* Ajustado */
    color: #007bff;
    margin-bottom: 10px;
    line-height: 1; /* Garante que o ícone não adicione espaçamento extra */
}

.plan-name {
    font-size: 1.6rem; /* Ajustado */
    font-weight: 700;
    color: #333;
    margin-bottom: 15px; /* Ajustado */
    display: block; /* Garante que o span ocupe sua própria linha */
}

.price {
    margin-bottom: 20px; /* Ajustado */
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.currency {
    font-size: 1.0rem;
    font-weight: 600;
    color: #555;
    margin-right: 5px;
}

.amount {
    font-size: 2.0rem; /* Ajustado */
    font-weight: 800;
    color: #007bff;
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: #777;
    margin-left: 5px;
}

.plan-description-short {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px; /* Ajustado */
    min-height: 35px; /* Altura mínima para a descrição */
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* Alinha as features à esquerda */
    margin-top: 15px; /* Espaçamento superior para separar do preço/descrição */
}

.plan-features li {
    font-size: 0.80rem;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.plan-features li::before {
    content: '✓';
    color: #28a745; /* Verde para o checkmark */
    margin-right: 8px;
    font-weight: 700;
}

/* ==========================================================================
   Seções do Formulário
   ========================================================================== */
#form-section {
    margin-top: 40px; /* Ajustado */
}

.form-step {
    background-color: #ffffff;
    padding: 35px; /* Reduzido o padding */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px; /* Reduzido a margem inferior */
    text-align: left; /* Alinha o conteúdo do formulário à esquerda */
}

.step-title {
    font-size: 1.8rem; /* Ajustado */
    color: #333;
    margin-bottom: 25px; /* Reduzido a margem inferior */
    font-weight: 600;
    display: flex;
    align-items: center;
}

.step-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; /* Ajustado */
    height: 38px; /* Ajustado */
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem; /* Ajustado */
    font-weight: 700;
    margin-right: 15px; /* Ajustado */
    flex-shrink: 0; /* Evita que o número encolha */
}

.form-row-custom {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens quebrem para a próxima linha */
    gap: 20px; /* Reduzido o gap */
    margin-bottom: 20px; /* Reduzido a margem inferior */
}

.form-group-custom {
    flex: 1; /* Permite que os grupos de formulário se expandam */
    min-width: 280px; /* Largura mínima para cada campo */
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    font-size: 0.95rem; /* Ajustado */
    color: #555;
    margin-bottom: 7px; /* Ajustado */
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 13px 18px; /* Reduzido o padding */
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.95rem; /* Ajustado */
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box; /* Garante que padding e border não aumentem a largura */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.password-feedback {
    font-size: 0.85rem;
    margin-top: 5px;
    text-align: left;
}

.password-feedback.match {
    color: #28a745; /* Verde */
}

.password-feedback.no-match {
    color: #dc3545; /* Vermelho */
}

.btn-submit {
    background-color: #28a745; /* Verde para o botão de submissão */
    color: #fff;
    padding: 18px 30px; /* Ajustado */
    border: none;
    border-radius: 8px;
    font-size: 1.2rem; /* Ajustado */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: auto; /* Permite que o botão se ajuste ao conteúdo */
    margin-top: 30px; /* Ajustado */
    display: inline-block; /* Para aplicar margin-top corretamente */
}

.btn-submit:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.secure-footer {
    font-size: 0.85rem;
    color: #888;
    margin-top: 25px; /* Ajustado */
    display: flex;
    align-items: center;
    justify-content: center;
}

.secure-footer i {
    margin-right: 8px;
    color: #007bff;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 768px) {
    .signup-wrapper {
        padding: 30px 25px; /* Mais compacto em telas menores */
        margin: 20px auto;
    }
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    .sub-header {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .planos-list {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
        gap: 15px;
        margin-bottom: 30px;
    }
    .plano-card {
        min-height: auto; /* Altura automática para mobile */
        padding: 25px 18px;
    }
    .plan-name {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    .amount {
        font-size: 2.2rem;
    }
    .form-step {
        padding: 25px;
        margin-bottom: 20px;
    }
    .step-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    .step-title span {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-right: 10px;
    }
    .form-row-custom {
        flex-direction: column; /* Colunas empilhadas em telas menores */
        gap: 15px;
        margin-bottom: 15px;
    }
    .form-group-custom {
        min-width: unset; /* Remove largura mínima para mobile */
    }
    label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .btn-submit {
        padding: 15px 25px;
        font-size: 1.1rem;
        margin-top: 25px;
    }
    .secure-footer {
        font-size: 0.8rem;
        margin-top: 15px;
    }
}

/* ==========================================================================
   Estilos para o HTML da View (signup.php)
   ========================================================================== */
/* Não há CSS inline na view, então este bloco é apenas para referência */
