:root {
    --suggest-accent: var(--theme-accent-500, #009de1);
    --suggest-ink: #1e293b;
    --suggest-muted: #64748b;
    --suggest-border: #e2e8f0;
}

.suggest-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 -38px;
    padding: 1.5rem;
    border: 0;
    border-top: 1px solid var(--suggest-border);
    border-radius: 0;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
}

.suggest-cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 260px;
    flex: 1;
}

.suggest-cta-text strong {
    font-size: 15px;
    color: var(--suggest-ink);
}

.suggest-cta-text span {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--suggest-muted);
}

.suggest-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border: 0;
    border-radius: 10px;
    background: var(--suggest-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
}

.suggest-cta-btn:hover {
    background: var(--theme-accent-700, #0086c1);
}

.suggest-selection-btn {
    position: absolute;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border: 0;
    border-radius: 8px;
    background: var(--suggest-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.28);
    animation: suggest-pop 0.14s ease-out;
}

.suggest-selection-btn[hidden] {
    display: none;
}

.suggest-selection-btn::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--suggest-ink);
}

@keyframes suggest-pop {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .suggest-selection-btn { animation: none; }
    .suggest-cta-btn:hover { transform: none; }

    .suggest-modal-backdrop,
    .suggest-modal-panel {
        transition-duration: 0.01ms;
    }

    .suggest-modal-panel {
        transform: none;
    }
}

.suggest-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.suggest-modal[hidden] {
    display: none;
}

body.suggest-modal-open {
    overflow: hidden;
}

.suggest-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.suggest-modal-panel {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
    opacity: 0;
    transform: translateY(14px) scale(0.975);
    transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.suggest-modal.is-open .suggest-modal-backdrop {
    opacity: 1;
}

.suggest-modal.is-open .suggest-modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.suggest-modal.is-closing .suggest-modal-panel {
    transform: translateY(8px) scale(0.985);
}

.suggest-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--suggest-border);
}

.suggest-modal-head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    color: var(--suggest-ink);
}

.suggest-modal-head p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--suggest-muted);
}

.suggest-modal-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--suggest-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.suggest-modal-close:hover {
    background: #e2e8f0;
    color: var(--suggest-ink);
}

.suggest-form {
    padding: 1.25rem 1.5rem 0;
}

.suggest-field {
    margin-bottom: 1rem;
    flex: 1;
    min-width: 0;
}

.suggest-field-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.suggest-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.suggest-req {
    color: #dc2626;
}

.suggest-optional {
    font-weight: 400;
    color: #94a3b8;
}

.suggest-field textarea,
.suggest-field input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
    color: var(--suggest-ink);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.suggest-field textarea {
    resize: vertical;
    min-height: 68px;
}

.suggest-field textarea:focus,
.suggest-field input:focus {
    outline: none;
    border-color: var(--suggest-accent);
    box-shadow: 0 0 0 3px rgba(var(--theme-accent-500-rgb, 0, 157, 225), 0.15);
}

.suggest-field textarea.is-locked {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
    cursor: default;
}

.suggest-field textarea.is-locked:focus {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}

.suggest-field .has-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.suggest-help {
    margin: 0.4rem 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #94a3b8;
}

.suggest-form > .suggest-help {
    margin-bottom: 1.4rem;
}

.suggest-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.suggest-turnstile {
    margin-bottom: 1rem;
    min-height: 65px;
}

.suggest-turnstile:empty {
    min-height: 0;
    margin-bottom: 0;
}

.suggest-feedback {
    margin: 0 0 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 9px;
    font-size: 13.5px;
    line-height: 1.55;
}

.suggest-feedback[hidden] {
    display: none;
}

.suggest-feedback.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.suggest-feedback.is-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.suggest-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin: 0 -1.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--suggest-border);
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

.suggest-btn-primary,
.suggest-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.suggest-btn-primary {
    border: 0;
    background: var(--suggest-accent);
    color: #fff;
}

.suggest-btn-primary:hover:not(:disabled) {
    background: var(--theme-accent-700, #0086c1);
}

.suggest-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.suggest-btn-ghost {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
}

.suggest-btn-ghost:hover {
    background: #f1f5f9;
}

@media (max-width: 575.98px) {
    .suggest-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .suggest-cta-btn {
        justify-content: center;
    }

    .suggest-modal-foot {
        flex-direction: column-reverse;
    }

    .suggest-btn-primary,
    .suggest-btn-ghost {
        justify-content: center;
    }
}
