/* Site-wide Help widget (local_sitehome). */

.local-sitehome-help {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    font-family: inherit;
}

.local-sitehome-help .lsh-help-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: #467FF7;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.25);
    transition: background 0.15s ease, transform 0.15s ease;
}

.local-sitehome-help .lsh-help-toggle:hover {
    background: #324A6D;
    transform: translateY(-1px);
}

.local-sitehome-help .lsh-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    font-weight: 700;
    line-height: 1;
}

.local-sitehome-help .lsh-help-panel {
    position: absolute;
    right: 0;
    bottom: 60px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    color: #111827;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(17, 24, 39, 0.28);
    overflow: hidden;
}

.local-sitehome-help .lsh-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #467FF7;
    color: #ffffff;
}

.local-sitehome-help .lsh-help-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.local-sitehome-help .lsh-help-x {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.local-sitehome-help .lsh-help-form {
    padding: 16px;
}

.local-sitehome-help .lsh-help-intro {
    margin: 0 0 12px;
    font-size: 13px;
    color: #4b5563;
}

.local-sitehome-help .lsh-help-row {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.local-sitehome-help .lsh-help-row label {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.local-sitehome-help .lsh-help-req {
    font-weight: 500;
    color: #dc2626;
}

.local-sitehome-help .lsh-help-row input,
.local-sitehome-help .lsh-help-row textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    color: #111827;
    background: #ffffff;
}

.local-sitehome-help .lsh-help-row input:focus,
.local-sitehome-help .lsh-help-row textarea:focus {
    outline: none;
    border-color: #467FF7;
    box-shadow: 0 0 0 3px rgba(70, 127, 247, 0.15);
}

.local-sitehome-help .lsh-help-row textarea {
    resize: vertical;
}

/* Honeypot: kept in the DOM for bots, invisible to people. */
.local-sitehome-help .lsh-help-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.local-sitehome-help .lsh-help-status {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.local-sitehome-help .lsh-help-status-ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.local-sitehome-help .lsh-help-status-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.local-sitehome-help .lsh-help-actions {
    display: flex;
    justify-content: flex-end;
}

.local-sitehome-help .lsh-help-submit {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #467FF7;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.local-sitehome-help .lsh-help-submit:hover {
    background: #324A6D;
}

.local-sitehome-help .lsh-help-submit:disabled {
    opacity: 0.7;
    cursor: default;
}

@media (max-width: 480px) {
    .local-sitehome-help {
        right: 16px;
        bottom: 16px;
    }
    .local-sitehome-help .lsh-help-label {
        display: none;
    }
}

/* Shared free-CAPTCHA component (used by the Help widget and the Contact form). */
.lsh-captcha .lsh-captcha-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.lsh-captcha .lsh-captcha-img {
    width: 150px;
    height: 50px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f5f6f8;
    display: block;
}

.lsh-captcha .lsh-captcha-refresh {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #467FF7;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.lsh-captcha .lsh-captcha-refresh:hover {
    background: #f2f3f5;
}

.local-sitehome-help .lsh-captcha .lsh-captcha-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    letter-spacing: 2px;
    text-transform: uppercase;
}
