.csq-city-container {
    position: relative;
    width: calc(100% - 8px);
    max-width: 420px;
    margin-right: 4px;
    margin-left: 4px;
    direction: rtl;
    font-family: inherit;
    box-sizing: border-box;
}

.csq-city-trigger-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.csq-city-trigger-box:hover {
    border-color: #d6d6d6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.csq-city-box-right {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
}

.csq-city-box-text {
    color: #444;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csq-city-box-left {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
    flex-shrink: 0;
}

.csq-voice-btn,
.csq-location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #c62828;
}

.csq-voice-btn {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.csq-voice-btn svg,
.csq-location-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.csq-voice-btn:hover {
    color: #a61f1f;
}

.csq-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    background: rgba(0, 0, 0, 0.6);
}

.csq-modal-content {
    width: 92%;
    max-width: 520px;
    height: 85vh;
    max-height: 720px;
    margin: 4vh auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.csq-modal-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.csq-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.csq-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.csq-clear-btn {
    border: 0;
    background: transparent;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.csq-clear-btn:hover {
    color: #c62828;
}

.csq-clear-btn.is-active {
    color: #c62828;
    font-weight: 700;
}

#citySearch {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#citySearch:focus {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
}

.csq-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px 14px;
    background: #fff;
}

.province-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.province-item {
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.province-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: #fafafa;
    cursor: pointer;
    user-select: none;
}

.province-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.province-arrow {
    width: 10px;
    height: 10px;
    border-left: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.province-item.is-open .province-arrow {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.city-sub-list {
    display: none;
    padding: 6px 14px 4px;
    background: #fff;
}

.city-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
}

.city-label:last-child {
    border-bottom: 0;
}

.city-checkbox {
    margin: 0;
    accent-color: #c62828;
    flex-shrink: 0;
}

.city-name {
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.csq-modal-footer {
    display: flex;
    gap: 10px;
    padding: 14px 16px 16px;
    border-top: 1px solid #eee;
    background: #fff;
}

.btn-submit,
.btn-cancel {
    height: 44px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit {
    flex: 2;
    background: #b3261e;
    color: #fff;
}

.btn-submit:hover {
    background: #991f19;
}

.btn-submit.clear-pending {
    background: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.btn-cancel {
    flex: 1;
    background: #efefef;
    color: #333;
}

.btn-cancel:hover {
    background: #e3e3e3;
}

@media (max-width: 480px) {
    .csq-city-container {
        max-width: calc(100% - 8px);
    }

    .csq-city-trigger-box {
        min-height: 50px;
        padding: 10px 12px;
    }

    .csq-modal-content {
        width: 96%;
        height: 88vh;
        margin: 3vh auto;
        border-radius: 14px;
    }

    .province-header {
        padding: 13px 14px;
    }

    .city-sub-list {
        padding: 6px 12px 4px;
    }
}

.csq-voice-btn.is-recording {
    color: #ff0000;
    animation: csq-pulse 1.5s infinite;
}

@keyframes csq-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.csq-voice-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
}

.csq-voice-modal-content {
    position: relative;
    width: 92%;
    max-width: 360px;
    margin: 14vh auto 0;
    background: #fff;
    border-radius: 20px;
    padding: 28px 22px 24px;
    text-align: center;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.csq-voice-close {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    font-size: 22px;
    line-height: 34px;
    cursor: pointer;
}

.csq-voice-icon-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 10px auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csq-voice-pulse-circle {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(198, 40, 40, 0.10);
    opacity: 0;
    transform: scale(0.9);
}

.csq-voice-modal.is-recording .csq-voice-pulse-circle {
    animation: csqVoicePulse 1.6s infinite;
    opacity: 1;
}

.csq-voice-big-btn {
    position: relative;
    z-index: 2;
    width: 74px;
    height: 74px;
    border: 0;
    border-radius: 50%;
    background: #c62828;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(198, 40, 40, 0.28);
    cursor: pointer;
}

.csq-voice-big-btn svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.csq-voice-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.csq-voice-status {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    min-height: 28px;
}

.csq-voice-result {
    margin-top: 10px;
    font-size: 14px;
    color: #c62828;
    font-weight: 600;
    min-height: 24px;
}

@keyframes csqVoicePulse {
    0% {
        transform: scale(0.9);
        opacity: 0.65;
    }
    70% {
        transform: scale(1.18);
        opacity: 0;
    }
    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}
