/* === Theme override rules (added for Elementor compatibility) === */
.matcher-optin-header { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important; color: white !important; border-radius: 12px !important; }
.matcher-optin-header h1, .matcher-optin-header h2, .matcher-optin-header h3 { color: white !important; font-size: 42px !important; }
.matcher-optin-section { background: white !important; border-radius: 12px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important; }
.matcher-optin-section h2 { color: #333 !important; border-bottom: 3px solid #f5576c !important; font-size: 28px !important; }
.matcher-privacy { background: #f0f9ff !important; }
.matcher-steps li::before { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important; color: white !important; }
/* Matcher Opt-In Page Styles */

.matcher-optin-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.matcher-optin-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); /* override */
    border-radius: 12px;
    color: white;
    margin-bottom: 40px;
}

.matcher-optin-header h1 {
    margin: 0 0 10px 0;
    font-size: 42px;
    font-weight: 700;
}

.matcher-optin-header .subtitle {
    margin: 0;
    font-size: 20px;
    opacity: 0.95;
}

/* Sections */
.matcher-optin-section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.matcher-optin-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
    border-bottom: 3px solid #f5576c;
    padding-bottom: 10px;
}

.matcher-optin-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.matcher-optin-section ul {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-left: 20px;
}

.matcher-optin-section li {
    margin-bottom: 10px;
}

.matcher-optin-section strong {
    color: #333;
}

/* Steps */
.matcher-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step-counter;
}

.matcher-steps li {
    counter-increment: step-counter;
    margin-bottom: 25px;
    padding-left: 60px;
    position: relative;
}

.matcher-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.matcher-steps li strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.matcher-steps li p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

/* Privacy Section */
.matcher-privacy {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
}

.privacy-points {
    margin: 15px 0;
}

