/* Moving Quote — Step 1 */

/* One-row layout */
.mq-step1-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

/* The two address fields share equal space and take most of the row */
.mq-step1-row .mq-field:not(.mq-submit-field) {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
}

/* Button stays compact, only as wide as its content */
.mq-step1-row .mq-submit-field {
    flex: 0 0 auto;
    margin-bottom: 0;
}

/* Labels (white — works on your dark Elementor bg) */
.mq-step1-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.mq-step1-form .mq-required {
    color: #f97316;
}

/* Input wrapper + icon */
.mq-autocomplete-wrapper {
    position: relative;
}

.mq-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #1e3a8a;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

/* Inputs — white, rounded, icon padding */
.mq-step1-form .mq-address-input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 16px 16px 44px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    color: #1f2937;
    background: #fff;
    outline: none;
}

.mq-step1-form .mq-address-input::placeholder {
    color: #9ca3af;
}

.mq-step1-form .mq-address-input:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.35);
}

/* Submit button — green, rounded */
.mq-submit-btn {
    padding: 16px 28px;
    background: #4caf50;
    background: #43b049;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.mq-submit-btn:hover {
    background: #389e3f;
}

/* Autocomplete dropdown */
.mq-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mq-autocomplete-results.active {
    display: block;
}

.mq-autocomplete-item {
    padding: 12px 14px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.mq-autocomplete-item:last-child {
    border-bottom: none;
}

.mq-autocomplete-item:hover {
    background: #f3f4f6;
}

.mq-no-results {
    padding: 12px 14px;
    color: #888;
    font-size: 14px;
    font-style: italic;
}

/* Error message */
.mq-step1-error {
    display: none;
    color: #fecaca;
    background: rgba(185, 28, 28, 0.2);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 12px;
}

.mq-step1-error.active {
    display: block;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
    .mq-step1-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mq-step1-row .mq-submit-field {
        flex: 1;
    }
    
    .mq-submit-btn {
        width: 100%;
    }
}