/* membership.css - Membership Page Specific Styles */

/* ========================================
   1. HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
    background: linear-gradient(to right, #1a3a6b, #2c5aa0);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   2. BENEFITS SECTION
   ======================================== */
.benefits-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.benefit-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* ========================================
   3. MEMBERSHIP OPTIONS SECTION
   ======================================== */
.membership-options-section {
    background: #f8f9fa;
    padding: 6rem 2rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.pricing-card {
    background: white;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pricing-card.popular {
    border-color: #ff6b35;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b35;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.pricing-card .price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-card .amount {
    font-size: 2.5rem;
    color: #2c5aa0;
    font-weight: 700;
}

.pricing-card .period {
    font-size: 1rem;
    color: #666;
    margin-left: 0.5rem;
}

.pricing-card .description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.pricing-card .features li {
    padding: 0.75rem 0;
    color: #333;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-card .features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.pricing-card .not-included {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pricing-card .not-included li {
    padding: 0.75rem 0;
    color: #999;
    position: relative;
    padding-left: 1.5rem;
    text-decoration: line-through;
}

.pricing-card .not-included li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #f44336;
    text-decoration: none;
}

/* .pricing-card .btn-large {
    margin-top: auto;
} */
.pricing-card .btn-large {
    background: #ff6b35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    text-align: center;
}

.pricing-card .btn-large:hover {
    background: #e55a2b;
}
/* ========================================
   4. MEMBERSHIP FORM SECTION
   ======================================== */
#pdf-application-container {
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.membership-form-section {
    padding: 6rem 2rem;
    max-width: 1250px;
    margin: 0 auto;
}

.review-section {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    background: #f8f9fa;
}

.review-section h3 {
    margin-top: 0;
    color: #2c5aa0;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.review-section h4 {
    color: #2c5aa0;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.review-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* The actual form - no unnecessary wrappers */
.membership-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 3rem auto 0;
    width: 100%;
    max-width: 1050px;
    height: 700px; /* Fixed height instead of min-height */
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Form panels - simplified */
.form-panel {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 0;
    flex-direction: column;
    overflow: hidden; /* This will hide the slide-in panel when it's off to the right */
}

.form-panel.active {
    display: flex;
}

/* Form content area */
.form-panel-content {
    padding: 4rem 2rem 1rem; /* Add top padding for progress indicator */
    flex: 1;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
    position: relative;
    max-width: 100%;
    z-index: 10; /* Keep above panels */
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 0 0.25rem;
}

.progress-step .step-number {
    width: 30px;
    height: 30px;
    background: #ddd;
    color: #666;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    z-index: 2;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
    cursor: default;
}

.progress-step.completed .step-number {
    cursor: pointer;
    background: #2c5aa0;
    color: white;
}

.progress-step.completed .step-number:hover {
    background: #1a3a6b;
    transform: scale(1.1);
}

.progress-step.active .step-number {
    background: #2c5aa0;
    color: white;
}

.progress-step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 16px;
}

.progress-step.completed .step-number span {
    display: none;
}

/* Terms accepted indicator in progress */
.progress-step.terms-accepted .step-number {
    background: #28a745;
    color: white;
}

.progress-step .terms-check {
    font-size: 16px;
}

.progress-step .step-label {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.progress-step.active .step-label {
    color: #2c5aa0;
    font-weight: 600;
}

.progress-indicator:has(.progress-step:nth-child(6)) .step-label {
    font-size: 0.7rem;
}

/* Navigation at bottom */
.wizard-navigation {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    background: white;
}

.wizard-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.wizard-btn-back {
    background: #2c5aa0;  /* Change from #f0f0f0 to match Next button */
    color: white;         /* Change from #666 to white */
}

.wizard-btn-back:hover:not(:disabled) {
    background: #1a3a6b;  /* Change from #e0e0e0 to match Next button hover */
}

.wizard-btn-back:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wizard-btn-next {
    background: #2c5aa0;
    color: white;
    margin-left: auto;
}

.wizard-btn-next:hover:not(:disabled) {
    background: #1a3a6b;
}

.wizard-btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.wizard-btn-submit {
    background: #ff6b35;
    color: white;
    margin-left: auto;
}

.wizard-btn-submit:hover:not(.disabled) {
    background: #e55a2b;
}

/* Disabled submit button styling */
.wizard-btn-submit.disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    border-color: #bbb !important;
}

.wizard-btn-submit.disabled:hover {
    background-color: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Terms accepted state */
.wizard-btn-submit.terms-accepted {
    background-color: #28a745;
    border-color: #28a745;
}

.wizard-btn-submit.terms-accepted:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* ========================================
   5. FORM INPUT STYLES
   ======================================== */
.form-section {
    margin-bottom: 0.75rem;
}

.form-section h3 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.form-row:has(.small-input) {
    grid-template-columns: 1fr 1fr auto;
}

.form-group.small-input {
    max-width: 150px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form-group label .required {
    color: #f44336;
    margin-left: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
    opacity: 1;
}

.form-group select {
    color: #888;
}

.form-group select option[value=""] {
    color: #888;
}

.form-group select:valid {
    color: #333;
}

.form-group input[type="date"] {
    cursor: pointer;
}

.form-group input[type="text"]#birthday,
.form-group input[type="text"]#secondary-birthday,
.form-group input[type="text"]#dependent-birthday {
    cursor: pointer;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.form-group input.error {
    border-color: #f44336;
}

.form-group textarea {
    min-height: 50px;
    resize: vertical;
}

/* ========================================
   6. MEMBERSHIP TYPE SELECTION
   ======================================== */
.membership-type-group {
    margin: 2rem 0;
}

.radio-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.radio-option-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* This centers content vertically */
    min-height: 120px; /* Add minimum height for consistent card sizes */
}

.radio-option-card:hover {
    border-color: #2c5aa0;
    background-color: #f8f9fa;
}

.radio-option-card.selected {
    border-color: #2c5aa0;
    background-color: #f0f7ff;
}

.radio-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-option-card label {
    display: block;
    cursor: pointer;
    margin: 0;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    min-height: 3rem; /* Add minimum height to ensure consistent spacing */
}

.option-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.option-price {
    color: #2c5aa0;
    font-weight: 600;
    font-size: 1.1rem;
}

.option-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.popular-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ff6b35;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========================================
   7. INTERESTS SECTION
   ======================================== */
.interests-section {
    margin-top: 0.5rem;
}

.section-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 0.5rem 0;
    max-width: 100%;
}

.interest-item {
    display: flex;
    align-items: center;
    min-width: 0;
}

.interest-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-right: 0.4rem;
    cursor: pointer;
}

