/* HubSpot Integration Styles */

/* Loading state for submit button */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: hubspot-spin 1s linear infinite;
}

@keyframes hubspot-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form error message styles */
.form-error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
    animation: hubspot-fadeIn 0.3s ease-in;
}

@keyframes hubspot-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success message styles */
.form-success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
    animation: hubspot-fadeIn 0.3s ease-in;
}

/* HubSpot integration status indicator (for debugging) */
.hubspot-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff7a59;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
    display: none;
}

.hubspot-status.active {
    background: #00a4bd;
}

.hubspot-status.error {
    background: #e74c3c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hubspot-status {
        bottom: 10px;
        right: 10px;
        font-size: 11px;
        padding: 6px 10px;
    }
}

