
.borrowly-expert-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}
/**
 * Borrowly Ask Expert Form Styles
 * Mobile-first, responsive, and lightweight
 */

.borrowly-ask-expert-wrapper {
    margin: 2rem 0 3rem;
    padding: 0;
    width: 100%;
}

.borrowly-ask-expert-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .borrowly-ask-expert-card {
        padding: 2.5rem;
    }
}

.borrowly-expert-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #101528;
    margin: 0 0 1.5rem;
    line-height: 1.3;
    text-align: left;
}

.borrowly-expert-field {
    margin-bottom: 1.5rem;
}

.borrowly-expert-label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.borrowly-expert-label .label-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.15rem;
}

.borrowly-expert-label .required {
    color: #ef4444;
}

.borrowly-expert-label .label-sub {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 400;
}

.borrowly-expert-input,
.borrowly-expert-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.borrowly-expert-input:focus,
.borrowly-expert-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.borrowly-expert-guidelines {
    background: #f0f9ff;
    border-left: 3px solid #38bdf8;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.borrowly-expert-guidelines ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #0369a1;
    font-size: 0.85rem;
    line-height: 1.45;
}

.borrowly-expert-guidelines li {
    margin-bottom: 0.25rem;
}

.borrowly-expert-guidelines li:last-child {
    margin-bottom: 0;
}

.borrowly-word-counter {
    font-size: 0.82rem;
    color: #64748b;
    text-align: right;
    margin-top: 0.35rem;
}

.borrowly-word-counter.limit-exceeded {
    color: #ef4444;
    font-weight: 600;
}

.borrowly-expert-terms {
    margin: 1.25rem 0;
}

.borrowly-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.45;
    cursor: pointer;
}

.borrowly-expert-checkbox {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
    cursor: pointer;
}

.borrowly-checkbox-label a {
    color: #2563eb;
    text-decoration: underline;
}

.borrowly-expert-turnstile-wrap {
    margin: 1.25rem 0;
    min-height: 65px;
}

.borrowly-expert-actions {
    margin-top: 1.5rem;
}

.borrowly-expert-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background-color: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.05s ease;
    min-height: 48px;
}

.borrowly-expert-submit-btn:hover {
    background-color: #1d4ed8;
}

.borrowly-expert-submit-btn:active {
    transform: translateY(1px);
}

.borrowly-expert-submit-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.borrowly-expert-submit-btn .btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: borrowly-spin 0.8s linear infinite;
}

@keyframes borrowly-spin {
    to { transform: rotate(360deg); }
}

.borrowly-expert-notice {
    margin: 1.25rem 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.borrowly-expert-notice.is-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.borrowly-expert-notice.is-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.borrowly-expert-rules-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.borrowly-expert-rules-box .rules-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

.borrowly-expert-rules-box .rules-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.55;
}

.borrowly-expert-rules-box .rules-list li {
    margin-bottom: 0.4rem;
}
