/* =========================================================
   Feedback Form Plugin — frontend styles
   Минималистичный стиль, легко переопределяется темой.
   ========================================================= */

.ffp-wrap {
    max-width: 600px;
    margin: 0 auto;
    font-family: inherit;
}

/* ---- Поля ---- */
.ffp-row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {
    .ffp-row--two {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.ffp-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.ffp-field label {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    margin-bottom: 6px;
}

.ffp-req {
    color: #ef4444;
    margin-left: 2px;
}

.ffp-field input,
.ffp-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: inherit;
    background: transparent;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
}

.ffp-field input:focus,
.ffp-field textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.ffp-field input.ffp-invalid,
.ffp-field textarea.ffp-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .10);
}

.ffp-field textarea {
    resize: vertical;
    min-height: 110px;
}

/* ---- Ошибки полей ---- */
.ffp-field-error {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    min-height: 16px;
}

/* ---- Глобальная ошибка ---- */
.ffp-error-global {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #991b1b;
    margin-bottom: 14px;
}

/* ---- Кнопка ---- */
.ffp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, transform .1s;
    min-width: 140px;
}

.ffp-btn:hover:not(:disabled) {
    background: #4f46e5;
}

.ffp-btn:active:not(:disabled) {
    transform: scale(.98);
}

.ffp-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ---- Спиннер ---- */
.ffp-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ffp-spin .7s linear infinite;
}

@keyframes ffp-spin {
    to { transform: rotate(360deg); }
}

/* ---- Успех ---- */
.ffp-success {
    text-align: center;
    padding: 32px 20px;
}

.ffp-success svg {
    width: 52px;
    height: 52px;
    color: #10b981;
    margin-bottom: 12px;
}

.ffp-success p {
    font-size: 16px;
    line-height: 1.6;
    color: inherit;
    margin: 0;
}

/* ---- Honeypot ---- */
.ffp-hp {
    position: absolute;
    left: -9999px;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}
