/* CopperPress FAQ Collector — public form */

.cpfaq-form-wrap {
    --cpfaq-ink: #1a2330;
    --cpfaq-muted: #5f6b7a;
    --cpfaq-line: #dfe3e8;
    --cpfaq-accent: #1d4ed8;
    --cpfaq-accent-dark: #1e40af;
    --cpfaq-bg: #ffffff;
    --cpfaq-bg-soft: #f7f8fa;
    --cpfaq-radius: 10px;

    max-width: 760px;
    margin: 0 auto;
    padding: 0 4px;
    color: var(--cpfaq-ink);
    font-size: 16px;
    line-height: 1.6;
}

/* Honeypot — visually removed but still in the DOM for bots */
.cpfaq-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Sponsor strip ---------- */

.cpfaq-sponsor {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75em;
    margin-bottom: 2em;
    padding: 0.9em 1.25em;
    border: 1px solid var(--cpfaq-line);
    border-radius: var(--cpfaq-radius);
    background: linear-gradient(180deg, #fdfdfd, #f4f6f8);
}

.cpfaq-sponsor__label {
    color: var(--cpfaq-muted);
    text-transform: uppercase;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.cpfaq-sponsor__link {
    text-decoration: none;
    font-weight: 700;
    color: var(--cpfaq-ink);
}

.cpfaq-sponsor__link:hover {
    color: var(--cpfaq-accent);
}

.cpfaq-sponsor__logo {
    max-height: 44px;
    width: auto;
    display: block;
}

/* ---------- Notices ---------- */

.cpfaq-notice {
    padding: 1.1em 1.4em;
    border-radius: var(--cpfaq-radius);
    margin-bottom: 1.75em;
    border: 1px solid;
}

.cpfaq-notice h3 {
    margin: 0 0 0.35em;
    font-size: 1.15em;
}

.cpfaq-notice p {
    margin: 0;
}

.cpfaq-notice--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.cpfaq-notice--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.cpfaq-notice--info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

/* ---------- Sections (fieldsets as cards) ---------- */

.cpfaq-fieldset {
    border: 1px solid var(--cpfaq-line);
    border-radius: var(--cpfaq-radius);
    background: var(--cpfaq-bg);
    padding: 1.75em 1.75em 1.25em;
    margin: 0 0 1.75em;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.cpfaq-fieldset legend {
    font-weight: 700;
    font-size: 1.05em;
    letter-spacing: 0.01em;
    padding: 0.15em 0.75em;
    border: 1px solid var(--cpfaq-line);
    border-radius: 999px;
    background: var(--cpfaq-bg-soft);
}

.cpfaq-fieldset > .cpfaq-hint {
    margin-top: 0;
}

/* ---------- Fields ---------- */

.cpfaq-field {
    margin: 0 0 1.25em;
}

.cpfaq-field label {
    display: block;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 0.4em;
}

.cpfaq-field input[type="text"],
.cpfaq-field input[type="email"],
.cpfaq-field input[type="tel"],
.cpfaq-field textarea {
    width: 100%;
    padding: 0.65em 0.9em;
    border: 1px solid var(--cpfaq-line);
    border-radius: 8px;
    background: #fff;
    color: var(--cpfaq-ink);
    font: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cpfaq-field input:focus,
.cpfaq-field textarea:focus {
    outline: none;
    border-color: var(--cpfaq-accent);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

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

.cpfaq-field input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.5em 0;
    color: var(--cpfaq-muted);
    font-size: 0.92em;
}

.cpfaq-field input[type="file"]::file-selector-button {
    margin-right: 0.9em;
    padding: 0.5em 1.1em;
    border: 1px solid var(--cpfaq-line);
    border-radius: 8px;
    background: var(--cpfaq-bg-soft);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cpfaq-field input[type="file"]::file-selector-button:hover {
    background: #eceff3;
}

.cpfaq-required {
    color: #dc2626;
}

.cpfaq-hint {
    display: block;
    color: var(--cpfaq-muted);
    font-size: 0.88em;
    margin: 0.35em 0 1.25em;
}

/* ---------- Contact section: two columns on wider screens ---------- */

@media (min-width: 600px) {
    .cpfaq-fieldset--contact {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1.5em;
    }

    .cpfaq-fieldset--contact legend {
        grid-column: 1 / -1;
    }

    /* Full Name, Email and Headshot get a full row */
    .cpfaq-fieldset--contact .cpfaq-field:nth-of-type(1),
    .cpfaq-fieldset--contact .cpfaq-field:nth-of-type(5),
    .cpfaq-fieldset--contact .cpfaq-field:nth-of-type(6) {
        grid-column: 1 / -1;
    }
}

/* ---------- Pool questions ---------- */

.cpfaq-question {
    padding: 1.1em 1.25em;
    margin-bottom: 1.1em;
    border: 1px solid var(--cpfaq-line);
    border-left: 4px solid var(--cpfaq-accent);
    border-radius: 8px;
    background: var(--cpfaq-bg-soft);
}

.cpfaq-question label {
    font-size: 1em;
    margin-bottom: 0.6em;
}

.cpfaq-question textarea {
    background: #fff;
}

/* ---------- Own questions repeater ---------- */

.cpfaq-own-question {
    padding: 1.1em 1.25em;
    margin-bottom: 1.1em;
    border: 1px dashed #b9c2cc;
    border-radius: 8px;
    background: var(--cpfaq-bg-soft);
}

.cpfaq-own-question .cpfaq-field:last-child {
    margin-bottom: 0;
}

.cpfaq-add-own-question {
    padding: 0.55em 1.4em;
    border: 1px solid var(--cpfaq-accent);
    border-radius: 8px;
    background: #fff;
    color: var(--cpfaq-accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.cpfaq-add-own-question:hover {
    background: var(--cpfaq-accent);
    color: #fff;
}

/* ---------- Counter + submit ---------- */

.cpfaq-counter {
    display: inline-block;
    margin: 0 0 1em;
    padding: 0.45em 1.1em;
    border-radius: 999px;
    background: #fef9ec;
    border: 1px solid #f5d77b;
    color: #92660a;
    font-weight: 600;
    font-size: 0.92em;
}

.cpfaq-counter--met {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.cpfaq-submit {
    margin: 0.25em 0 2em;
}

.cpfaq-submit button {
    width: 100%;
    padding: 0.95em 2em;
    border: none;
    border-radius: 8px;
    background: var(--cpfaq-accent);
    color: #fff;
    font: inherit;
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.cpfaq-submit button:hover:not(:disabled) {
    background: var(--cpfaq-accent-dark);
}

.cpfaq-submit button:active:not(:disabled) {
    transform: translateY(1px);
}

.cpfaq-submit button:disabled {
    background: #aebacb;
    cursor: not-allowed;
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
    .cpfaq-fieldset {
        padding: 1.25em 1.1em 0.9em;
    }

    .cpfaq-question,
    .cpfaq-own-question {
        padding: 0.9em;
    }
}
