/**
 * Direct Candidate Application Modal Styles
 */

.hireu-app-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 10, 20, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	animation: hireuAppFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hireuAppFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.hireu-app-modal {
	background: #ffffff;
	border-radius: 20px;
	width: 100%;
	max-width: 620px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 60px -15px rgba(37, 7, 32, 0.35), 0 0 0 1px rgba(197, 139, 22, 0.15);
	position: relative;
	padding: 32px 36px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	color: #1F2937;
	animation: hireuAppSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hireuAppSlideUp {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.hireu-app-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #E5E7EB;
	background: #F9FAFB;
	color: #4B5563;
	font-size: 24px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.hireu-app-modal-close:hover {
	background: #250720;
	color: #ffffff;
	border-color: #250720;
}

/* Header */
.hireu-app-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #C58B16;
	background: #FFF9EE;
	border: 1px solid #FDE68A;
	padding: 4px 10px;
	border-radius: 9999px;
	margin-bottom: 8px;
}

.hireu-app-modal-header h3 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
}

.hireu-app-company-meta {
	font-size: 13.5px;
	color: #6B7280;
	margin: 0 0 20px;
}

/* Step Indicator */
.hireu-app-steps {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid #F3F4F6;
}

.hireu-app-step-item {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: default;
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.hireu-app-step-item.is-active {
	opacity: 1;
}

.hireu-app-step-item.is-done {
	opacity: 0.9;
}

.hireu-step-num {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #F3F4F6;
	color: #4B5563;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #E5E7EB;
}

.hireu-app-step-item.is-active .hireu-step-num {
	background: #250720;
	color: #ffffff;
	border-color: #250720;
}

.hireu-app-step-item.is-done .hireu-step-num {
	background: #C58B16;
	color: #ffffff;
	border-color: #C58B16;
}

.hireu-step-lbl {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.hireu-app-step-divider {
	flex: 1;
	height: 1px;
	background: #E5E7EB;
	margin: 0 12px;
}

/* Step Panes */
.hireu-app-step-pane {
	display: none;
}

.hireu-app-step-pane.is-active {
	display: block;
	animation: hireuPaneFade 0.2s ease;
}

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

/* Form Fields */
.hireu-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.hireu-form-col {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hireu-form-col label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.hireu-form-col .req {
	color: #DC2626;
}

.hireu-form-col input[type="text"],
.hireu-form-col input[type="email"],
.hireu-form-col input[type="tel"],
.hireu-form-col input[type="url"],
.hireu-form-col select,
.hireu-form-col textarea {
	padding: 10px 14px;
	border: 1.5px solid #E5E7EB;
	border-radius: 10px;
	font-size: 14px;
	color: #1F2937;
	outline: none;
	background: #FAFAFA;
	transition: all 0.2s ease;
	font-family: inherit;
	box-sizing: border-box;
	width: 100%;
}

.hireu-form-col input:focus,
.hireu-form-col select:focus,
.hireu-form-col textarea:focus {
	border-color: #C58B16;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(197, 139, 22, 0.12);
}

/* Resume Dropzone */
.hireu-resume-dropzone {
	position: relative;
	border: 2px dashed #D1D5DB;
	border-radius: 12px;
	background: #F9FAFB;
	padding: 24px 16px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.hireu-resume-dropzone:hover,
.hireu-resume-dropzone.is-dragover {
	border-color: #C58B16;
	background: #FFFDF9;
}

.hireu-resume-dropzone input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.hireu-dropzone-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	pointer-events: none;
}

.hireu-dropzone-inner svg {
	color: #C58B16;
}

.hireu-dz-prompt {
	font-size: 13.5px;
	color: #374151;
}

.hireu-dz-prompt strong {
	color: #C58B16;
}

.hireu-dz-hint {
	font-size: 11.5px;
	color: #9CA3AF;
}

.hireu-dz-selected-name {
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #059669;
	background: #ECFDF5;
	padding: 4px 12px;
	border-radius: 9999px;
	border: 1px solid #A7F3D0;
}

/* Terms */
.hireu-form-terms {
	margin: 16px 0 20px;
}

.hireu-form-terms label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12.5px;
	color: #6B7280;
	line-height: 1.4;
	cursor: pointer;
}

.hireu-form-terms input {
	margin-top: 3px;
	accent-color: #C58B16;
}

/* Modal Actions */
.hireu-app-footer-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid #F3F4F6;
}

.hireu-app-btn {
	padding: 11px 24px;
	border-radius: 10px;
	background: linear-gradient(135deg, #D49A24 0%, #B87C0E 100%);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(197, 139, 22, 0.28);
	transition: all 0.2s ease;
}

.hireu-app-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(197, 139, 22, 0.38);
}

.hireu-app-btn-sec {
	padding: 10px 20px;
	border-radius: 10px;
	background: #F3F4F6;
	color: #4B5563;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #E5E7EB;
	cursor: pointer;
	transition: all 0.2s ease;
}

.hireu-app-btn-sec:hover {
	background: #E5E7EB;
	color: #1F2937;
}

.hireu-app-alert {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 16px;
}

.hireu-app-alert.error {
	background: #FEF2F2;
	color: #B91C1C;
	border: 1px solid #FECACA;
}

.hireu-app-alert.success {
	background: #ECFDF5;
	color: #047857;
	border: 1px solid #A7F3D0;
}

/* ==========================================================================
   Step 2: Review Pane Styles
   ========================================================================== */
.hireu-app-review-wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hireu-app-rev-box {
	background: #FAF8F5;
	border: 1px solid #EFE6D6;
	border-radius: 12px;
	padding: 16px 18px;
}

.hireu-app-rev-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #EAE0CE;
}

