/* Math Contact Form — style.css */

.mcf-wrap {
    max-width: 560px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mcf-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

/* ── Notices ── */
.mcf-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    font-size: 14px;
    line-height: 1.5;
}
.mcf-notice--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}
.mcf-notice--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

/* ── Fields ── */
.mcf-field {
    margin-bottom: 1.1rem;
}
.mcf-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 5px;
}
.mcf-field input[type="text"],
.mcf-field input[type="email"],
.mcf-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.mcf-field input[type="text"]:focus,
.mcf-field input[type="email"]:focus,
.mcf-field textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.mcf-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* ── CAPTCHA ── */
.mcf-captcha-field {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px 16px;
}
.mcf-captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.mcf-captcha-eq {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    min-width: 100px;
}
.mcf-captcha-box input[type="text"] {
    width: 72px !important;
    text-align: center;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 8px !important;
}
.mcf-refresh-btn {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 7px 10px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}
.mcf-refresh-btn:hover {
    background: #fff;
    border-color: #9ca3af;
    color: #374151;
}
.mcf-captcha-hint {
    display: block;
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}
.mcf-captcha-hint--ok  { color: #059669; }
.mcf-captcha-hint--bad { color: #dc2626; }

/* ── Submit button ── */
.mcf-submit {
    width: 100%;
    padding: 11px;
    margin-top: 0.5rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
}
.mcf-submit:hover:not(:disabled) { opacity: 0.85; }
.mcf-submit:active:not(:disabled) { transform: translateY(1px); }
.mcf-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Shake animation ── */
@keyframes mcf-shake {
    0%,100% { transform: translateX(0); }
    20%     { transform: translateX(-6px); }
    40%     { transform: translateX(6px); }
    60%     { transform: translateX(-4px); }
    80%     { transform: translateX(4px); }
}
.mcf-shake {
    animation: mcf-shake 0.38s ease;
}
