/**
 * CodeClove Public Admissions & Careers Form Styles
 *
 * @package CodeClove\Modules\Admissions
 */

:root {
	--codeclove-brand: #4f46e5;
	--codeclove-brand-hover: color-mix(in srgb, var(--codeclove-brand) 85%, #000);
	--codeclove-brand-light: color-mix(in srgb, var(--codeclove-brand) 8%, #fff);
	--codeclove-brand-ring: color-mix(in srgb, var(--codeclove-brand) 18%, transparent);
}

.codeclove-public-wrap,
.codeclove-public-wrap * {
	box-sizing: border-box;
}

.codeclove-public-wrap {
	width: 680px;
	max-width: 100%;
	margin: 28px auto;
	padding: 32px;
	background: #ffffff;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: #0f172a;
	line-height: 1.5;
}

.codeclove-header {
	text-align: center;
	margin-bottom: 26px;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 20px;
}

.codeclove-header h3 {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.codeclove-header p.desc {
	margin: 0 auto;
	max-width: 540px;
	font-size: 0.875rem;
	color: #64748b;
	line-height: 1.5;
}

.codeclove-section-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #0f172a;
	margin: 28px 0 16px;
	line-height: 1.3;
	letter-spacing: -0.01em;
	display: flex;
	align-items: center;
	gap: 12px;
}

.codeclove-section-title::before {
	content: "";
	width: 9px;
	height: 9px;
	background: var(--codeclove-brand);
	border-radius: 50%;
	box-shadow: 0 0 0 3.5px var(--codeclove-brand-light), 0 0 0 4.5px rgba(0, 0, 0, 0.04);
	margin-left: 2px;
	flex-shrink: 0;
}

.codeclove-section-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}

.codeclove-section-title:first-of-type {
	margin-top: 0;
}

.codeclove-sub-title {
	font-size: 0.85rem;
	font-weight: 600;
	color: #334155;
	margin: 16px 0 10px;
}

.codeclove-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.codeclove-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.codeclove-field.full {
	grid-column: 1 / -1;
}

.codeclove-field label {
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: #334155;
	line-height: 1.3;
	display: flex;
	align-items: center;
}

.codeclove-field label span.req {
	color: #dc2626;
	margin-left: 3px;
	font-weight: 700;
}

.codeclove-field input,
.codeclove-field select {
	width: 100%;
	height: 42px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.925rem;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	background: #ffffff;
	color: #0f172a;
	font-family: inherit;
	line-height: 40px;
}

.codeclove-field select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%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;
}

.codeclove-field textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.925rem;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	background: #ffffff;
	color: #0f172a;
	font-family: inherit;
	line-height: 1.45;
	resize: vertical;
	min-height: 84px;
}

.codeclove-field input:focus,
.codeclove-field select:focus,
.codeclove-field textarea:focus {
	border-color: var(--codeclove-brand);
	box-shadow: 0 0 0 3px var(--codeclove-brand-ring);
}

.codeclove-field input::placeholder,
.codeclove-field textarea::placeholder {
	color: #64748b;
}

.codeclove-submit-btn {
	width: 100%;
	height: 44px;
	min-height: 44px;
	padding: 0 20px;
	background: var(--codeclove-brand);
	color: #ffffff;
	font-weight: 600;
	font-size: 0.925rem;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
	margin-top: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.codeclove-submit-btn:hover {
	background: var(--codeclove-brand-hover);
	box-shadow: 0 4px 12px -2px var(--codeclove-brand-ring);
}

.codeclove-submit-btn:active {
	transform: scale(0.99);
}

.codeclove-submit-btn:focus-visible {
	outline: 2px solid var(--codeclove-brand);
	outline-offset: 2px;
}

.codeclove-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.codeclove-response-msg {
	margin-top: 18px;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 0.875rem;
	display: none;
	line-height: 1.5;
}

.codeclove-response-msg.success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.codeclove-response-msg.error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.codeclove-tracker-card {
	margin-top: 24px;
	padding: 24px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	display: none;
}

.codeclove-tracker-card.notfound {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
	padding: 16px;
	text-align: center;
	font-size: 0.875rem;
	border-radius: 8px;
}

.codeclove-tracker-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding-bottom: 14px;
	margin-bottom: 18px;
	border-bottom: 1px solid #e2e8f0;
	flex-wrap: wrap;
	gap: 10px;
}

.codeclove-tracker-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}

.codeclove-tracker-meta {
	font-size: 0.8125rem;
	color: #64748b;
	margin-top: 3px;
}

.codeclove-tracker-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.775rem;
	font-weight: 600;
	background: var(--codeclove-brand-light);
	color: var(--codeclove-brand);
	border: 1px solid var(--codeclove-brand-ring);
	text-transform: capitalize;
}

.codeclove-stepper {
	display: flex;
	justify-content: space-between;
	position: relative;
	margin: 24px 0 18px;
}

.codeclove-stepper::before {
	content: "";
	position: absolute;
	top: 15px;
	left: 12%;
	right: 12%;
	height: 2px;
	background: #e2e8f0;
	z-index: 1;
}

.codeclove-step {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 25%;
	text-align: center;
}

.codeclove-step-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid #cbd5e1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 8px;
	transition: all 0.15s ease;
}

.codeclove-step-lbl {
	font-size: 0.775rem;
	font-weight: 500;
	color: #64748b;
	line-height: 1.25;
}

.codeclove-step.completed .codeclove-step-num {
	background: var(--codeclove-brand);
	border-color: var(--codeclove-brand);
	color: #ffffff;
}

.codeclove-step.completed .codeclove-step-lbl {
	color: #0f172a;
	font-weight: 600;
}

.codeclove-step.active .codeclove-step-num {
	background: #ffffff;
	border-color: var(--codeclove-brand);
	color: var(--codeclove-brand);
	box-shadow: 0 0 0 3px var(--codeclove-brand-ring);
}

.codeclove-step.active .codeclove-step-lbl {
	color: var(--codeclove-brand);
	font-weight: 600;
}

.codeclove-guidance-box {
	background: #ffffff;
	padding: 14px 18px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	font-size: 0.875rem;
	color: #334155;
	line-height: 1.5;
	margin-top: 18px;
}

@media (max-width: 680px) {
	.codeclove-public-wrap {
		padding: 24px 18px;
		margin: 16px auto;
		border-radius: 12px;
	}

	.codeclove-header {
		margin-bottom: 20px;
		padding-bottom: 16px;
	}

	.codeclove-header h3 {
		font-size: 1.25rem;
	}

	.codeclove-section-title {
		margin: 22px 0 14px;
		font-size: 0.9rem;
	}

	.codeclove-form-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.codeclove-stepper {
		margin: 18px 0 14px;
	}

	.codeclove-step-num {
		width: 28px;
		height: 28px;
		font-size: 0.75rem;
	}

	.codeclove-stepper::before {
		top: 13px;
	}

	.codeclove-step-lbl {
		font-size: 0.7rem;
	}
}
