/* MatConnect for WordPress — shared block styles */

/* ── Editor placeholder ─────────────────────────────────────── */
.matconnect-block-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px;
    border: 2px dashed #c7d2fe;
    border-radius: 10px;
    background: #eef2ff;
    color: #3730a3;
    text-align: center;
    font-family: sans-serif;
}
.matconnect-block-placeholder .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* ── Error / empty states ───────────────────────────────────── */
.matconnect-error {
    color: #dc2626;
    font-size: 0.9em;
}
.matconnect-empty {
    color: #6b7280;
    font-style: italic;
}

/* ── Schedule ───────────────────────────────────────────────── */
.matconnect-schedule {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mc-day-label {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 0.5rem;
}
.mc-class-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mc-class {
    border-left: 4px solid currentColor;
    padding: 4px 0 4px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
    align-items: baseline;
}
.mc-class-name     { font-weight: 600; }
.mc-class-time     { color: #6b7280; font-size: 0.9em; }
.mc-class-instructor { color: #9ca3af; font-size: 0.85em; }
.mc-class-spots    { color: #9ca3af; font-size: 0.8em; }

/* ── Pricing ────────────────────────────────────────────────── */
.matconnect-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.mc-plan {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mc-plan-name     { font-size: 1.05rem; font-weight: 700; margin: 0; }
.mc-plan-price    { font-size: 1.75rem; font-weight: 800; }
.mc-plan-interval { font-size: 0.9rem; font-weight: 400; opacity: 0.7; }
.mc-plan-desc     { color: #6b7280; font-size: 0.9em; margin: 0; flex: 1; }
.mc-plan-cta {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* ── Lead form ──────────────────────────────────────────────── */
.matconnect-lead-form .mc-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
}
.mc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mc-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}
.mc-field input,
.mc-field select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}
.mc-field input:focus,
.mc-field select:focus {
    outline: 2px solid currentColor;
    outline-offset: 1px;
    border-color: transparent;
}
.matconnect-lead-form button[type="submit"] {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    align-self: flex-start;
}
.mc-form-error { color: #dc2626; font-size: 0.9em; margin: 0; }
.mc-form-success { color: #16a34a; font-weight: 600; }

/* ── Testimonials ───────────────────────────────────────────── */
.matconnect-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.mc-testimonial {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
}
.mc-testimonial-text {
    font-style: italic;
    color: #374151;
    margin: 0 0 0.75rem;
}
.mc-testimonial-author {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mc-belt {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.8em;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.matconnect-faq {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.mc-faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.mc-faq-item:last-child { border-bottom: none; }
.mc-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: inherit;
}
.mc-faq-question:hover { background: #f9fafb; }
.mc-faq-icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.mc-faq-answer {
    padding: 0 1.25rem 1rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}