.privacy-point {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.privacy-timing {
    margin-top: 20px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

/* Preview Section */
.matcher-preview-section {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.matcher-preview-card {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

/* Matcher Card Preview (matches actual matcher styling) */
.matcher-preview-inner {
    display: inline-block;
}

.matcher-card {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.matcher-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.matcher-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: 700;
    color: white;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.photo-note {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.photo-note a {
    color: #f5576c;
    text-decoration: none;
}

.photo-note a:hover {
    text-decoration: underline;
}

.matcher-info {
    margin-bottom: 15px;
}

.matcher-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.matcher-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.matcher-work {
    font-size: 14px;
    color: #f5576c;
    font-weight: 500;
}

.matcher-crush-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    width: 100%;
    opacity: 0.6;
    cursor: not-allowed;
}

.preview-note {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

/* Update Notice */
.matcher-update-notice {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
    border: 2px solid #8b5cf6;
    text-align: center;
}

.matcher-update-notice p {
    margin-top: 0;
    margin-bottom: 15px;
    color: #6b21a8;
    font-size: 16px;
}

.matcher-update-notice .button {
    background: linear-gradient(135deg, #8b5cf6 0%, #6b21a8 100%);
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.matcher-update-notice .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    color: white;
}

/* FAQs */
.matcher-faqs {
    background: #f9fafb;
}

.faq-section-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.faq-section-toggle:hover {
    color: #f5576c;
}

.faq-section-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
    display: inline-block;
    transform: rotate(-90deg); /* Start collapsed (pointing right) */
}

.faq-section-content {
    display: none !important; /* Hidden by default - force on mobile */
    overflow: hidden;
}

/* When opened by JavaScript, override the !important */
.faq-section-content.faq-open {
    display: block !important;
}

.faq-hint {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
    font-style: italic;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.faq-question {
    color: #333;
    font-size: 17px;
    margin: 0;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    user-select: none;
}

.faq-question:hover {
    background: #f9fafb;
    color: #f5576c;
}

.faq-item.active .faq-question {
    color: #f5576c;
    background: #fef2f2;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: #999;
    transition: transform 0.2s ease;
    min-width: 20px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    color: #f5576c;
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px 20px;
    border-top: 1px solid #e5e7eb;
}

.faq-answer p {
    margin: 15px 0 0 0;
    color: #666;
    line-height: 1.6;
}

/* Ready Section */
.matcher-ready {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
    border-left: 4px solid #0ea5e9;
}

.matcher-ready h2 {
    border-bottom: none;
    color: #0c4a6e;
}

.matcher-ready p {
    font-size: 18px;
    margin-bottom: 25px;
}

/* Opt-in Deadline Countdown */
.optin-deadline-countdown {
    margin: 25px auto;
    padding: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    max-width: 500px;
}

.countdown-header {
    text-align: center;
}

.countdown-label {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #333;
}

.countdown-timer {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #3b82f6;
    margin: 10px 0;
    transition: color 0.3s ease;
}

.countdown-hours,
.countdown-minutes,
.countdown-seconds {
    display: inline-block;
    min-width: 30px;
}

.countdown-event {
    margin: 15px 0 0 0;
    font-size: 15px;
    color: #666;
}

.countdown-event strong {
    color: #333;
}

/* Opted In Active Notice (Before Event) */
.optin-active-notice {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
}

.optin-active-notice p {
    margin: 10px 0;
    color: #065f46;
}

.optin-active-notice strong {
    color: #047857;
}

/* Opted Out Notice (Before Event) */
.optout-status-notice {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
}

.optout-status-notice p {
    margin: 10px 0;
    color: #78350f;
}

.optout-status-notice strong {
    color: #92400e;
}

/* Locked Notice (Event Started, User Opted In) */
.optin-locked-notice {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.optin-locked-notice p {
    margin: 10px 0;
    color: #065f46;
}

.optin-locked-notice strong {
    color: #047857;
}

/* Closed Notice (Event Started, User Opted Out) */
.optin-closed-notice {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
}

.optin-closed-notice p {
    margin: 10px 0;
    color: #7f1d1d;
}

.optin-closed-notice strong {
    color: #991b1b;
}

.matcher-ready-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.matcher-ready-actions .button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.matcher-ready-actions .button-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
}

.matcher-ready-actions .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
}

.matcher-ready-actions .matcher-optout-btn {
    background: white;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.matcher-ready-actions .matcher-optout-btn:hover {
    background: #fef2f2;
    transform: translateY(-2px);
    border-color: #b91c1c;
    color: #b91c1c;
}

.optin-note {
    font-size: 14px;
    color: #64748b;
    margin-top: 20px;
    font-style: italic;
}

/* Refresh Notice */
.matcher-refresh-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
    font-weight: 600;
}

.matcher-refresh-notice.show {
    opacity: 1;
    transform: translateX(0);
}

/* Login Notice */
.matcher-optin-login {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.matcher-optin-login p {
    font-size: 18px;
    margin: 0;
}

.matcher-optin-login a {
    color: #f5576c;
    font-weight: 600;
    text-decoration: none;
}

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

/* No Data */
.matcher-no-data {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .matcher-optin-container {
        padding: 15px;
    }
    
    .matcher-optin-header {
        padding: 30px 15px;
    }
    
    .matcher-optin-header h1 {
        font-size: 32px;
    }
    
    .matcher-optin-header .subtitle {
        font-size: 16px;
    }
    
    .matcher-optin-section {
        padding: 20px;
    }
    
    .matcher-optin-section h2 {
        font-size: 24px;
    }
    
    .matcher-steps li {
        padding-left: 50px;
    }
    
    .matcher-steps li::before {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .matcher-card {
        min-width: auto;
    }
    
    .matcher-photo,
    .matcher-photo-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .matcher-photo-placeholder {
        font-size: 50px;
    }
    
    .matcher-ready-actions {
        flex-direction: column;
    }
    
    .matcher-ready-actions .button {
        width: 100%;
    }
    
    /* Ensure FAQ stays collapsed on mobile */
    .faq-section-content {
        display: none !important;
    }
    
    .faq-section-content.faq-open {
        display: block !important;
    }
    
    .faq-section-toggle {
        font-size: 20px;
    }
    
    .faq-question {
        font-size: 15px;
        padding: 15px;
    }
    
    /* Countdown timer on mobile */
    .optin-deadline-countdown {
        padding: 18px 15px;
        margin: 20px 0;
    }
    
    .countdown-label {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .countdown-timer {
        font-size: 30px;
    }
    
    .countdown-event {
        font-size: 14px;
    }
    
    /* Notices on mobile */
    .optin-locked-notice,
    .optin-closed-notice,
    .optin-active-notice,
    .optout-status-notice {
        padding: 25px 20px;
        margin: 15px 0;
    }
    
    .optin-locked-notice p,
    .optin-closed-notice p,
    .optin-active-notice p,
    .optout-status-notice p {
        font-size: 16px;
    }
}

/* Status Badges */
.matcher-status-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
}

.status-badges-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.status-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.status-green  { background: #d4edda; color: #155724; }
.status-red    { background: #f8d7da; color: #721c24; }
.status-orange { background: #fff3cd; color: #856404; }
.status-grey   { background: #e2e3e5; color: #383d41; }

.checkin-reminder {
    font-size: 13px;
    color: #856404;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

/* Go to JSC Crush button */
.matcher-ready-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.crush-go-btn {
    display: inline-block;
    background: linear-gradient(135deg, #43b89c, #2e8b6e);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 10px rgba(46,139,110,0.25);
}

.crush-go-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(46,139,110,0.35);
    color: #fff;
}

.crush-go-btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.crush-go-reminder {
    font-size: 13px;
    color: #856404;
    margin: 0;
    text-align: center;
}

/* === Phones (2026-10-26): less padding and nesting, so the cards use the screen's width === */
@media screen and (max-width: 600px) {
    .matcher-optin-section {
        padding: 16px 14px !important;
        margin-bottom: 16px !important;
    }

    /* the theme puts ~40px above every heading; the 28px !important rule above wins over the 24px one */
    .matcher-optin-section h2 {
        font-size: 22px !important;
        margin-top: 0 !important;
        margin-bottom: 14px !important;
        padding-bottom: 8px !important;
    }

    .matcher-optin-section > :first-child {
        margin-top: 0 !important;
    }

    /* the status box sits inside the card: thin it out so its text gets the width */
    .optin-locked-notice,
    .optin-closed-notice,
    .optin-active-notice,
    .optout-status-notice {
        padding: 16px 12px;
        margin: 12px 0;
    }

    .optin-deadline-countdown {
        padding: 12px 10px;
        margin: 14px 0;
    }

    .countdown-timer {
        font-size: 28px;
    }

    .matcher-ready p {
        margin-bottom: 14px;
    }

    .matcher-ready-actions {
        margin-top: 16px;
    }

    /* the preview card: a smaller photo, less space around it */
    .matcher-preview-card {
        margin: 14px 0;
    }

    .matcher-card {
        padding: 14px 12px;
    }

    .matcher-photo,
    .matcher-photo-placeholder {
        width: 110px;
        height: 110px;
    }

    .matcher-photo-placeholder {
        font-size: 44px;
    }
}

/* The /crush/ page's FAQ (2026-10-26): the whole section starts collapsed. The questions are an Elementor
   Toggle widget right after the heading's text widget; the heading (.faq-section-toggle) opens them
   (matcher-optin-script.js). Hidden from the first paint, before the script runs. */
.elementor-widget-text-editor:has(.faq-section-toggle) + .elementor-widget-toggle:not(.faq-open) {
    display: none !important;
}

.matcher-faqs h2.faq-section-toggle {
    margin-bottom: 0 !important;
}
