/* HB 373 Action Form — minimal, neutral styling that inherits the theme where possible. */

.hb373-form {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}
.hb373-form .hb373-heading {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.2rem 0 0.6rem;
    border-bottom: 2px solid #2b7a78;
    padding-bottom: 6px;
}
.hb373-form .hb373-label {
    display: block;
    font-weight: 600;
    margin: 0.8rem 0 0.3rem;
    font-size: 0.95rem;
}
.hb373-form input[type="text"],
.hb373-form input[type="email"],
.hb373-form input[type="tel"],
.hb373-form select,
.hb373-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
}
.hb373-form textarea { resize: vertical; line-height: 1.5; }
.hb373-form textarea[readonly] { background: #fafafa; color: #333; }
.hb373-form .hb373-hint {
    font-size: 0.85rem;
    color: #555;
    margin: 0.35rem 0 0;
    font-style: italic;
}

.hb373-recipients {
    margin: 0.3rem 0 0.8rem 1.2rem;
    padding: 0;
}
.hb373-recipients li { margin: 0; }

.hb373-row { display: grid; gap: 12px; }
.hb373-row-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 540px) {
    .hb373-row-3 { grid-template-columns: 1fr; }
}

.hb373-zip-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.hb373-zip-row input { max-width: 180px; }
.hb373-zip-hint { font-size: 0.95rem; color: #333; }

.hb373-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0.6rem 0;
    font-size: 0.95rem;
    line-height: 1.35;
}
.hb373-check input { margin-top: 3px; accent-color: #2b7a78; }

.hb373-fineprint {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.35;
    margin: 0.4rem 0 0.8rem;
}

.hb373-submit {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 1.2rem auto;
    background: #ea8a3b;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}
.hb373-submit:hover:not(:disabled) { background: #d47628; }
.hb373-submit:disabled { opacity: 0.6; cursor: wait; }

.hb373-status {
    margin: 1rem 0;
    padding: 12px 14px;
    border-radius: 4px;
    display: none;
    text-align: center;
}
.hb373-status.hb373-success { display: block; background: #e6f4ea; color: #1e6b36; border: 1px solid #a8d5b5; text-align: left; }
.hb373-status.hb373-error   { display: block; background: #fdecea; color: #8a1c13; border: 1px solid #f1b0ab; }

/* Mailto success block: primary "open in email app" + Gmail/Outlook fallbacks + copy details. */
.hb373-status .hb373-mt-msg {
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}
.hb373-status .hb373-mt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}
.hb373-status .hb373-mt-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    background: #fff;
    color: #1e6b36;
    border: 1px solid #1e6b36;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}
.hb373-status .hb373-mt-btn:hover { background: #f0f9f3; }
.hb373-status .hb373-mt-btn.hb373-mt-primary {
    background: #1e6b36;
    color: #fff;
}
.hb373-status .hb373-mt-btn.hb373-mt-primary:hover { background: #185228; }
.hb373-status .hb373-mt-btn.hb373-mt-tertiary {
    color: #6b7280;
    border-color: #cbd5e1;
    font-weight: 500;
}
.hb373-status .hb373-mt-btn.hb373-mt-tertiary:hover {
    background: #f1f5f9;
}
.hb373-status .hb373-mt-hint {
    font-size: 0.85rem;
    color: #475569;
    text-align: center;
    margin: 4px 0 12px;
    font-style: italic;
}
.hb373-status .hb373-mt-troubleshoot {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #78350f;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0 0 12px;
}
.hb373-status .hb373-mt-troubleshoot code {
    background: rgba(0,0,0,0.06);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 0.92em;
}
.hb373-status .hb373-mt-other {
    background: #fff;
    border: 1px solid #cfe5d6;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #1f2937;
}
.hb373-status .hb373-mt-other summary {
    cursor: pointer;
    font-weight: 600;
    color: #1e6b36;
    user-select: none;
}
.hb373-status .hb373-mt-other-hint {
    margin: 8px 0 6px;
    color: #475569;
    font-size: 0.86rem;
}
.hb373-status .hb373-mt-other-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 8px;
}
.hb373-status .hb373-mt-other-btn {
    padding: 6px 12px;
    font-size: 0.88rem;
}
.hb373-status .hb373-mt-other-status {
    margin: 4px 0 0;
    font-size: 0.84rem;
    min-height: 1.2em;
}
.hb373-status .hb373-mt-copy-ok {
    color: #1e6b36;
    font-weight: 600;
}
.hb373-status .hb373-mt-copy-fail {
    color: #b45309;
    font-weight: 600;
}
.hb373-status .hb373-mt-manual {
    margin-top: 8px;
    font-size: 0.9rem;
    background: #fff;
    border: 1px solid #cfe5d6;
    border-radius: 6px;
    padding: 8px 12px;
    color: #1f2937;
}
.hb373-status .hb373-mt-manual summary {
    cursor: pointer;
    font-weight: 600;
    color: #1e6b36;
    user-select: none;
}
.hb373-status .hb373-mt-row {
    margin: 8px 0;
    word-break: break-word;
}
.hb373-status .hb373-mt-body {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px 10px;
    margin-top: 6px;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.88rem;
    max-height: 240px;
    overflow: auto;
}
.hb373-status .hb373-copy {
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 0.78rem;
    border: 1px solid #1e6b36;
    border-radius: 4px;
    background: #fff;
    color: #1e6b36;
    cursor: pointer;
}
.hb373-status .hb373-copy:hover { background: #f0f9f3; }

/* honeypot */
.hb373-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
