.mqf-trigger {
    background: #1a56db;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.mqf-trigger:hover {
    background: #1444b0;
}

.mqf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mqf-overlay.mqf-visible {
    opacity: 1;
}

.mqf-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    padding: 40px 36px 32px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}
.mqf-overlay.mqf-visible .mqf-modal {
    transform: translateY(0) scale(1);
}

.mqf-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.mqf-close:hover {
    color: #333;
}

.mqf-progress {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 32px;
    overflow: hidden;
}
.mqf-progress-bar {
    height: 100%;
    background: #1a56db;
    border-radius: 4px;
    transition: width 0.35s ease;
}

.mqf-step {
    display: none;
}
.mqf-step.active {
    display: block;
    animation: mqfFadeIn 0.3s ease;
}
@keyframes mqfFadeIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

.mqf-step h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 24px;
    line-height: 1.3;
}

.mqf-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mqf-card {
    cursor: pointer;
    display: block;
}
.mqf-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.mqf-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.mqf-card input:checked + .mqf-card-body {
    border-color: #1a56db;
    background: #eff4ff;
}
.mqf-card:hover .mqf-card-body {
    border-color: #93b4f5;
}
.mqf-card-icon {
    font-size: 28px;
}
.mqf-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.mqf-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.mqf-input-group:focus-within {
    border-color: #1a56db;
}
.mqf-input-prefix {
    padding: 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #888;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    line-height: 52px;
}
.mqf-input {
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 17px;
    width: 100%;
    background: transparent;
}

select.mqf-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23555' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.mqf-field-row {
    display: flex;
    gap: 12px;
}
.mqf-field-row .mqf-input-group {
    flex: 1;
}

.mqf-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 10px;
}

.mqf-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    gap: 12px;
}

.mqf-btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.mqf-btn-next {
    background: #1a56db;
    color: #fff;
    margin-left: auto;
}
.mqf-btn-next:hover {
    background: #1444b0;
}
.mqf-btn-back {
    background: #f3f4f6;
    color: #555;
}
.mqf-btn-back:hover {
    background: #e5e7eb;
}

.mqf-success {
    text-align: center;
    padding: 24px 0;
}
.mqf-success-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    font-size: 32px;
    background: #d1fae5;
    color: #059669;
    border-radius: 50%;
    margin: 0 auto 20px;
}
.mqf-success p {
    color: #666;
    font-size: 15px;
}

.mqf-btn-next.mqf-loading {
    pointer-events: none;
    opacity: 0.7;
}

@media (max-width: 480px) {
    .mqf-modal {
        padding: 28px 20px 24px;
        width: 95%;
    }
    .mqf-options {
        grid-template-columns: 1fr;
    }
    .mqf-field-row {
        flex-direction: column;
    }
    .mqf-step h2 {
        font-size: 19px;
    }
}
