/* Signup page — hero + plan selection + form */

.signup-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8f 100%);
    color: white;
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.signup-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.signup-hero-lead {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* ── Plan selection cards ──────────────────────────────────── */

.signup-plans-section {
    padding: 2rem 1rem 1rem;
    background: #f8fafc;
}

.signup-plans-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 56rem;
    margin: 0 auto;
}

.signup-plan-card {
    position: relative;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signup-plan-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.signup-plan-card.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 4px 16px rgba(37, 99, 235, 0.12);
}

.signup-plan-card.popular {
    border-color: #bfdbfe;
}

.signup-plan-card.popular.active {
    border-color: #2563eb;
}

/* Check indicator (top-right) */
.plan-check-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: transparent;
    transition: all 0.2s;
    background: #fff;
}

.signup-plan-card.active .plan-check-indicator {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

/* Popular badge */
.plan-popular-badge {
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.plan-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.25rem;
    margin-top: 0.25rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.plan-price span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.plan-desc {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.plan-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
    font-size: 0.78rem;
    color: #475569;
}

.plan-highlights li {
    padding: 0.2rem 0;
    padding-left: 1.1rem;
    position: relative;
}

.plan-highlights li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.6rem;
    color: #22c55e;
    position: absolute;
    left: 0;
    top: 0.35rem;
}

.signup-compare-link {
    color: #2563eb;
    font-size: 0.85rem;
    text-decoration: none;
}

.signup-compare-link:hover {
    text-decoration: underline;
}

/* ── Form section ──────────────────────────────────────────── */

.signup-form-section {
    padding: 2rem 1rem 4rem;
    background: #f8fafc;
}

.signup-card {
    max-width: 28rem;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.signup-card-body {
    padding: 2rem 2rem 2.25rem;
}

.signup-icon-wrap {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-icon {
    font-size: 1.75rem;
    color: white;
}

.signup-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.35rem;
}

.signup-card-lead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.signup-form .form-label {
    color: #374151;
}

.signup-form .form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.signup-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.signup-form .form-control::placeholder {
    color: #9ca3af;
}

.signup-actions {
    text-align: center;
}

.signup-submit {
    padding: 0.65rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.signup-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.signup-login-link {
    font-size: 0.95rem;
    color: #6b7280;
}

.signup-login-link a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.signup-login-link a:hover {
    text-decoration: underline;
}

/* Validation summary as alert */
.signup-form .alert-danger {
    border-radius: 8px;
    border: 1px solid #fecaca;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .signup-plans-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479.98px) {
    .signup-plans-row {
        grid-template-columns: 1fr;
        max-width: 20rem;
    }
}

@media (min-width: 576px) {
    .signup-card-body {
        padding: 2.5rem 2.5rem 2.75rem;
    }
}
