/* ==========================================================================
   Submit a Deal — Premium Page Styles
   Inspired by editorial, warm, high-end design
   ========================================================================== */

/* ----- Hero Section — Full Screen Width Bleed ----- */
.submit-page-hero {
	background: #f5f0e8;
	/* Push the left padding to account for the left sidebar (25vw) + normal padding (40px) */
	padding: 64px 60px 64px calc(var(--sidebar-width) + 50px);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
	align-items: center;
	position: relative;
	overflow: hidden;
	min-height: 260px;
	/* Break out of #primary's padding AND the #page's left sidebar padding */
	margin-top: -40px;
	margin-left: calc(-1 * var(--sidebar-width) - 40px);
	margin-right: -40px;
	width: 100vw;
}

.submit-hero-left {
	position: relative;
	z-index: 2;
}

.submit-hero-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8b7355;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.submit-hero-eyebrow::before {
	content: '';
	display: inline-block;
	width: 24px;
	height: 1.5px;
	background: #8b7355;
}

.submit-hero-headline {
	font-size: 3rem;
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.04em;
	color: #1a1208;
	margin: 0 0 20px;
}

.submit-hero-headline em {
	font-style: normal;
	color: #e05c1a;
}

.submit-hero-subtext {
	font-size: 1rem;
	color: #6b5e48;
	max-width: 460px;
	line-height: 1.65;
	margin: 0;
}

.submit-hero-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
}

.submit-hero-avatars {
	display: flex;
}

.submit-hero-avatars span {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2.5px solid #f5f0e8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	color: white;
	margin-left: -10px;
	flex-shrink: 0;
}

.submit-hero-avatars span:first-child {
	margin-left: 0;
	background: #e05c1a;
}

.submit-hero-avatars span:nth-child(2) {
	background: #1a73e8;
}

.submit-hero-avatars span:nth-child(3) {
	background: #16a34a;
}

.submit-hero-stats {
	font-size: 0.875rem;
	color: #6b5e48;
}

.submit-hero-stats strong {
	color: #1a1208;
	font-weight: 700;
}

/* Badge stamp — like reference image */
.submit-hero-right {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.submit-hero-badge {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: #1a1208;
	color: #f5f0e8;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-align: center;
	padding: 16px;
	position: relative;
	flex-shrink: 0;
}

.submit-hero-badge::before {
	content: '';
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	border: 1.5px dashed rgba(245, 240, 232, 0.4);
}

.badge-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.badge-icon {
	font-size: 1.25rem;
	line-height: 1;
}

.badge-line1 {
	font-size: 0.6rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	line-height: 1.2;
}

.badge-line2 {
	font-size: 0.55rem;
	font-weight: 500;
	opacity: 0.7;
	line-height: 1.2;
}

/* Decorative background blob */
.submit-page-hero::after {
	content: '';
	position: absolute;
	right: -40px;
	top: -40px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(224, 92, 26, 0.06);
	pointer-events: none;
}

/* ----- Main Form Area ----- */
.validcoupon-submit-wrap {
	max-width: 100%;
}

.submit-form-body {
	padding: 48px 0px 48px 0px;
	max-width: 1000px;
}

/* ----- Success State ----- */
.submit-success {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 100px 24px;
	gap: 20px;
}

.success-icon {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: #f0fdf4;
	color: #16a34a;
	display: flex;
	align-items: center;
	justify-content: center;
}

.submit-success h2 {
	font-size: 2rem;
	font-weight: 800;
	color: #1a1208;
	margin: 0;
	letter-spacing: -0.03em;
}

.submit-success p {
	color: #6b5e48;
	font-size: 1.0625rem;
	max-width: 440px;
	margin: 0;
	line-height: 1.6;
}

.btn-back-home {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #1a1208;
	color: #f5f0e8;
	padding: 13px 32px;
	border-radius: var(--radius-full);
	font-weight: 700;
	font-size: 0.9375rem;
	text-decoration: none;
	margin-top: 8px;
	transition: opacity 0.2s, transform 0.15s;
}

.btn-back-home:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

/* ----- Error Banner ----- */
.submit-error-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
	padding: 14px 18px;
	border-radius: var(--radius-md);
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 36px;
	border-left: 4px solid #dc2626;
}

