/* Frontend CSS for OTGD IV Iron Prequal Quiz */

.otgd-ivp-wrapper {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 680px;
	margin: 20px auto;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(23, 31, 81, 0.08);
	overflow: hidden;
	color: #171f51;
	box-sizing: border-box;
	border: 1px solid #eef2f6;
}

.otgd-ivp-wrapper *,
.otgd-ivp-wrapper *::before,
.otgd-ivp-wrapper *::after {
	box-sizing: inherit;
}

/* Header & Progress Indicator */
.otgd-ivp-wrapper .otgd-ivp-header {
	padding: 24px 32px 16px 32px;
	background: #ffffff;
	border-bottom: 1px solid #f0f4f8;
}

.otgd-ivp-wrapper .otgd-ivp-progress-track {
	height: 8px;
	background: #eef2f6;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 12px;
}

.otgd-ivp-wrapper .otgd-ivp-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #4bb7cf 0%, #3aa2ba 100%);
	border-radius: 999px;
	transition: width 0.4s ease;
}

.otgd-ivp-wrapper .otgd-ivp-step-counter {
	font-size: 0.85rem;
	font-weight: 600;
	color: #4bb7cf;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

/* Form Card Body & Step Transitions */
.otgd-ivp-wrapper .otgd-ivp-card-body {
	padding: 32px;
}

.otgd-ivp-wrapper .otgd-ivp-step-card {
	display: none;
	animation: otgdIvpFadeIn 0.35s ease forwards;
}

.otgd-ivp-wrapper .otgd-ivp-step-card.active {
	display: block;
}

@keyframes otgdIvpFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.otgd-ivp-wrapper .otgd-ivp-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #171f51;
	margin: 0 0 10px 0;
	line-height: 1.35;
}

.otgd-ivp-wrapper .otgd-ivp-subtitle {
	font-size: 0.95rem;
	color: #5a6578;
	margin: 0 0 20px 0;
	font-weight: 500;
}

.otgd-ivp-wrapper .otgd-ivp-copy-block {
	background: #f8fafc;
	border-left: 4px solid #4bb7cf;
	padding: 16px 20px;
	border-radius: 8px;
	font-size: 0.93rem;
	line-height: 1.6;
	color: #334155;
	margin-bottom: 24px;
	white-space: pre-line;
}

/* Form Inputs & Option Pills */
.otgd-ivp-wrapper .otgd-ivp-options-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
}

.otgd-ivp-wrapper .otgd-ivp-option-pill {
	display: flex;
	align-items: center;
	padding: 16px 20px;
	background: #ffffff;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}

.otgd-ivp-wrapper .otgd-ivp-option-pill:hover {
	border-color: #4bb7cf;
	background: #f4fbfd;
	transform: translateY(-1px);
}

.otgd-ivp-wrapper .otgd-ivp-option-pill.selected {
	border-color: #171f51;
	background: #f0f4f9;
	box-shadow: 0 4px 12px rgba(23, 31, 81, 0.08);
}

.otgd-ivp-wrapper .otgd-ivp-option-pill input[type="radio"],
.otgd-ivp-wrapper .otgd-ivp-option-pill input[type="checkbox"] {
	margin-right: 14px;
	width: 20px;
	height: 20px;
	accent-color: #171f51;
	cursor: pointer;
}

.otgd-ivp-wrapper .otgd-ivp-option-label {
	font-size: 0.98rem;
	font-weight: 500;
	color: #171f51;
	flex: 1;
}

/* Contact Form Grid */
.otgd-ivp-wrapper .otgd-ivp-field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 24px;
}

@media (max-width: 580px) {
	.otgd-ivp-wrapper .otgd-ivp-field-grid {
		grid-template-columns: 1fr;
	}
}

.otgd-ivp-wrapper .otgd-ivp-field-group {
	display: flex;
	flex-direction: column;
}

.otgd-ivp-wrapper .otgd-ivp-field-group.full-width {
	grid-column: 1 / -1;
}

