/**
 * Cooper Membership Pricing Styles
 * Matching yourcooper.com design
 */

/* ===== Wrapper ===== */
.cooper-membership-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #fce7e6;
    border-radius: 8px;
}

/* ===== Header ===== */
.cooper-pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.cooper-pricing-title {
    font-family: 'Copernicus', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.cooper-pricing-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== Loading/Error States ===== */
.cooper-pricing-loading,
.cooper-pricing-error {
    text-align: center;
    padding: 60px 20px;
}

.cooper-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a7c59;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: cooper-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes cooper-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cooper-retry-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background-color 0.2s;
}

.cooper-retry-btn:hover {
    background-color: #ff5252;
}

/* ===== Pricing Container ===== */
.cooper-pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .cooper-pricing-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cooper-pricing-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Price Card ===== */
.cooper-price-card {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    padding: 32px 24px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.cooper-price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.cooper-price-card.best-value {
    border-color: #4a7c59;
    border-width: 3px;
    padding-top: 48px;
}

/* Best Value Badge */
.cooper-best-value-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a7c59;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Header */
.cooper-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.cooper-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 16px 0;
}

.cooper-price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cooper-price-currency {
    font-size: 24px;
    color: #666;
    font-weight: 600;
}

.cooper-price-amount {
    font-size: 48px;
    font-weight: 800;
    color: #2d2d2d;
    line-height: 1;
}

.cooper-price-amount.discounted {
    text-decoration: line-through;
    color: #999;
    font-size: 32px;
}

.cooper-price-period {
    font-size: 18px;
    color: #666;
}

.cooper-price-renewal {
    font-size: 14px;
    color: #888;
    text-align: center;
}

/* Trial Pricing */
.cooper-trial-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cooper-trial-today {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cooper-renewal-info {
    text-align: center;
    margin-top: 12px;
}

.cooper-renewal-price {
    font-size: 18px;
    color: #666;
}

.cooper-renewal-frequency {
    font-size: 14px;
    color: #888;
    display: block;
    margin-top: 4px;
}

/* Card Body */
.cooper-card-body {
    flex-grow: 1;
    margin-bottom: 24px;
}

.cooper-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cooper-feature-item {
    padding: 12px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.cooper-feature-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.cooper-feature-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: #4a7c59;
}

.cooper-feature-divider svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Join Button */
.cooper-join-btn {
    width: 100%;
    background-color: #ff7f50;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cooper-join-btn:hover {
    background-color: #ff6b35;
}

.cooper-join-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ===== Private Group Section ===== */
.cooper-private-group-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .cooper-private-group-section {
        grid-template-columns: 1fr 1fr;
    }
}

.cooper-private-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 24px 0;
}

.cooper-private-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 24px;
}

.cooper-private-info p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.cooper-private-prices {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Private Group Card (Simplified) */
.cooper-private-card {
    background: #f9f9f9;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.cooper-private-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 16px 0;
}

.cooper-private-card p {
    font-size: 16px;
    color: #666;
    margin: 0 0 16px 0;
}

.cooper-private-card button {
    background-color: #4a7c59;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cooper-private-card button:hover {
    background-color: #3d6649;
}

/* ===== Redirect Message ===== */
.cooper-redirect-message {
    text-align: center;
    padding: 40px 20px;
}

.cooper-redirect-message h3 {
    font-size: 24px;
    color: #2d2d2d;
    margin: 0 0 12px 0;
}

.cooper-redirect-message p {
    font-size: 16px;
    color: #666;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .cooper-pricing-title {
        font-size: 24px;
    }

    .cooper-pricing-subtitle {
        font-size: 16px;
    }

    .cooper-price-amount {
        font-size: 36px;
    }

    .cooper-private-group-section {
        padding: 24px;
    }
}

/* ===== Utilities ===== */
.hidden {
    display: none !important;
}

