/**
 * Rekhi B2B RFQ Form Stylesheet
 * Premium Dark Mode & Glassmorphism Theme Architecture
 */

:root {
	--rekhi-bg-glass: rgba(18, 18, 24, 0.82);
	--rekhi-border-glass: rgba(255, 255, 255, 0.08);
	--rekhi-accent-glow: rgba(0, 242, 254, 0.12);
	--rekhi-neon-cyan: #00f2fe;
	--rekhi-neon-blue: #4facfe;
	--rekhi-text-primary: #f3f4f6;
	--rekhi-text-muted: #9ca3af;
	--rekhi-card-bg: rgba(255, 255, 255, 0.03);
	--rekhi-card-bg-active: rgba(0, 242, 254, 0.05);
	--rekhi-transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rekhi-rfq-container {
	width: 100%;
	max-width: 900px;
	margin: 2rem auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--rekhi-text-primary);
}

.rekhi-rfq-glass-chassis {
	background: var(--rekhi-bg-glass);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--rekhi-border-glass);
	border-radius: 24px;
	padding: 2.5rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px 0 var(--rekhi-accent-glow);
	position: relative;
}

.rekhi-rfq-header-block {
	margin-bottom: 2.5rem;
	border-bottom: 1px solid var(--rekhi-border-glass);
	padding-bottom: 1.5rem;
}

