.jmlc-trigger-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #2f5ce0;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.jmlc-trigger-btn:hover {
    background: #244bb8;
}

.jmlc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 30, 0.55);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.jmlc-overlay.jmlc-open {
    display: flex;
}

.jmlc-modal {
    background: #fff;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 32px 32px 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    font-family: inherit;
}

.jmlc-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    z-index: 2;
    padding: 4px 6px;
}
.jmlc-close:hover {
    color: #222;
}

.jmlc-progress {
    height: 4px;
    background: #eaeaea;
    border-radius: 4px;
    margin: 34px 0 24px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.jmlc-progress-bar {
    height: 100%;
    width: 8%;
    background: #2f5ce0;
    transition: width 0.25s ease;
}

.jmlc-step {
    display: none;
}
.jmlc-step.jmlc-active {
    display: block;
}

.jmlc-step h2 {
    font-size: 21px;
    margin: 0 0 18px;
    line-height: 1.3;
}
.jmlc-step-sub {
    color: #666;
    margin-top: -10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.jmlc-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.jmlc-choice-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 22px 12px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.jmlc-choice-card:hover {
    border-color: #2f5ce0;
}
.jmlc-choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.jmlc-choice-card:has(input:checked) {
    border-color: #2f5ce0;
    background: #eef2ff;
}
.jmlc-choice-icon {
    font-size: 28px;
}

.jmlc-radio-list,
.jmlc-step > .jmlc-option-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.jmlc-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.jmlc-option-row:hover {
    border-color: #2f5ce0;
}
.jmlc-option-row:has(input[type="radio"]:checked),
.jmlc-option-row:has(input[type="checkbox"]:checked) {
    border-color: #2f5ce0;
    background: #eef2ff;
}
.jmlc-option-row input[type="radio"],
.jmlc-option-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.jmlc-option-row-other input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    padding: 4px;
    font-family: inherit;
}
.jmlc-option-row-other input[type="text"]:disabled {
    color: #aaa;
}
.jmlc-option-row-other input[type="text"]:focus {
    outline: none;
}

#jmlc-form input[type="text"]:not(.jmlc-option-row-other input),
#jmlc-form input[type="email"],
#jmlc-form input[type="tel"],
#jmlc-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 12px;
    font-family: inherit;
    box-sizing: border-box;
}
#jmlc-form input:focus,
#jmlc-form textarea:focus {
    outline: none;
    border-color: #2f5ce0;
}

.jmlc-step-final {
    text-align: center;
    padding: 20px 0;
}
.jmlc-success-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    background: #e5f7ec;
    color: #1f9d55;
    font-size: 28px;
    margin: 0 auto 16px;
}

.jmlc-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
    gap: 12px;
}
.jmlc-btn {
    padding: 12px 26px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
}
.jmlc-btn-back {
    background: #fff;
    border-color: #ddd;
    color: #333;
}
.jmlc-btn-back:hover {
    border-color: #999;
}
.jmlc-btn-back[disabled] {
    visibility: hidden;
}
.jmlc-btn-continue,
.jmlc-btn-submit {
    background: #2f5ce0;
    color: #fff;
    margin-left: auto;
}
.jmlc-btn-continue:hover,
.jmlc-btn-submit:hover {
    background: #244bb8;
    color: #fff;
}
.jmlc-btn-continue[disabled],
.jmlc-btn-submit[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.jmlc-error {
    color: #c0392b;
    font-size: 14px;
    margin-top: 10px;
    min-height: 18px;
}

@media (max-width: 480px) {
    .jmlc-modal {
        padding: 24px 18px 18px;
    }
    .jmlc-choice-grid {
        grid-template-columns: 1fr;
    }
}
