/* ══════════════════════════════════════════════════════
   TickClip — Public Deal Submit Page
   ══════════════════════════════════════════════════════ */

.tcds-submit-page {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 16px 48px;
	font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: #1e293b;
	line-height: 1.5;
}
.tcds-submit-page * { box-sizing: border-box; }

/* ── Hero ──────────────────────────────────────────── */

.tcds-submit-hero {
	text-align: center;
	padding: 32px 0 24px;
}
.tcds-submit-hero h2 {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #0f172a;
}
.tcds-submit-hero p {
	font-size: 15px;
	color: #64748b;
	margin: 0;
}

/* ── Seller details ────────────────────────────────── */

.tcds-submit-seller {
	padding: 16px 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-bottom: 20px;
}

/* ── Tabs ──────────────────────────────────────────── */

.tcds-submit-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #e2e8f0;
	margin-bottom: 24px;
}
.tcds-submit-tab {
	flex: 1;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}
.tcds-submit-tab:hover { color: #3b82f6; }
.tcds-submit-tab.active {
	color: #3b82f6;
	border-bottom-color: #3b82f6;
}

/* ── Panels ────────────────────────────────────────── */

.tcds-submit-panel { display: none; }
.tcds-submit-panel.active { display: block; }

/* ── Form fields ───────────────────────────────────── */

.tcds-submit-field {
	margin-bottom: 16px;
}
.tcds-submit-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}
.tcds-optional {
	font-weight: 400;
	color: #94a3b8;
}
.tcds-submit-field input,
.tcds-submit-field select,
.tcds-submit-field textarea {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	font-family: inherit;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #1e293b;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.tcds-submit-field input:focus,
.tcds-submit-field select:focus,
.tcds-submit-field textarea:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.tcds-submit-field textarea {
	resize: vertical;
	min-height: 80px;
}

/* ── Row layouts ───────────────────────────────────── */

.tcds-submit-row {
	display: flex;
	gap: 12px;
}
.tcds-submit-half { flex: 1; }
.tcds-submit-third { flex: 1; }
.tcds-submit-quarter { flex: 1; }

@media (max-width: 600px) {
	.tcds-submit-row { flex-wrap: wrap; }
	.tcds-submit-half,
	.tcds-submit-third,
	.tcds-submit-quarter { flex: 1 1 100%; }
}

/* ── Buttons ───────────────────────────────────────── */

.tcds-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	color: #fff;
	background: #3b82f6;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	margin-top: 8px;
}
.tcds-submit-btn:hover { background: #2563eb; }
.tcds-submit-btn:active { transform: scale(0.98); }
.tcds-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.tcds-submit-btn-ai {
	background: linear-gradient(135deg, #8b5cf6, #6366f1);
}
.tcds-submit-btn-ai:hover {
	background: linear-gradient(135deg, #7c3aed, #4f46e5);
}
.tcds-submit-btn-confirm {
	background: #059669;
}
.tcds-submit-btn-confirm:hover { background: #047857; }
.tcds-submit-btn-secondary {
	background: #f1f5f9;
	color: #475569;
}
.tcds-submit-btn-secondary:hover { background: #e2e8f0; }
.tcds-submit-btn-icon {
	font-size: 18px;
}

/* ── Preview ───────────────────────────────────────── */

.tcds-submit-preview {
	margin-top: 24px;
	padding: 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}
.tcds-submit-preview h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #0f172a;
}

.tcds-preview-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 12px;
}
.tcds-preview-card:last-child { margin-bottom: 0; }

.tcds-preview-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
}
.tcds-preview-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}
.tcds-preview-tag {
	display: inline-block;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 20px;
	background: #f1f5f9;
	color: #475569;
}
.tcds-preview-tag-retailer { background: #dbeafe; color: #1d4ed8; }
.tcds-preview-tag-price { background: #dcfce7; color: #166534; }
.tcds-preview-tag-promo { background: #fef3c7; color: #92400e; }
.tcds-preview-tag-discount { background: #fee2e2; color: #991b1b; }

.tcds-preview-desc {
	font-size: 14px;
	color: #475569;
	line-height: 1.6;
	margin: 0;
}

.tcds-submit-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}
.tcds-submit-actions .tcds-submit-btn {
	flex: 1;
	margin-top: 0;
}

/* ── Success ───────────────────────────────────────── */

.tcds-submit-success {
	text-align: center;
	padding: 40px 20px;
}
.tcds-submit-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	background: #dcfce7;
	color: #059669;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 700;
}
.tcds-submit-success h3 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #059669;
}
.tcds-submit-success p {
	font-size: 15px;
	color: #64748b;
	margin: 0 0 20px;
}
.tcds-submit-success .tcds-submit-btn {
	width: auto;
	padding: 10px 28px;
}

/* ── Error ─────────────────────────────────────────── */

.tcds-submit-error {
	margin-top: 16px;
	padding: 12px 16px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #991b1b;
	font-size: 14px;
}

/* ── Footer ────────────────────────────────────────── */

.tcds-submit-footer {
	text-align: center;
	padding-top: 24px;
	border-top: 1px solid #f1f5f9;
	margin-top: 32px;
}
.tcds-submit-footer p {
	font-size: 12px;
	color: #94a3b8;
	margin: 0;
}

/* ── Loading state ─────────────────────────────────── */

.tcds-submit-loading {
	position: relative;
	pointer-events: none;
}
.tcds-submit-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 3px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: tcds-spin 0.6s linear infinite;
}

@keyframes tcds-spin {
	to { transform: rotate(360deg); }
}
