/* Contact & shared form surfaces -------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (max-width: 880px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.quote-form,
.search-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    border-radius: var(--radius-lg);
}

.quote-form {
    ----bg: rgba(9, 13, 24, 0.82);
    --control-border: rgba(255, 255, 255, 0.12);
    --control-focus: rgba(56, 189, 248, 0.55);
    --control-text: var(--text-high, #f8fafc);
    --control-muted: var(--text-mid, rgba(217, 223, 232, 0.82));
    --control-placeholder: rgba(255, 255, 255, 0.75);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: linear-gradient(
        150deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02)
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.search-form {
    ----bg: rgba(255, 255, 255, 0.98);
    --control-border: rgba(42, 31, 85, 0.14);
    --control-focus: rgba(124, 93, 255, 0.45);
    --control-text: #0d1324;
    --control-muted: #rgba(217, 223, 232, 0.82);
    --control-placeholder: rgba(91, 103, 138, 0.82);
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
    width: 100%;
}

.form-row--compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    width: 100%;
}

.form-field label {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--control-muted);
    font-size: 0.96rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-inner);
    background: var(--bg);
    padding: var(--space-4) var(--space-5);
    color: var(--text-low);
    font-size: 1rem;
    transition: border-color var(--transition-base),
        box-shadow var(--transition-base), background var(--transition-base);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--muted);
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(
            45deg,
            transparent 50%,
            var(--control-muted) 50%
        ),
        linear-gradient(135deg, var(--control-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
    border-color: var(--control-focus);
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);

    box-shadow: 0 18px 44px rgba(56, 189, 248, 0.12);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
    border-color: var(--danger);
    box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.18);
}

.field-hint {
    color: var(--control-muted);
    font-size: 0.88rem;
}

.field-error {
    min-height: 1rem;
    color: var(--danger-strong, var(--danger));
    font-size: 0.82rem;
}

.consent {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--control-muted);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    border: 1px solid var(--control-border);
    background: var(--bg);
}

.consent input {
    margin-top: 0.35rem;
    accent-color: var(--control-focus);
}

.form-footer {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: space-between;
    align-items: center;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(56, 189, 248, 0.12);
    color: var(--control-text);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Search form tweaks -------------------------------------------- */
.search-form .search-input {
    border-radius: var(--radius-pill);
    background: var(--bg);
    border: 1px solid var(--control-border);
    padding: 0.5rem 0.9rem 0.5rem 1.1rem;
    gap: 0.8rem;
    box-shadow: 0 20px 50px rgba(25, 38, 92, 0.12);
}

.search-form .search-input input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 0.65rem 0;
    font-size: 1.05rem;
    color: var(--control-text);
}

.search-form .search-input input::placeholder {
    color: var(--control-placeholder);
}

.search-form .search-input input:focus {
    outline: none;
}

.search-toolbar {
    gap: var(--space-4);
}

.filter-status {
    border: 1px dashed var(--control-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    display: grid;
    gap: var(--space-2);
    background: color-mix(in srgb, var(----bg) 92%, transparent 8%);
}

.filter-status legend {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--control-muted);
}

.filter-status label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--control-text);
    font-weight: 600;
}

.filter-status input[type="checkbox"] {
    accent-color: var(--control-focus);
}

.filter-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.filter-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-3);
}

.filter-brand select,
.filter-dates input[type="date"] {
    background: var(--bg);
    border: 1px solid var(--control-border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    color: var(--control-text);
}

.filter-brand select:focus-visible,
.filter-dates input[type="date"]:focus-visible {
    border-color: var(--control-focus);
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}