.interest-item label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.interest-icon {
    font-size: 1rem;
}

/* ========================================
   8. FAMILY MEMBERS SECTION
   ======================================== */
.family-members-section {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.family-members-section h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
}

.family-member {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    position: relative;
}

.family-member h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.remove-member-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f44336;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.remove-member-btn:hover {
    background: #d32f2f;
}

.add-member-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

.add-member-btn:hover {
    background: #1a3a6b;
}

/* ========================================
   9. DEPENDENT CARDS & SLIDE-IN PANEL
   ======================================== */

/* Dependents container - scrollable */
.dependents-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Increased from 100px to 140px */
    gap: 0.75rem;
    margin-top: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Compact dependent card - redesigned */
.dependent-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75rem;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 60px; /* Add minimum height */
}

/* Update the dependent info layout */
.dependent-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    gap: 0.5rem; /* Add gap to prevent crowding */
}

/* Update these existing styles: */

/* Compressed panel header */
.dependent-panel-header {
    background: #2c5aa0;
    color: white;
    padding: 1rem 1.5rem; /* Reduced from 1.5rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dependent-panel-header h3 {
    margin: 0;
    font-size: 1.1rem; /* Reduced from 1.2rem */
}

/* Even more compressed panel content */
.dependent-panel-content {
    flex: 1;
    padding: 1.25rem 2rem; /* Reduced from 1.5rem 2rem */
    overflow-y: auto;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

/* Add these new styles after .dependent-panel-content: */

.dependent-panel-content .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.dependent-panel-content .form-row:has(.age-input) {
    grid-template-columns: 2fr 1fr; /* Birthday field gets more space */
}

.dependent-panel-footer {
    padding: 1rem 1.5rem; /* Reduced from 1.5rem */
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

/* Compact dependent card - redesigned */

.dependent-card:hover {
    border-color: #2c5aa0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dependent-card h4 {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.dependent-info .age {
    font-weight: 500;
}

.dependent-info .school-badge {
    background: #f0f7ff;
    color: #2c5aa0;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
}

.dependent-actions {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.edit-btn, .delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.75rem;
}

/* Member requirements with button */
.member-requirements {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f0f7ff;
    border-left: 3px solid #2c5aa0;
    border-radius: 3px;
    position: relative;
    padding-right: 4rem; /* Make room for button */
}

/* Circular add button */
.add-member-btn-circle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: #2c5aa0;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.add-member-btn-circle:hover {
    background: #1a3a6b;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Compressed panel content */
.dependent-panel-content .form-group {
    margin-bottom: 0.75rem; /* Reduced from default */
}

.dependent-panel-content .form-group label {
    margin-bottom: 0.25rem; /* Reduced from 0.4rem */
    font-size: 0.9rem;
}

.dependent-panel-content .form-group input {
    padding: 0.5rem; /* Reduced from 0.65rem */
}

#school-checkbox-group {
    margin-top: 0.5rem; /* Reduced spacing */
    margin-bottom: 0.5rem;
}

#school-checkbox-group small {
    margin-top: 0.1rem; /* Reduced from 0.25rem */
}

