/* ─── Participant Feedback Form ─── */
/* Extends profile.css (.profile-section, .form-grid, etc.) */

/* Hero — reuses .profile-hero */

/* Instructions block */
.instructions-block {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 16px 22px;
    margin-bottom: 22px;
}
.instructions-block strong {
    color: #075985;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}
.instructions-block ul {
    margin: 0;
    padding-left: 22px;
    color: #0c4a6e;
    font-size: 14px;
    line-height: 1.6;
}
.instructions-block li { margin-bottom: 3px; }

/* Rating scale */
.rating-scale-note {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 10px 14px;
    color: #78350f;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: center;
}

.rating-statement {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background 0.15s;
}
.rating-statement:hover { background: white; border-color: #cbd5e1; }
.rating-statement.is-answered { background: #f0fdf4; border-color: #86efac; }

.rating-statement-text {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.4;
}

.rating-options {
    display: flex;
    gap: 4px;
}

.rating-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all 0.15s;
    min-width: 38px;
    user-select: none;
}
.rating-option input[type="radio"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    margin: 0;
    transition: all 0.15s;
    position: relative;
}
.rating-option input[type="radio"]:checked {
    border-color: #10b981;
    background: #10b981;
}
.rating-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8px; height: 8px;
    background: white;
    border-radius: 50%;
}
.rating-option span {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}
.rating-option:hover input { border-color: #10b981; }
.rating-option:hover span { color: #10b981; }
.rating-option:has(input:checked) span { color: #047857; font-weight: 700; }

/* Open-ended question */
.open-question {
    margin-bottom: 18px;
}
.open-question label {
    display: block;
    font-size: 14.5px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.open-question textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    background: white;
    color: #1e293b;
    transition: all 0.15s;
}
.open-question textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* Past submissions list */
.past-submissions {
    margin-top: 26px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
}
.past-submissions h3 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.past-submissions h3 i { color: #64748b; }

.past-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.past-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
}
.past-item-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.past-item-meta strong { color: #1e293b; font-size: 14px; }
.past-item-meta small { color: #94a3b8; }

.past-item-actions {
    display: flex;
    gap: 6px;
}
.past-action-btn {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}
.past-action-btn:hover { background: #dbeafe; }

/* Responsive */
@media (max-width: 768px) {
    .rating-statement {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .rating-options {
        justify-content: space-between;
        width: 100%;
    }
    .rating-option { flex: 1; min-width: 0; }
}

/* ─── Google-Forms-style member question cards ─── */
.gfm-section-head {
    margin: 26px 0 12px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    border-top: 4px solid #10b981;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.gfm-section-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}
.gfm-section-head p {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: #94a3b8;
}
.gfm-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gfm-card:hover { box-shadow: 0 3px 14px rgba(0,0,0,0.07); }
.gfm-card:focus-within { border-left-color: #10b981; box-shadow: 0 3px 16px rgba(16,185,129,0.12); }
.gfm-card.is-answered { border-left-color: #10b981; }
.gfm-q-text {
    display: block;
    font-size: 15.5px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.5;
    margin-bottom: 14px;
}
.gfm-q-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 24px; padding: 0 6px;
    background: #ecfdf5; color: #047857;
    border-radius: 6px; font-size: 13px; font-weight: 700;
    margin-right: 10px;
}
.gfm-req { color: #ef4444; font-weight: 700; }

.gfm-scale {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.gfm-scale-label { font-size: 12.5px; color: #94a3b8; font-weight: 500; }
.gfm-scale-options { display: flex; gap: 4px; }
.gfm-opt {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    cursor: pointer; padding: 4px 10px; border-radius: 10px;
    transition: background 0.12s ease;
}
.gfm-opt:hover { background: #f1f5f9; }
.gfm-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.gfm-opt-dot {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid #cbd5e1; transition: all 0.12s ease;
}
.gfm-opt-num { font-size: 12px; font-weight: 600; color: #94a3b8; }
.gfm-opt:hover .gfm-opt-dot { border-color: #10b981; }
.gfm-opt input:checked + .gfm-opt-dot {
    border-color: #10b981; background: #10b981;
    box-shadow: inset 0 0 0 4px #fff;
}
.gfm-opt input:checked ~ .gfm-opt-num { color: #047857; }
.gfm-opt input:focus-visible + .gfm-opt-dot { outline: 2px solid #10b981; outline-offset: 2px; }

.gfm-textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14.5px;
    font-family: inherit;
    color: #1e293b;
    resize: vertical;
}
.gfm-textarea:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.12); }

@media (max-width: 640px) {
    .gfm-scale { gap: 8px; }
    .gfm-scale-options { width: 100%; justify-content: space-between; }
    .gfm-scale-label { font-size: 11px; }
}
