/* /choose-plan/css/plan-styles.css */

.plan-page {
    background-color: var(--brand-offwhite);
}

.plan-main {
    padding: 3rem 1rem;
}

.plan-container {
    max-width: 80rem; /* max-w-7xl */
    margin: 0 auto;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h1 {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
    color: #111827; /* text-gray-900 */
    margin-bottom: 0.75rem;
}

.plan-header p {
    font-size: 1.125rem; /* text-lg */
    color: #4B5563; /* text-gray-600 */
    margin-bottom: 1rem;
}

.plan-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; /* gap-3 */
    max-width: 56rem; /* max-w-3xl */
    margin: 0 auto;
    margin-bottom: 3rem;
}

.plan-filter-button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem; /* rounded-lg */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background-color: white;
    color: #374151; /* text-gray-700 */
    border: 1px solid var(--border-primary);
}

.plan-filter-button:hover {
    border-color: rgba(99, 102, 241, 0.5); /* hover:border-[#6366F1]/50 */
}

.plan-filter-button.active {
    background-color: var(--brand-cornflower-blue);
    color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* shadow-md */
    border-color: transparent;
}

.plan-grid {
    display: grid;
    gap: 1.5rem; /* gap-6 */
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .plan-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.plan-card {
    position: relative;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 1rem; /* rounded-2xl */
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-primary);
    background-color: white;
}

.plan-card:hover {
    border-color: var(--brand-cornflower-blue);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* hover:shadow-lg */
}

.plan-card--popular {
    border-color: var(--brand-cornflower-blue);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.plan-card__popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    background-color: var(--brand-cornflower-blue);
    color: white;
    font-size: 0.75rem; /* text-xs */
    font-weight: 600;
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    white-space: nowrap;
}

.plan-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.plan-card__title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.plan-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.plan-card__price-amount {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
    color: #111827;
}

.plan-card__price-billing {
    font-size: 0.875rem; /* text-sm */
    color: #4B5563;
}

.plan-card__description {
    font-size: 0.75rem; /* text-xs */
    color: #6B7280; /* text-gray-500 */
    margin-bottom: 0.5rem;
}

.plan-card__persona {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: rgba(155, 174, 141, 0.1); /* bg-[#9BAE8D]/10 */
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #9BAE8D;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.plan-card__value-prop {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
}

.plan-card__features {
    border-top: 1px solid var(--border-primary);
    padding-top: 1rem;
    margin-top: 1rem;
    flex: 1;
    margin-bottom: 1.5rem;
}

.plan-card__features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem; /* space-y-2.5 */
}

.plan-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.plan-card__feature-icon {
    height: 1rem;
    width: 1rem;
    border-radius: 9999px;
    background-color: rgba(155, 174, 141, 0.2); /* bg-[#9BAE8D]/20 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.plan-card__feature-icon svg {
    height: 0.625rem;
    width: 0.625rem;
    color: #9BAE8D;
}

.plan-card__feature-text {
    font-size: 0.75rem;
    color: #374151;
    line-height: 1.3;
}

.plan-card__action {
    margin-top: auto;
}

.plan-card__button {
    width: 100%;
    background-color: var(--brand-cornflower-blue);
    color: white;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.plan-card__button:hover {
    background-color: rgb(75, 116, 208);
}

.plan-card__button:disabled {
    background-color: #A5B4FC;
    cursor: not-allowed;
}

.plan-card__footer-text {
    font-size: 0.75rem;
    color: #6B7280;
    text-align: center;
    margin-top: 0.75rem;
}

.plan-error {
    max-width: 42rem;
    margin: 0 auto 1.5rem auto;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #FEF2F2; /* bg-red-50 */
    border: 1px solid #FEE2E2; /* border-red-200 */
    color: #991B1B; /* text-red-600 */
    font-size: 0.875rem;
    text-align: center;
}

/* Hide the error container when it has no content */
.plan-error:empty {
    display: none;
}