#dep-error {
    margin-top: 0.5rem !important; /* Reduced from 1rem */
    font-size: 0.85rem;
    padding: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dependents-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); /* Increased from 90px */
        max-height: 250px;
    }
}

.dependent-card:hover {
    border-color: #2c5aa0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dependent-card-content {
    flex: 1;
    min-width: 0;
}

.edit-btn {
    color: #2c5aa0;
}

.edit-btn:hover {
    background: #f0f7ff;
}

.delete-btn {
    color: #f44336;
}

.delete-btn:hover {
    background: #ffebee;
}

/* Empty state */
.empty-dependents {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Form-level slide-in panel */
.dependent-panel {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Add this to prevent seeing the panel outside bounds */
}

.dependent-panel.active {
    right: 0;
}

.close-panel-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.close-panel-btn:hover {
    background: rgba(255,255,255,0.1);
}

.dependent-panel-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.dependent-panel-footer button {
    flex: 1;
}

/* Scrollbar styling for dependents container */
.dependents-container::-webkit-scrollbar {
    width: 6px;
}

.dependents-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.dependents-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.dependents-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ========================================
   10. PAYMENT METHODS SECTION
   ======================================== */
.payment-methods-section {
    margin: 2rem 0;
}

.payment-methods-section h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
    max-width: 200px;
    position: relative;
}

.payment-method:hover {
    border-color: #2c5aa0;
    background-color: #f8f9fa;
}

.payment-method.selected {
    border-color: #2c5aa0;
    background-color: #f0f7ff;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.15);
}

.payment-method img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.payment-method .payment-icon {
    font-size: 1.5rem;
}

.payment-method h4 {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
}

.payment-method small {
    color: #666;
    font-size: 0.8rem;
    margin-left: auto;
    white-space: nowrap;
}

.payment-method.loading {
    pointer-events: none;
    opacity: 0.6;
}

.payment-method.loading h4 {
    visibility: hidden;
}