.hireu-app-rev-header h4 {
	margin: 0;
	font-size: 13.5px;
	font-weight: 700;
	color: #250720;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hireu-app-rev-edit {
	background: none;
	border: none;
	color: #C58B16;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}

.hireu-app-rev-edit:hover {
	color: #250720;
}

.hireu-app-rev-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
	font-size: 13.5px;
	color: #374151;
}

.hireu-app-rev-grid strong {
	color: #6B7280;
	font-weight: 600;
	margin-right: 4px;
}

.hireu-app-rev-resume-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	font-weight: 600;
	color: #047857;
	background: #ECFDF5;
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid #A7F3D0;
}

.hireu-app-rev-note {
	margin: 0;
	font-size: 13px;
	color: #4B5563;
	line-height: 1.5;
	font-style: italic;
}

/* ==========================================================================
   Step 3: Success Screen & What's Next Timeline (Blueprint 2)
   ========================================================================== */
.hireu-success-checkmark-circle {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: linear-gradient(135deg, #10B981 0%, #059669 100%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 25px rgba(5, 150, 105, 0.35);
	margin-bottom: 18px;
	animation: hireuSuccessPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hireuSuccessPop {
	0% { transform: scale(0.6); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

.hireu-success-title {
	font-size: 24px;
	font-weight: 800;
	color: #111827;
	margin: 0 0 8px;
}

.hireu-success-subtitle {
	font-size: 14.5px;
	color: #4B5563;
	max-width: 480px;
	margin: 0 auto 24px;
	line-height: 1.5;
}

.hireu-success-action-btns {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.hireu-app-view-link {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* What's Next Timeline */
.hireu-whats-next-box {
	background: #FAF8F5;
	border: 1px solid #EFE6D6;
	border-radius: 16px;
	padding: 20px 24px;
	text-align: left;
	max-width: 500px;
	margin: 0 auto;
}

.hireu-whats-next-title {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 800;
	color: #250720;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.hireu-whats-next-timeline {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hireu-wn-step {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.hireu-wn-num {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #250720;
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 1px;
}

.hireu-wn-text strong {
	display: block;
	font-size: 13.5px;
	color: #111827;
	line-height: 1.3;
}

.hireu-wn-text p {
	margin: 2px 0 0;
	font-size: 12.5px;
	color: #6B7280;
	line-height: 1.4;
}

@media (max-width: 640px) {
	.hireu-form-row,
	.hireu-app-rev-grid {
		grid-template-columns: 1fr;
	}
	.hireu-app-modal {
		padding: 24px 20px;
	}
	.hireu-step-lbl {
		display: none;
	}
}
