/* Модальное окно "Задать вопрос": форма, загрузка файла, чекбокс согласия */

.modal-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.45); backdrop-filter:blur(6px); z-index:2000; display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:all 0.3s; padding:20px; }
.modal-overlay.active { opacity:1; visibility:visible; }
.modal-card { background:#fff; border-radius:24px; width:100%; max-width:560px; padding:36px; box-shadow:0 20px 40px rgba(0,0,0,0.12); position:relative; transform:translateY(20px); transition:transform 0.3s; max-height:92vh; overflow-y:auto; }
.modal-overlay.active .modal-card { transform:translateY(0); }
.modal-close { position:absolute; top:20px; right:20px; background:none; border:none; font-size:24px; color:#999; cursor:pointer; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; transition:background 0.2s,color 0.2s; }
.modal-close:hover { background:#f3f4f6; color:#1a1a1a; }
.modal-step { display:none; flex-direction:column; gap:18px; }
.modal-step.active { display:flex; }
.modal-step form { display:flex; flex-direction:column; gap:16px; width:100%; }
.modal-free-badge { display:inline-block; align-self:flex-start; background:#e3f6fe; color:#0099dd; font-size:12px; font-weight:700; padding:4px 12px; border-radius:6px; letter-spacing:0.02em; }
.modal-title { font-size:24px; font-weight:700; color:#1a1a1a; line-height:1.25; }
.modal-subtitle { font-size:14px; color:#666; line-height:1.5; }
.form-group { display:flex; flex-direction:column; gap:6px; }
.form-group label { font-size:13px; font-weight:600; color:#333; }
.form-group input, .form-group textarea { width:100%; padding:12px 16px; border:1px solid #e2e8f0; border-radius:10px; font-family:inherit; font-size:14px; color:#1a1a1a; outline:none; transition:border-color 0.2s,box-shadow 0.2s; background:#fafafa; }
.form-group input:focus, .form-group textarea:focus { border-color:#00c4ff; background:#fff; box-shadow:0 0 0 3px rgba(0,196,255,0.12); }
.modal-submit-btn { background:linear-gradient(135deg,#00c4ff,#0099dd); color:#fff; border:none; font-size:15px; font-weight:700; padding:14px 28px; border-radius:10px; cursor:pointer; transition:all 0.2s; margin-top:10px; align-self:center; width:100%; max-width:280px; text-align:center; box-shadow:0 4px 12px rgba(0,196,255,0.2); }
.modal-submit-btn:hover { opacity:0.95; transform:translateY(-1px); box-shadow:0 6px 16px rgba(0,196,255,0.3); }
.modal-submit-btn:disabled { opacity:0.6; cursor:not-allowed; transform:none; }
.success-icon-box { width:72px; height:72px; background:#e3f6fe; color:#00c4ff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:36px; margin:0 auto 10px auto; }

.modal-email-hint { font-size:13px; color:#666; background:#f8f9fa; padding:10px 14px; border-radius:8px; border-left:3px solid #00c4ff; margin-top:6px; line-height:1.4; }
.modal-email-hint strong { color:#00c4ff; }
.file-upload-wrapper { display:flex; align-items:center; gap:12px; padding:10px 14px; border:2px dashed #d0d9e3; border-radius:10px; transition:all 0.3s; cursor:pointer; background:#fafafa; }
.file-upload-wrapper:hover { border-color:#00c4ff; background:#f0f9ff; }
.file-upload-wrapper input[type="file"] { display:none; }
.file-upload-label { display:flex; align-items:center; gap:10px; cursor:pointer; font-size:14px; color:#666; width:100%; }
.file-upload-label svg { flex-shrink:0; color:#00c4ff; }
.file-upload-label span { flex:1; }
.file-name-display { font-size:13px; color:#00c4ff; font-weight:600; margin-left:auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:150px; }

/* Прогресс загрузки файлов */
#uploadedFilesContainer { display:none; margin-top:12px; }
.file-upload-item { background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; padding:14px; margin-bottom:10px; }
.file-upload-item:last-child { margin-bottom:0; }
.file-info { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.file-name { font-size:14px; font-weight:600; color:#1a1a1a; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-size { font-size:12px; color:#999; margin-left:10px; white-space:nowrap; }
.file-progress { display:flex; align-items:center; gap:10px; }
.progress-bar { flex:1; height:6px; background:#e2e8f0; border-radius:3px; overflow:hidden; }
.progress-fill { height:100%; background:linear-gradient(90deg,#00c4ff,#0099dd); border-radius:3px; width:0%; transition:width 0.3s; }
.progress-text { font-size:12px; font-weight:600; color:#00c4ff; min-width:60px; text-align:right; }
.file-error { font-size:12px; color:#e74c3c; margin-top:6px; padding:6px 10px; background:#fee8e8; border-radius:6px; }

.consent-wrapper { background: #f8fafc; border-radius: 12px; padding: 16px 18px; border: 2px solid #e8edf2; transition: all 0.3s ease; margin-top: 2px; }
.consent-wrapper:hover { border-color: #d0d9e3; }
.consent-wrapper.valid { border-color: #00c4ff; background: #f0f9ff; }
.consent-wrapper.invalid { border-color: #e74c3c; background: #fef6f6; }
.consent-checkbox { display: flex; align-items: flex-start; gap: 14px; }
.consent-checkbox input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; margin-top: 2px; accent-color: #00c4ff; cursor: pointer; border-radius: 4px; transition: all 0.2s; }
.consent-checkbox input[type="checkbox"]:checked { transform: scale(1.05); }
.consent-label { cursor: pointer; font-size: 14px; line-height: 1.6; color: #333; }
.consent-text { display: block; }
.consent-text a { color: #00c4ff; text-decoration: none; font-weight: 600; border-bottom: 1px dashed rgba(0, 196, 255, 0.3); transition: all 0.2s; }
.consent-text a:hover { color: #0088cc; border-bottom-color: #0088cc; }
.consent-error { display: none; color: #e74c3c; font-size: 13px; margin-top: 8px; padding: 6px 12px; background: #fee8e8; border-radius: 6px; font-weight: 500; }
.consent-wrapper.invalid .consent-error { display: block; }
.consent-wrapper.invalid .consent-checkbox input[type="checkbox"] { border-color: #e74c3c; }
.consent-wrapper.valid .consent-checkbox input[type="checkbox"] { border-color: #00c4ff; }
.consent-wrapper { animation: fadeSlideIn 0.4s ease; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== ВЫБОР ГОРОДА ===== */
.city-select-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.city-select-group .form-group {
	margin-bottom: 0;
}

.city-select-group select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	color: #1a1a1a;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #fafafa;
	appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.city-select-group select:focus {
	border-color: #00c4ff;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 196, 255, 0.12);
}

.city-select-group select:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background-color: #f5f5f5;
}

.city-select-group select option:disabled {
	color: #bbb;
}

.city-select-group .form-group label {
	display: flex;
	align-items: center;
	gap: 6px;
}

.city-select-group .form-group label .required-star {
	color: #e74c3c;
	font-weight: 700;
}

.city-loading {
	font-size: 13px;
	color: #999;
	padding: 4px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.city-loading::after {
	content: '';
	width: 14px;
	height: 14px;
	border: 2px solid #e2e8f0;
	border-top-color: #00c4ff;
	border-radius: 50%;
	animation: citySpinner 0.6s linear infinite;
}

@keyframes citySpinner {
	to { transform: rotate(360deg); }
}

/* Адаптив */
@media (max-width: 600px) {
	.city-select-group {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}   
/* ===== ВЫБОР ГОРОДА С АВТОКОМПЛИТОМ ===== */
.city-input-wrapper {
    position: relative;
    width: 100%;
}

.city-input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}

.city-input-wrapper input:focus {
    border-color: #00c4ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 196, 255, 0.12);
}

.city-autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
}

.city-autocomplete-list.open {
    display: block;
}

.city-autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #1a1a1a;
    transition: background 0.15s;
}

.city-autocomplete-item:hover {
    background: #f0f9ff;
}

.city-autocomplete-item .highlight {
    font-weight: 700;
    color: #00c4ff;
}

/* ===== ГОРОД НЕ НАЙДЕН ===== */
.city-not-found {
    padding: 20px 16px;
    text-align: center;
}

.city-not-found-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.city-not-found-text {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 4px;
}

.city-not-found-hint {
    font-size: 13px;
    color: #999;
}

/* Адаптив */
@media (max-width: 600px) {
    .city-autocomplete-list {
        max-height: 180px;
    }
}