/* ----- Section Headers ----- */
.submit-section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 28px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e8e2d6;
}

.submit-section-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #1a1208;
	color: #f5f0e8;
	font-size: 0.75rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.submit-section-label {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #8b7355;
}

/* ----- Two-Column Grid ----- */
.submit-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	margin-bottom: 0;
}

/* ----- Form Fields ----- */
.form-field {
	margin-bottom: 24px;
}

.form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1a1208;
	margin-bottom: 8px;
	letter-spacing: -0.01em;
}

.form-label .required {
	color: #e05c1a;
	margin-left: 3px;
}

.form-select {
	height: 49px;
}

.form-input,
.form-textarea,
.form-select {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #ddd6ca;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-family: var(--font-main);
	color: #1a1208;
	background: #faf8f4;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
	box-sizing: border-box;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
	border-color: #e05c1a;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(224, 92, 26, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
	color: #b5a898;
}

.form-input--mono {
	font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace;
	letter-spacing: 0.08em;
	font-size: 0.875rem;
	text-transform: uppercase;
}

.form-textarea {
	resize: vertical;
	min-height: 128px;
	line-height: 1.65;
}

.form-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b7355' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
	cursor: pointer;
}

.field-hint {
	display: block;
	font-size: 0.8rem;
	color: #8b7355;
	margin-top: 6px;
	line-height: 1.45;
}

.field-error {
	display: block;
	font-size: 0.8rem;
	color: #e05c1a;
	margin-top: 5px;
	font-weight: 600;
}

/* ----- Form Row (side by side) ----- */
.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

/* ----- Guidelines Box ----- */
.submit-guidelines {
	background: #f5f0e8;
	border: 1.5px solid #ddd6ca;
	border-radius: 12px;
	padding: 20px 22px;
	margin-top: 4px;
}

.guidelines-title {
	font-size: 0.75rem;
	font-weight: 800;
	color: #1a1208;
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.guidelines-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.guidelines-list li {
	font-size: 0.8125rem;
	color: #6b5e48;
	padding-left: 18px;
	position: relative;
	line-height: 1.45;
}

.guidelines-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #e05c1a;
	font-weight: 700;
	font-size: 0.75rem;
}

/* ----- Submit Actions ----- */
.submit-actions {
	margin-top: 48px;
	padding-top: 36px;
	/* border-top: 1.5px solid #e8e2d6; */
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.btn-submit-deal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #1a1208;
	color: #f5f0e8;
	border: none;
	padding: 16px 48px;
	border-radius: var(--radius-full);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	font-family: var(--font-main);
	letter-spacing: -0.01em;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
	min-width: 260px;
	position: relative;
	overflow: hidden;
}

.btn-submit-deal::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0);
	transition: background 0.2s;
}

.btn-submit-deal:hover:not(:disabled) {
	background: #e05c1a;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(224, 92, 26, 0.3);
}

.btn-submit-deal:active:not(:disabled) {
	transform: translateY(0);
}

.btn-submit-deal:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.btn-text,
.btn-loading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.submit-disclaimer {
	font-size: 0.8125rem;
	color: #8b7355;
	text-align: center;
	margin: 0;
}

/* ----- Spin animation ----- */
@keyframes validcoupon-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.spin {
	animation: validcoupon-spin 0.8s linear infinite;
}

/* ----- Optional label ----- */
.optional-label {
	font-weight: 400;
	font-size: 0.7rem;
	opacity: 0.6;
	text-transform: none;
	letter-spacing: 0;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
	.submit-page-hero {
		padding: 48px 40px 48px calc(var(--sidebar-width) + 40px);
		margin-top: -40px;
		margin-left: calc(-1 * var(--sidebar-width) - 40px);
		margin-right: -40px;
		width: 100vw;
	}

	.submit-form-body {
		padding: 40px 32px 60px;
	}
}

