/**
 * Membership System Styles
 */

/* ============================================
   MEMBERSHIP PAGE LAYOUT
   ============================================ */

.membership-page {
    background: var(--background);
    min-height: 100vh;
}

.membership-header {
    background: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo-link img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.membership-main {
    padding: 2rem 0 4rem;
}

/* ============================================
   MEMBERSHIP HERO
   ============================================ */

.membership-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.membership-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.membership-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.membership-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ============================================
   BENEFITS GRID
   ============================================ */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.benefit-card p {
    margin: 0;
    color: var(--text-light);
}

/* ============================================
   REGISTRATION FORM
   ============================================ */

.registration-container {
    max-width: 800px;
    margin: 0 auto;
}

.registration-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Progress Steps */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
}

.step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Form Sections */
.registration-box h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1.5rem 0;
    color: var(--text);
}

.registration-box h2:first-of-type {
    margin-top: 0;
}

/* Payment Section */
.payment-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--background);
}

.payment-note {
    color: var(--text-light);
    font-size: 0.938rem;
    margin-bottom: 2rem;
}

.stripe-card-element {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s;
}

.stripe-card-element:focus-within {
    border-color: var(--primary);
}

/* Order Summary */
.order-summary {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--text);
}

.summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-container {
    max-width: 500px;
    margin: 4rem auto;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.login-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.login-form {
    margin: 2rem 0;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.813rem;
    color: var(--text-light);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.login-footer p {
    margin: 0.5rem 0;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   SUCCESS PAGE
   ============================================ */

.success-container {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.success-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.success-message {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.membership-details-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin: 2rem 0;
}

.membership-details-box h3 {
    text-align: center;
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--background);
}

.detail-row:last-child {
    border-bottom: none;
}

.status-active {
    color: var(--primary);
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.next-steps {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    margin-top: 3rem;
}

.next-steps h3 {
    margin-top: 0;
    text-align: center;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 0.75rem 0;
    font-size: 1.063rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .membership-hero h1 {
        font-size: 2rem;
    }
    
    .membership-price {
        font-size: 2.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-box {
        padding: 2rem 1.5rem;
    }
    
    .steps-indicator {
        flex-direction: column;
        gap: 1rem;
    }
    
    .steps-indicator::before {
        display: none;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .login-box {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   DISCOUNT CODE SECTION
   ============================================ */

.discount-code-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.discount-code-section label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.discount-input-row {
    display: flex;
    gap: 0.5rem;
}

.discount-input-row input {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.discount-input-row .btn {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
}

.discount-message {
    display: none;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.discount-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.discount-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.discount-row {
    color: #28a745;
}

.discount-value {
    color: #28a745;
    font-weight: 600;
}

.btn-success {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.btn-success:hover {
    background: #218838 !important;
}

/* Free Membership Notice */
.free-membership-notice {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.free-notice-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.free-membership-notice h3 {
    color: #155724;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.free-membership-notice p {
    color: #155724;
    margin: 0;
    font-size: 1rem;
}

