/* Abhi's Testimonies — public form + display */

.abhis-t-form-wrap { max-width: 720px; margin: 0 auto; }

.abhis-t-alert {
    padding: 18px 22px; border-radius: 14px; margin-bottom: 24px;
    font-size: 15px; line-height: 1.6;
    animation: abhisTFade .4s cubic-bezier(.22,.61,.36,1);
}
.abhis-t-alert--success { background: linear-gradient(135deg, #e7f7ec, #d4efde); color: #1e5a2f; border: 1px solid #a7d8b6; }
.abhis-t-alert--error   { background: #fdecef; color: #7a1d35; border: 1px solid #f2b8c2; }
@keyframes abhisTFade { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }

.abhis-t-form {
    background: #fff;
    border: 1px solid var(--line, #ececf0);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(20,20,40,.04);
    position: relative;
}

.abhis-t-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    margin-bottom: 24px;
}
.abhis-t-field { display: flex; flex-direction: column; gap: 6px; }
.abhis-t-field--full { grid-column: 1 / -1; }
.abhis-t-field label {
    font-size: 13px; font-weight: 500; color: var(--ink-soft, #4a4a55);
    letter-spacing: 0;
}
.abhis-t-field .req { color: #c3284c; }
.abhis-t-field input,
.abhis-t-field select,
.abhis-t-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line, #ececf0);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink, #1a1a1f);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.abhis-t-field textarea { resize: vertical; min-height: 120px; }
.abhis-t-field input:focus,
.abhis-t-field select:focus,
.abhis-t-field textarea:focus {
    outline: 0;
    border-color: var(--derma-700, #c06c84);
    box-shadow: 0 0 0 4px rgba(192, 108, 132, .12);
}
.abhis-t-help { color: var(--muted, #787885); font-size: 12.5px; margin-top: 2px; }

.abhis-t-consent {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border: 1.5px solid var(--line, #ececf0); border-radius: 10px;
    cursor: pointer; font-size: 14.5px; color: var(--ink-soft, #4a4a55);
    transition: border-color .2s ease, background .2s ease;
}
.abhis-t-consent:has(input:checked) {
    border-color: var(--derma-700, #c06c84);
    background: var(--derma-50, #fff5f1);
    color: var(--derma-900, #6b2c43);
}

/* Star rating (accessible radio group, reverse-ordered so we can style adjacent siblings) */
.abhis-t-stars {
    display: inline-flex; flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px; font-size: 28px; line-height: 1;
}
.abhis-t-stars input { position: absolute; opacity: 0; pointer-events: none; }
.abhis-t-stars label {
    color: #d1d1d5; cursor: pointer;
    transition: color .15s ease, transform .15s ease;
    font-weight: normal;
    letter-spacing: 0;
}
.abhis-t-stars label:hover,
.abhis-t-stars label:hover ~ label,
.abhis-t-stars input:checked ~ label { color: #f0a63c; }
.abhis-t-stars label:hover { transform: scale(1.1); }

.abhis-t-submit {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 999px;
    background: linear-gradient(135deg, var(--ink, #1a1a1f), #2d2a38);
    color: #fff; border: 0;
    font: inherit; font-size: 15px; font-weight: 500;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: 0 8px 24px rgba(26, 26, 31, .18);
}
.abhis-t-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--derma-700, #c06c84), var(--rheum-900, #1f3a5f));
    box-shadow: 0 12px 28px rgba(192, 108, 132, .3);
}

@media (max-width: 640px) {
    .abhis-t-grid { grid-template-columns: 1fr; }
    .abhis-t-form { padding: 24px; }
}

/* Grid layout for display shortcode (when layout='grid') */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .testimonials-grid { grid-template-columns: 1fr; } }