@media (max-width: 991px) {
	.submit-page-hero {
		padding: 48px 40px;
		margin-top: -40px;
		margin-left: -40px;
		margin-right: -40px;
		width: calc(100% + 80px);
	}
}

@media (max-width: 768px) {
	.submit-page-hero {
		grid-template-columns: 1fr;
		padding: 36px 24px;
		margin-top: -24px;
		margin-left: -16px;
		margin-right: -16px;
		width: calc(100% + 32px);
	}

	.submit-hero-right {
		display: none;
	}

	.submit-hero-headline {
		font-size: 2rem;
	}

	.submit-form-body {
		padding: 32px 20px 60px;
	}

	.submit-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.btn-submit-deal {
		width: 100%;
	}
}

/* ==========================================================================
   Dark Mode Overrides — Submit Deal Page
   ========================================================================== */
.dark-mode .submit-page-hero {
	background: var(--bg-main) !important;
	border-bottom: 1px solid var(--border-color) !important;
}

.dark-mode .submit-hero-eyebrow {
	color: var(--text-muted) !important;
}

.dark-mode .submit-hero-eyebrow::before {
	background: var(--text-muted) !important;
}

.dark-mode .submit-hero-headline {
	color: var(--text-main) !important;
}

.dark-mode .submit-hero-subtext {
	color: var(--text-muted) !important;
}

.dark-mode .submit-hero-avatars span {
	border-color: var(--bg-secondary) !important;
}

.dark-mode .submit-hero-stats {
	color: var(--text-muted) !important;
}

.dark-mode .submit-hero-stats strong {
	color: var(--text-main) !important;
}

.dark-mode .submit-hero-badge {
	background: var(--bg-tertiary) !important;
	color: var(--text-main) !important;
}

.dark-mode .submit-hero-badge::before {
	border-color: rgba(255, 255, 255, 0.15) !important;
}


.dark-mode .submit-section-header {
	border-bottom-color: var(--border-color) !important;
}

.dark-mode .submit-section-num {
	background: var(--bg-tertiary) !important;
	color: var(--text-main) !important;
}

.dark-mode .submit-section-label {
	color: var(--text-main) !important;
}

.dark-mode .form-label {
	color: var(--text-main) !important;
}

.dark-mode .form-input,
.dark-mode .form-textarea,
.dark-mode .form-select {
	background: var(--bg-main) !important;
	border-color: var(--border-color) !important;
	color: var(--text-main) !important;
}

.dark-mode .form-input:focus,
.dark-mode .form-textarea:focus,
.dark-mode .form-select:focus {
	border-color: #e05c1a !important;
	background: var(--bg-main) !important;
	box-shadow: 0 0 0 3px rgba(224, 92, 26, 0.2) !important;
}

.dark-mode .form-input::placeholder,
.dark-mode .form-textarea::placeholder {
	color: var(--text-muted) !important;
}

.dark-mode .field-hint {
	color: var(--text-muted) !important;
}

.dark-mode .submit-disclaimer {
	color: var(--text-muted) !important;
}

/* Guidelines Box Dark Mode */
.dark-mode .submit-guidelines {
	background: var(--bg-tertiary) !important;
	border-color: var(--border-color) !important;
}

.dark-mode .guidelines-title {
	color: var(--text-main) !important;
}

.dark-mode .guidelines-list li {
	color: var(--text-muted) !important;
}

/* Submit Actions Buttons Dark Mode */
.dark-mode .btn-submit-deal {
	background: linear-gradient(135deg, #ff6b00 0%, #ff004d 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(255, 0, 77, 0.25) !important;
}

.dark-mode .btn-submit-deal:hover:not(:disabled) {
	opacity: 0.95 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(255, 0, 77, 0.35) !important;
}

.dark-mode .btn-back-home {
	background: var(--bg-tertiary) !important;
	color: var(--text-main) !important;
	border: 1px solid var(--border-color) !important;
}

.dark-mode .success-icon {
	background: rgba(22, 163, 74, 0.15) !important;
	color: #16a34a !important;
}

.dark-mode .submit-success h2 {
	color: var(--text-main) !important;
}

.dark-mode .submit-success p {
	color: var(--text-muted) !important;
}