.otgd-ivp-wrapper .otgd-ivp-label {
	font-size: 0.88rem;
	font-weight: 600;
	color: #171f51;
	margin-bottom: 6px;
}

.otgd-ivp-wrapper .otgd-ivp-input {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-family: inherit;
	font-size: 0.95rem;
	color: #171f51;
	transition: border-color 0.2s ease;
	outline: none;
	background: #ffffff;
}

.otgd-ivp-wrapper .otgd-ivp-input:focus {
	border-color: #4bb7cf;
	box-shadow: 0 0 0 3px rgba(75, 183, 207, 0.15);
}

.otgd-ivp-wrapper .otgd-ivp-input.error {
	border-color: #ef4444;
}

/* File Upload Area */
.otgd-ivp-wrapper .otgd-ivp-upload-box {
	border: 2px dashed #4bb7cf;
	background: #f4fbfd;
	border-radius: 12px;
	padding: 30px 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-bottom: 20px;
}

.otgd-ivp-wrapper .otgd-ivp-upload-box:hover {
	background: #e9f7fa;
	border-color: #171f51;
}

.otgd-ivp-wrapper .otgd-ivp-upload-icon {
	font-size: 32px;
	margin-bottom: 8px;
	color: #4bb7cf;
}

.otgd-ivp-wrapper .otgd-ivp-upload-text {
	font-size: 0.95rem;
	font-weight: 600;
	color: #171f51;
	margin-bottom: 4px;
}

.otgd-ivp-wrapper .otgd-ivp-upload-hint {
	font-size: 0.82rem;
	color: #64748b;
}

.otgd-ivp-wrapper .otgd-ivp-upload-progress {
	height: 6px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
	margin-top: 12px;
	display: none;
}

.otgd-ivp-wrapper .otgd-ivp-upload-progress-fill {
	height: 100%;
	background: #4bb7cf;
	width: 0%;
	transition: width 0.2s ease;
}

.otgd-ivp-wrapper .otgd-ivp-file-success {
	font-size: 0.88rem;
	color: #16a34a;
	font-weight: 600;
	margin-top: 10px;
}

/* Validation Error Message */
.otgd-ivp-wrapper .otgd-ivp-error-message {
	color: #ef4444;
	font-size: 0.85rem;
	font-weight: 500;
	margin-top: 8px;
	display: none;
}

/* Footer & Controls */
.otgd-ivp-wrapper .otgd-ivp-card-footer {
	padding: 20px 32px 32px 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #ffffff;
}

.otgd-ivp-wrapper .otgd-ivp-btn {
	padding: 14px 28px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	outline: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.otgd-ivp-wrapper .otgd-ivp-btn-primary {
	background: #171f51;
	color: #ffffff;
	margin-left: auto;
}

.otgd-ivp-wrapper .otgd-ivp-btn-primary:hover {
	background: #242f73;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(23, 31, 81, 0.25);
}

.otgd-ivp-wrapper .otgd-ivp-btn-secondary {
	background: #f1f5f9;
	color: #475569;
}

.otgd-ivp-wrapper .otgd-ivp-btn-secondary:hover {
	background: #e2e8f0;
	color: #1e293b;
}

.otgd-ivp-wrapper .otgd-ivp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

/* Final Outcome Screen */
.otgd-ivp-wrapper .otgd-ivp-outcome-screen {
	padding: 48px 32px;
	text-align: center;
	animation: otgdIvpFadeIn 0.5s ease forwards;
}

.otgd-ivp-wrapper .otgd-ivp-outcome-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #e0f2fe;
	color: #4bb7cf;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	margin: 0 auto 20px auto;
}

.otgd-ivp-wrapper .otgd-ivp-outcome-title {
	font-size: 1.6rem;
	font-weight: 700;
	color: #171f51;
	margin: 0 0 16px 0;
}

.otgd-ivp-wrapper .otgd-ivp-outcome-body {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #334155;
	max-width: 540px;
	margin: 0 auto;
}
