/* HubSpot Form Styling */
.hs-form {
    width: 100%;
}

.hs-form .hs-form-field {
    margin-bottom: 1rem;
}

.hs-form .hs-input {
    width: 100% !important;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    background-image: none;
    border: 2px dashed #411A50;
    border-radius: var(--bs-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: var(--bs-body-font-family);
}

.hs-form .hs-input:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: #411A50;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(65, 26, 80, 0.25);
}

.hs-form .hs-input::placeholder {
    color: var(--bs-secondary-color);
    opacity: 1;
}

/* Error state styling */
.hs-form .hs-input.error,
.hs-form .hs-input.invalid {
    border-color: var(--bs-form-invalid-border-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.hs-form .hs-input.error:focus,
.hs-form .hs-input.invalid:focus {
    border-color: var(--bs-form-invalid-border-color);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Error message styling */
.hs-form .hs-error-msgs {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: 0.25rem;
}

.hs-form .hs-error-msg {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--bs-form-invalid-color);
}

/* Submit button styling - btn-cta style */
.hs-form .hs-button {
    display: inline-block;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: #8509B9;
    border: 1px solid #8509B9;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 2rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
    font-family: var(--bs-body-font-family);
}

.hs-form .hs-button:hover,
.hs-form .hs-button:focus {
    color: #fff;
    background-color: #6c079a;
    border-color: #6c079a;
}

.hs-form .hs-button:active {
    color: #fff;
    background-color: #6c079a;
    border-color: #6c079a;
}

/* Label styling */
.hs-form label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

/* Hide HubSpot branding and unnecessary elements */
.hs-form .hs-richtext,
.hs-form .hs_submit .hs-field-desc,
.hs-form .hs-field-desc {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .hs-form .hs-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .hs-form .hs-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}