.payment-method.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   11. REVIEW & CONFIRMATION
   ======================================== */
.review-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.review-section h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
}

.review-details {
    max-height: 250px !important;  /* Override any other settings */
}

.review-details h4 {
    color: #2c5aa0;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.review-details h4:first-child {
    margin-top: 0.5rem !important;
}

.review-details p {
    margin-bottom: 0.5rem;
    color: #555;
}

.review-details ul {
    margin-left: 1.5rem;
    color: #555;
}

.review-details ul li {
    margin-bottom: 0.25rem;
}

/* ========================================
   12. TERMS & SUBMIT
   ======================================== */
.terms-section {
    margin: 2rem 0;
    margin-bottom: 2rem;
}

/* Terms notice styling enhancement */
.terms-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.terms-notice.highlight {
    border: 2px solid #ff6b35 !important;
    background-color: #ffe5d5;
    animation: pulse 0.5s ease-in-out 2;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.terms-notice a {
    color: #2c5aa0;
    font-weight: 600;
    text-decoration: underline;
}

.terms-notice.accepted {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    color: #666;
}

.checkbox-group label a {
    color: #2c5aa0;
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

/* Terms Modal */
.modal-overlay {
    display: none;  /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;  /* Show as flex when active */
}

.terms-modal {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.terms-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: #2c5aa0;
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terms-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-terms-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.close-terms-btn:hover {
    background: rgba(255,255,255,0.1);
}

.terms-modal-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    line-height: 1.6;
    max-height: 400px;  /* Add this to ensure scrolling */
    border: 1px solid #e0e0e0;  /* Add visual boundary */
    background: #f8f9fa;  /* Add subtle background */
    margin: 0 1rem;  /* Add margin for better appearance */
    scroll-behavior: smooth;
}

.terms-modal-content h3 {
    color: #2c5aa0;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.terms-modal-content p,
.terms-modal-content li {
    margin-bottom: 1rem;
    color: #333;
}

.terms-modal-content ul {
    margin-left: 2rem;
}

.terms-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #ddd;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

/* Scroll notice styling */
#scroll-notice {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Accept checkbox group styling */
.terms-accept-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.terms-accept-group input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.terms-accept-group input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.terms-accept-group input[type="checkbox"]:disabled + label {
    color: #999;
    cursor: not-allowed;
}

.terms-accept-group label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.terms-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.terms-modal-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-print {
    background: #6c757d;
    color: white;
    margin-right: auto;
}

.btn-print:hover {
    background: #5a6268;
}

.btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-accept {
    background: #2c5aa0;
    color: white;
}

.btn-accept:hover:not(:disabled) {
    background: #1a3a6b;
}

.btn-accept:disabled,
.btn-accept.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================================
   13. MESSAGES & VALIDATION
   ======================================== */
.error-message {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ========================================
   15. WELCOME PANEL
   ======================================== */
.welcome-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    overflow-y: auto;
    padding: 1rem;
}

.welcome-panel-overlay.active {
    opacity: 1;
}

.welcome-panel {
    background: white;
    border-radius: 15px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.5s ease-in-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.welcome-panel > div:last-child {
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.5rem !important;
}

.welcome-panel-overlay.active .welcome-panel {
    transform: translateY(0);
}

.welcome-header {
    background: linear-gradient(135deg, #2c5aa0, #1a3a6b);
    color: white;
    padding: 2rem;
    text-align: center;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-header h2 {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.welcome-header p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.welcome-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.welcome-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.email-notice {
    padding: 0.75rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.email-notice.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.email-notice.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.payment-next-steps {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.payment-next-steps h3 {
    color: #2c5aa0;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.payment-next-steps p {
    margin-bottom: 0.75rem;
}

.payment-next-steps ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
    padding: 0;
}

.payment-next-steps li {
    margin-bottom: 0.5rem;
}

.address-box {
    background: white;
    padding: 0.75rem;
    border-left: 4px solid #2c5aa0;
    margin: 0.75rem 0;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.next-steps {
    background: #f0f7ff;
    padding: 1.5rem;
    border-radius: 10px;
}

.next-steps h3 {
    color: #2c5aa0;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.next-steps ol {
    margin: 0 0 0 1.5rem;
    padding: 0;
}

.next-steps li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.member-resources {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.member-resources h3 {
    color: #2c5aa0;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.resource-link:hover {
    border-color: #2c5aa0;
    transform: translateX(5px);
    background: #f0f7ff;
}

.resource-icon {
    font-size: 1.3rem;
}

.resource-link span:last-child {
    font-weight: 600;
    font-size: 0.95rem;
}

.welcome-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.welcome-footer .btn {
    min-width: 150px;
}

/* Loading spinner for submit button */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

/* Responsive adjustments for welcome panel */
@media (max-width: 768px) {
    .welcome-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .welcome-panel {
        max-height: 95vh;
    }
    
    .welcome-header {
        padding: 1.5rem;
    }
    
    .welcome-header h2 {
        font-size: 1.5rem;
    }
}

/* Print styles for welcome panel */
@media print {
    .welcome-panel-overlay {
        position: static;
        background: none;
        padding: 0;
    }
    
    .welcome-panel {
        box-shadow: none;
        max-width: 100%;
        max-height: none;
    }
    
    .welcome-content-grid {
        display: block;
    }
    
    .welcome-column {
        margin-bottom: 2rem;
    }
    
    .welcome-footer,
    .resource-links {
        display: none;
    }
    
    .welcome-header {
        background: none;
        color: black;
        border-bottom: 2px solid #2c5aa0;
    }
    
    .welcome-icon {
        display: none;
    }
}

/* ========================================
   PDF APPLICATION COMPONENT - UNIFORM CARDS
   ======================================== */
.pdf-application-section {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    align-content: center;
    justify-content: center;
}

.pdf-application-header h3 {
    color: #2c5aa0;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.pdf-application-header p {
    color: #666;
    margin: 0 0 2rem 0;
    font-size: 1rem;
}

.pdf-application-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pdf-action-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 220px; /* Ensures uniform card height */
    position: relative;
}

.pdf-action-card:hover {
    border-color: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.15);
}

.pdf-action-card.online-card {
    border-color: #2c5aa0;
    background: linear-gradient(135deg, #f0f7ff, #ffffff);
}

.pdf-action-card.online-card:hover {
    border-color: #1a3a6b;
    background: linear-gradient(135deg, #e8f0ff, #f8fbff);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(44, 90, 160, 0.25);
}

.pdf-action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.pdf-action-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.pdf-action-content h4 {
    color: #2c5aa0;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pdf-action-content p {
    color: #666;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
    /* Ensure text is balanced and doesn't exceed 2 lines */
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button positioning - ensures all buttons are at the same distance from bottom */
.pdf-action-content button,
.pdf-action-content .btn {
    margin-top: auto;
    margin-bottom: 0;
    align-self: center;
    min-width: 120px; /* Ensures consistent button width */
    flex-shrink: 0;
}

.pdf-application-instructions {
    background: #e8f0ff;
    border: 1px solid #2c5aa0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
}

.instructions-content h4 {
    color: #2c5aa0;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.instructions-content ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.instructions-content li {
    margin-bottom: 0.5rem;
}

.instructions-note {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.pdf-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.pdf-loading-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.pdf-loading-content .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

.pdf-loading-content p {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .pdf-application-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pdf-action-card {
        min-height: auto;
        padding: 1.25rem;
    }
    
    .pdf-action-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .pdf-action-content p {
        line-clamp: 3; /* Standard property for compatibility */
        -webkit-line-clamp: 3; /* Allow more lines on mobile */
    }
}

@media (max-width: 768px) {
    .pdf-action-card {
        padding: 1rem;
    }
    
    .pdf-action-icon {
        font-size: 1.8rem;
    }
}

/* Ensure buttons have consistent styling across all cards */
.pdf-action-card .btn {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.pdf-action-card .btn-primary {
    background: #2c5aa0;
    color: white;
    border: 2px solid #2c5aa0;
}

.pdf-action-card .btn-primary:hover {
    background: #1a3a6b;
    border-color: #1a3a6b;
    transform: translateY(-1px);
}

.pdf-action-card .btn-outline {
    background: transparent;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

.pdf-action-card .btn-outline:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-1px);
}
/* ========================================
   17. MEMBERSHIP FORM TOGGLE STATES
   ======================================== */

/* Base container styles for all toggle states */
.membership-fallback,
.membership-offline,
.membership-loading,
.membership-error,
.membership-success {
    padding: 3rem 2rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin: 2rem 0;
}

/* Fallback state - when membership system is disabled */
.membership-fallback .fallback-content h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.membership-fallback .fallback-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.membership-fallback .fallback-actions {
    margin: 2rem 0;
}

.membership-fallback .contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.membership-fallback .contact-info p {
    color: #555;
    font-size: 1rem;
    margin: 0;
}

.membership-fallback .contact-info a {
    color: #2c5aa0;
    font-weight: 600;
    text-decoration: none;
}

.membership-fallback .contact-info a:hover {
    text-decoration: underline;
}

/* Offline state - when online application is temporarily disabled */
.membership-offline .offline-content h3 {
    color: #ff6b35;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.membership-offline .offline-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.membership-offline .offline-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.membership-offline .option-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.membership-offline .option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.membership-offline .option-card h4 {
    color: #2c5aa0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.membership-offline .option-card p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Loading state */
.membership-loading .loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.membership-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5aa0;
    border-radius: 50%;
    animation: toggleSpin 1s linear infinite;
}

@keyframes toggleSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.membership-loading p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Error state */
.membership-error .error-content h3 {
    color: #f44336;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.membership-error .error-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.membership-error .error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Success state */
.membership-success .success-content h3 {
    color: #28a745;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.membership-success .success-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.membership-success .success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button styles for toggle states (inherit from existing .btn classes) */
.membership-fallback .btn,
.membership-offline .btn,
.membership-error .btn,
.membership-success .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 150px;
}

/* Use existing primary/secondary button styles */
.membership-fallback .btn-primary,
.membership-offline .btn-primary,
.membership-error .btn-primary,
.membership-success .btn-primary {
    background-color: #2c5aa0;
    color: white;
}

.membership-fallback .btn-primary:hover,
.membership-offline .btn-primary:hover,
.membership-error .btn-primary:hover,
.membership-success .btn-primary:hover {
    background-color: #1a3a6b;
    color: white;
    text-decoration: none;
}

.membership-fallback .btn-secondary,
.membership-offline .btn-secondary,
.membership-error .btn-secondary,
.membership-success .btn-secondary {
    background-color: #ff6b35;
    color: white;
}

.membership-fallback .btn-secondary:hover,
.membership-offline .btn-secondary:hover,
.membership-error .btn-secondary:hover,
.membership-success .btn-secondary:hover {
    background-color: #e55a2b;
    color: white;
    text-decoration: none;
}

/* Responsive design for toggle states */
@media (max-width: 768px) {
    .membership-fallback,
    .membership-offline,
    .membership-loading,
    .membership-error,
    .membership-success {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .membership-offline .offline-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .membership-offline .option-card {
        padding: 1.5rem;
    }
    
    .membership-error .error-actions,
    .membership-success .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .membership-fallback .btn,
    .membership-offline .btn,
    .membership-error .btn,
    .membership-success .btn {
        min-width: 200px;
    }
}

/* Admin toggle status indicator (for development - can be removed in production) */
.membership-toggle-status {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 10000;
    font-family: monospace;
    display: none; /* Hidden by default */
}

.membership-toggle-status.show {
    display: block;
}

/* Feature status indicators */
.feature-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.feature-status.enabled {
    background-color: #d4edda;
    color: #155724;
}

.feature-status.disabled {
    background-color: #f8d7da;
    color: #721c24;
}
/* ========================================
   18. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 968px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .interests-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-row:has(.small-input) {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .payment-method {
        min-width: 100%;
        justify-content: flex-start;
    }
    
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dependents-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Reduced from 200px */
        gap: 0.75rem;
        margin-top: 1.5rem;
        max-height: 300px;
        overflow-y: auto;
        padding: 0.5rem;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .progress-indicator {
        padding: 0 0.5rem;
    }
    
    .progress-step .step-label {
        font-size: 0.65rem;
    }
    
    /* Hide labels on very small screens except active */
    .progress-step .step-label {
        display: none;
    }
    
    .progress-step.active .step-label {
        display: block;
    }
    
    /* Welcome panel responsive */
    .welcome-panel {
        margin: 1rem;
    }
    
    .welcome-header h2 {
        font-size: 1.5rem;
    }
    
    .welcome-content {
        padding: 1.5rem;
    }
    
    .resource-links {
        grid-template-columns: 1fr;
    }
    
    .welcome-footer {
        flex-direction: column;
    }
    
    .welcome-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-method {
        padding: 0.6rem 1rem;
        gap: 0.4rem;
    }
    
    .payment-method h4 {
        font-size: 0.9rem;
    }
    
    .payment-method .payment-icon {
        font-size: 1.3rem;
    }
    
    /* Welcome panel on small screens */
    .welcome-panel-overlay {
        padding: 1rem;
    }
    
    .welcome-header {
        padding: 2rem 1rem;
    }
    
    .welcome-icon {
        font-size: 3rem;
    }
    
    .welcome-message p {
        font-size: 1rem;
    }
    
    .payment-next-steps,
    .member-resources {
        padding: 1.5rem;
    }
}

.form-group input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 44px; /* Touch target size */
    position: relative;
}

/* Style for the small helper text */
.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.75rem;
    line-height: 1;
}

/* iOS-specific fixes */
.form-group input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    padding-left: 0.1rem;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .form-group input[type="date"] {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
        padding: 0.75rem;
    }
    
    .form-group small {
        font-size: 0.875rem;
        margin-top: 0.5rem;
    }
    
    /* Ensure date picker indicator is large enough to tap */
    .form-group input[type="date"]::-webkit-calendar-picker-indicator {
        padding: 0.75rem;
        cursor: pointer;
    }
}

/* ========================================
   WELCOME PANEL (Payment Confirmation)
   ======================================== */
/* Add this section to membership.css */

.welcome-panel {
    animation: fadeIn 0.5s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.welcome-panel h2 {
    line-height: 1.2;
}

.welcome-panel h3 {
    line-height: 1.3;
}

.welcome-panel p {
    line-height: 1.5;
}

.welcome-panel ul {
    line-height: 1.6;
}

.welcome-panel a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.2s;
}

.welcome-panel a:hover {
    color: #1a3a6b;
    text-decoration: underline;
}

/* Button styling in welcome panel */
.welcome-panel .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.welcome-panel .btn-primary {
    background: #2c5aa0;
    color: white;
}

.welcome-panel .btn-primary:hover {
    background: #1a3a6b;
    transform: translateY(-2px);
}

.welcome-panel .btn-secondary {
    background: #ff6b35;
    color: white;
}

.welcome-panel .btn-secondary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* Fade in animation */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Responsive adjustments for welcome panel */
@media (max-width: 768px) {
    .welcome-panel {
        padding: 1rem !important;
    }
    
    .welcome-panel h2 {
        font-size: 1.25rem !important;
    }
    
    .welcome-panel .btn {
        display: block;
        width: 100%;
        margin: 0.25rem 0 !important;
    }
}