.rekhi-rfq-master-title {
	font-size: 1.8rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 1.5rem 0;
	background: linear-gradient(135deg, #ffffff 0%, var(--rekhi-text-muted) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.rekhi-rfq-step-indicator-row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.rekhi-step-pill {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.5rem 1.2rem;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--rekhi-border-glass);
	color: var(--rekhi-text-muted);
	transition: var(--rekhi-transition-smooth);
}

.rekhi-step-pill.active-pill {
	color: #ffffff;
	background: linear-gradient(135deg, var(--rekhi-neon-blue) 0%, var(--rekhi-neon-cyan) 100%);
	border-color: transparent;
	box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

.rekhi-form-wizard-panel {
	display: none;
	opacity: 0;
	transform: translateY(8px);
	transition: var(--rekhi-transition-smooth);
}

.rekhi-form-wizard-panel.visible-panel {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

.rekhi-split-layout-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.rekhi-input-group {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.spacing-top-medium { margin-top: 1.25rem; }
.spacing-top-large { margin-top: 2rem; }

.rekhi-field-caption {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--rekhi-text-muted);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.rekhi-core-input-field,
.rekhi-core-textarea-field {
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid var(--rekhi-border-glass);
	border-radius: 12px;
	padding: 1rem;
	color: #ffffff;
	font-size: 1rem;
	transition: var(--rekhi-transition-smooth);
	width: 100%;
}

.rekhi-core-input-field:focus,
.rekhi-core-textarea-field:focus {
	outline: none;
	border-color: var(--rekhi-neon-cyan);
	box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
	background: rgba(0, 0, 0, 0.35);
}

.rekhi-core-textarea-field {
	min-height: 130px;
	resize: vertical;
}

.rekhi-grid-selection-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
}

.rekhi-selection-card {
	cursor: pointer;
	position: relative;
}

.rekhi-selection-card input[type="radio"] {
	position: absolute;
	opacity: 0; width: 0; height: 0;
}

.rekhi-card-custom-box {
	display: block;
	background: var(--rekhi-card-bg);
	border: 1px solid var(--rekhi-border-glass);
	border-radius: 16px;
	padding: 1.5rem 1rem;
	text-align: center;
	transition: var(--rekhi-transition-smooth);
}

.rekhi-selection-card input[type="radio"]:checked + .rekhi-card-custom-box {
	background: var(--rekhi-card-bg-active);
	border-color: var(--rekhi-neon-cyan);
	box-shadow: inset 0 0 12px rgba(0, 242, 254, 0.08);
}

.rekhi-card-label-text {
	font-weight: 600;
	font-size: 0.95rem;
}

.rekhi-badge-matrix-row {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.rekhi-interactive-badge {
	cursor: pointer;
	position: relative;
}

.rekhi-interactive-badge input[type="checkbox"] {
	position: absolute;
	opacity: 0; width: 0; height: 0;
}

.rekhi-badge-ui {
	display: inline-block;
	padding: 0.75rem 1.25rem;
	border-radius: 12px;
	background: var(--rekhi-card-bg);
	border: 1px solid var(--rekhi-border-glass);
	font-weight: 500;
	font-size: 0.9rem;
	transition: var(--rekhi-transition-smooth);
}

.rekhi-interactive-badge input[type="checkbox"]:checked + .rekhi-badge-ui {
	background: var(--rekhi-card-bg-active);
	border-color: var(--rekhi-neon-cyan);
	color: var(--rekhi-neon-cyan);
}

.rekhi-vertical-list-stack {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.rekhi-list-selection-row {
	cursor: pointer;
	position: relative;
}

.rekhi-list-selection-row input[type="radio"] {
	position: absolute;
	opacity: 0; width: 0; height: 0;
}

.rekhi-row-ui-box {
	display: block;
	padding: 1rem;
	background: var(--rekhi-card-bg);
	border: 1px solid var(--rekhi-border-glass);
	border-radius: 12px;
	font-weight: 500;
	transition: var(--rekhi-transition-smooth);
}

.rekhi-list-selection-row input[type="radio"]:checked + .rekhi-row-ui-box {
	background: var(--rekhi-card-bg-active);
	border-color: var(--rekhi-neon-blue);
}

.rekhi-custom-file-drag-zone {
	border: 2px dashed var(--rekhi-border-glass);
	border-radius: 12px;
	padding: 1.5rem;
	text-align: center;
	background: rgba(0, 0, 0, 0.15);
	position: relative;
	transition: var(--rekhi-transition-smooth);
}

.rekhi-custom-file-drag-zone:hover {
	border-color: var(--rekhi-neon-cyan);
}

.rekhi-hidden-file-node {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	opacity: 0; cursor: pointer;
}

.rekhi-file-facade-trigger {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	color: var(--rekhi-text-muted);
}

.rekhi-file-facade-trigger span.eicon-upload-circle {
	font-size: 1.75rem;
	color: var(--rekhi-neon-cyan);
}

.rekhi-queue-monitor {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.rekhi-queue-item-badge {
	font-size: 0.8rem;
	background: rgba(255, 255, 255, 0.05);
	padding: 0.4rem 0.6rem;
	border-radius: 6px;
	border: 1px solid var(--rekhi-border-glass);
	text-align: left;
}

.rekhi-wizard-navigation-bar-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rekhi-border-glass);
}

.rekhi-nav-utility-btn {
	padding: 0.8rem 1.75rem;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: var(--rekhi-transition-smooth);
	border: 1px solid transparent;
}

.navigation-btn-muted {
	background: rgba(255, 255, 255, 0.04);
	border-color: var(--rekhi-border-glass);
	color: var(--rekhi-text-muted);
}

.navigation-btn-muted:disabled {
	opacity: 0.25;
	cursor: not-allowed;
}

.navigation-btn-accent {
	background: #ffffff;
	color: #000000;
}

.navigation-btn-accent:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.rekhi-submit-master-action-trigger {
	width: 100%;
	padding: 1.1rem;
	border-radius: 14px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	border: none;
	color: #ffffff;
	background: linear-gradient(135deg, var(--rekhi-neon-blue) 0%, var(--rekhi-neon-cyan) 100%);
	box-shadow: 0 8px 20px -4px rgba(0, 242, 254, 0.25);
	transition: var(--rekhi-transition-smooth);
	display: flex;
	justify-content: center;
	align-items: center;
}

.rekhi-submit-master-action-trigger:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -4px rgba(0, 242, 254, 0.4);
}

.rekhi-response-notification-node {
	margin-top: 1.5rem;
	padding: 1rem;
	border-radius: 12px;
	font-size: 0.95rem;
	display: none;
	line-height: 1.4;
}

.rekhi-response-notification-node.notice-success-state {
	display: block;
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid rgba(16, 185, 129, 0.25);
	color: #34d399;
}

.rekhi-response-notification-node.notice-error-state {
	display: block;
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.25);
	color: #f87171;
}

.rekhi-btn-spinner-node {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: rekhi-spin 0.8s linear infinite;
	margin-left: 0.6rem;
}

.submission-in-progress .rekhi-btn-spinner-node {
	display: inline-block;
}

.submission-in-progress .rekhi-submit-master-action-trigger {
	pointer-events: none;
	opacity: 0.75;
}

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