/* testimony-form.css — place in the same plugin folder */

/* ── Honeypot: visually hidden but accessible */
.tsf-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ── Form wrapper */
.tsf-form {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-family: inherit;
}

/* ── Fields */
.tsf-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tsf-field label {
    font-weight: 600;
    font-size: 0.9rem;
}

.tsf-required {
    color: #e53e3e;
    margin-left: 2px;
}

.tsf-field input[type="text"],
.tsf-field input[type="email"],
.tsf-field input[type="url"],
.tsf-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.tsf-field input:focus,
.tsf-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.tsf-field textarea {
    resize: vertical;
    min-height: 130px;
}

.tsf-field small {
    color: #718096;
    font-size: 0.8rem;
}

/* ── Submit button */
.tsf-submit {
    align-self: flex-start;
    padding: 0.7rem 1.6rem;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.tsf-submit:hover  { background: #5a67d8; }
.tsf-submit:active { transform: scale(0.98); }

/* ── Notices */
.tsf-notice {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tsf-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

.tsf-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

/* ── Testimony card (display side) */
.tsf-testimony {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.tsf-testimony__author {
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.tsf-testimony__text {
    color: #4a5568;
    margin: 0 0 1rem;
    white-space: pre-line;
}

.tsf-testimony__image img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.tsf-testimony__video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.tsf-testimony__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
