/**
 * FreshSales Form Overrides
 * Ported from RushAutoWorks_Child theme
 * Using hardcoded values since CSS vars may not be available
 */

/* FreshSales specific overrides */
.fs-webform-container *,
[class*="freshsales"] *,
[class*="freshworks"] * {
    background-color: transparent !important;
}

.fs-webform-container input,
.fs-webform-container textarea,
.fs-webform-container select {
    background: #0a2a52 !important;
    color: white !important;
    border: 1px solid rgba(71, 199, 252, 0.3) !important;
}

/* FreshSales forms - Compact dark theme */
.fserv-container,
.fserv-form,
[id*="fs_"],
div[id*="fs_"] {
    background: #072142 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    max-width: 100% !important;
}

.fserv-container *,
.fserv-form *,
[id*="fs_"] * {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.fserv-field,
[id*="fs_"] .fserv-field {
    margin-bottom: 6px !important;
    padding: 0 !important;
}

.fserv-field label,
[id*="fs_"] label {
    color: #FF8000 !important;
    font-size: 11px !important;
    margin-bottom: 2px !important;
    display: block !important;
}

.fserv-field input,
.fserv-field textarea,
.fserv-field select,
[id*="fs_"] input[type="text"],
[id*="fs_"] input[type="email"],
[id*="fs_"] input[type="tel"],
[id*="fs_"] input[type="number"],
[id*="fs_"] textarea,
[id*="fs_"] select {
    background: #0a2a52 !important;
    border: 1px solid rgba(71, 199, 252, 0.3) !important;
    color: #ffffff !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.fserv-field textarea,
[id*="fs_"] textarea {
    min-height: 50px !important;
    max-height: 70px !important;
    resize: vertical !important;
}

.fserv-field input:focus,
.fserv-field textarea:focus {
    border-color: #47C7FC !important;
    outline: none !important;
}

.fserv-button-submit,
[id*="fs_"] button,
[id*="fs_"] input[type="submit"] {
    background: #FF8000 !important;
    color: #000 !important;
    border: none !important;
    padding: 8px 20px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
}

.fserv-button-submit:hover {
    background: #e67300 !important;
}

/* Remove FreshSales border separator */
.fserv-field + div:not(.fserv-field) {
    border-top: 0 !important;
}
