/* ==========================================================================
   Guest Editor System - PathJeevani theme
   Palette pulled from Path_Logo_TP: blue #456D90, gold #EAB714, maroon #873737
   Font family intentionally NOT set here - inherits the site's existing fonts.
   ========================================================================== */

.ges-wizard {
	--ges-blue: #456D90;
	--ges-blue-dark: #2E4A5F;
	--ges-blue-light: #6B93B4;
	--ges-gold: #EAB714;
	--ges-gold-dark: #C79A0E;
	--ges-maroon: #873737;
	--ges-border: #E2E8EC;
	--ges-bg: #F7F9FB;
	--ges-field-bg: #F0F4F7;
	--ges-text: #22303A;
	--ges-muted: #7C8B94;
}

.ges-wizard,
#ges-apply-wizard,
#ges-submit-wizard {
	display: block !important;
	max-width: 100% !important;
	width: 100% !important;
	height: auto !important;
	box-sizing: border-box !important;
	margin: 28px 0;
	background: #fff;
	border: 1px solid #EAEEF1;
	border-radius: 22px;
	box-shadow: 0 1px 2px rgba(34, 48, 58, 0.04), 0 20px 48px -20px rgba(34, 48, 58, 0.18);
	overflow: hidden;
	color: var(--ges-text);
	position: relative;
}

/* The gradient rail is now rendered as a real .ges-rail div with inline
   styles (see PHP output) instead of a ::before pseudo-element, so it
   can't be silently dropped by aggressive theme resets. */
/* ---------- Progress bar ---------- */

.ges-steps,
#ges-apply-wizard .ges-steps,
#ges-submit-wizard .ges-steps {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	justify-content: space-between !important;
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 32px 40px 26px;
	background: var(--ges-bg);
	border-bottom: 1px solid var(--ges-border);
}

.ges-step,
#ges-apply-wizard .ges-step,
#ges-submit-wizard .ges-step {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	flex: 1 1 0 !important;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	text-align: center !important;
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

.ges-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 20px;
	left: calc(50% + 30px);
	right: calc(-50% + 30px);
	height: 3px;
	border-radius: 3px;
	background: var(--ges-border);
	z-index: 0;
	transition: background .3s ease;
}

.ges-step.is-complete:not(:last-child)::after {
	background: linear-gradient(90deg, var(--ges-gold), var(--ges-gold-dark));
}

.ges-step-circle {
	position: relative !important;
	z-index: 1 !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	max-width: 40px !important;
	border-radius: 50% !important;
	background: #fff;
	border: 2px solid var(--ges-border);
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-weight: 700;
	font-size: 14.5px;
	color: var(--ges-muted);
	padding: 0 !important;
	margin: 0 !important;
	transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.ges-step.is-active .ges-step-circle {
	border-color: var(--ges-blue);
	background: var(--ges-blue);
	color: #fff;
	box-shadow: 0 0 0 5px rgba(69, 109, 144, 0.15);
}

.ges-step.is-complete .ges-step-circle {
	border-color: var(--ges-gold);
	background: linear-gradient(135deg, var(--ges-gold), var(--ges-gold-dark));
	color: #fff;
}

.ges-step-label {
	display: block !important;
	width: auto !important;
	margin: 10px 0 0 !important;
	padding: 0 !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ges-muted);
}

.ges-step.is-active .ges-step-label {
	color: var(--ges-blue);
}

.ges-step.is-complete .ges-step-label {
	color: var(--ges-maroon);
}

/* ---------- Panels ---------- */

.ges-panel {
	display: none !important;
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 34px 40px 36px;
}

.ges-panel.is-visible {
	display: block !important;
}

.ges-panel-title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	color: var(--ges-blue-dark);
	letter-spacing: -.01em;
}

.ges-panel-sub {
	margin: 0 0 26px;
	font-size: 13.5px;
	color: var(--ges-muted);
}

/* ---------- Fields ---------- */

.ges-row {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.ges-row .ges-field {
	flex: 1 1 220px;
}

.ges-field {
	margin: 0 0 20px;
}

.ges-field label {
	display: block;
	font-weight: 700;
	font-size: 11.5px;
	letter-spacing: .05em;
	text-transform: uppercase;
	margin-bottom: 8px;
	color: var(--ges-muted);
}

.ges-field .ges-hint {
	display: block;
	font-weight: 400;
	font-size: 12px;
	letter-spacing: normal;
	text-transform: none;
	color: var(--ges-muted);
	margin-top: 6px;
}

.ges-field input[type="text"],
.ges-field input[type="email"],
.ges-field input[type="tel"],
.ges-field input[type="password"],
.ges-field select,
.ges-field textarea,
#ges-apply-wizard .ges-field input[type="text"],
#ges-apply-wizard .ges-field input[type="email"],
#ges-apply-wizard .ges-field input[type="tel"],
#ges-apply-wizard .ges-field input[type="password"],
#ges-apply-wizard .ges-field select,
#ges-apply-wizard .ges-field textarea,
#ges-submit-wizard .ges-field input[type="text"],
#ges-submit-wizard .ges-field input[type="email"],
#ges-submit-wizard .ges-field input[type="tel"],
#ges-submit-wizard .ges-field input[type="password"],
#ges-submit-wizard .ges-field select,
#ges-submit-wizard .ges-field textarea {
	width: 100% !important;
	padding: 13px 15px !important;
	border: 1.5px solid var(--ges-border) !important;
	border-radius: 11px !important;
	box-sizing: border-box !important;
	font-size: 14.5px !important;
	color: var(--ges-text) !important;
	background: var(--ges-field-bg) !important;
	box-shadow: none !important;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.ges-field input[type="text"]:focus,
.ges-field input[type="email"]:focus,
.ges-field input[type="tel"]:focus,
.ges-field input[type="password"]:focus,
.ges-field select:focus,
.ges-field textarea:focus,
#ges-apply-wizard .ges-field input:focus,
#ges-apply-wizard .ges-field select:focus,
#ges-apply-wizard .ges-field textarea:focus,
#ges-submit-wizard .ges-field input:focus,
#ges-submit-wizard .ges-field select:focus,
#ges-submit-wizard .ges-field textarea:focus {
	outline: none !important;
	border-color: var(--ges-blue) !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px rgba(69, 109, 144, 0.12) !important;
}

.ges-field input[type="file"],
#ges-apply-wizard .ges-field input[type="file"],
#ges-submit-wizard .ges-field input[type="file"] {
	width: 100% !important;
	padding: 11px 13px !important;
	border: 1.5px dashed var(--ges-border) !important;
	border-radius: 11px !important;
	box-sizing: border-box !important;
	font-size: 13.5px !important;
	color: var(--ges-muted) !important;
	background: var(--ges-bg) !important;
}

.ges-field select {
	appearance: none !important;
	-webkit-appearance: none !important;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C8B94' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 16px !important;
	padding-right: 40px !important;
}

.ges-field select option {
	color: #22303A !important;
	background: #ffffff !important;
}

.ges-field textarea {
	resize: vertical;
	min-height: 96px;
}

.ges-required {
	color: var(--ges-maroon);
}

.ges-charcount {
	display: block;
	text-align: right;
	font-size: 12px;
	color: var(--ges-muted);
	margin-top: 6px;
}

.ges-charcount.is-over {
	color: var(--ges-maroon);
	font-weight: 700;
}

.ges-other-category {
	margin-top: 12px;
	display: none;
}

.ges-other-category.is-visible {
	display: block;
}

/* ---------- Buttons ---------- */

.ges-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 30px;
}

.ges-btn {
	background: linear-gradient(135deg, var(--ges-blue), var(--ges-blue-dark));
	color: #fff;
	border: none;
	padding: 13px 28px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: .01em;
	box-shadow: 0 8px 20px -8px rgba(69, 109, 144, 0.55);
	transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.ges-btn:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -8px rgba(69, 109, 144, 0.6);
}

.ges-btn:active {
	transform: translateY(0);
}

.ges-btn-gold {
	background: linear-gradient(135deg, var(--ges-gold), var(--ges-gold-dark));
	color: #4A3A00;
	box-shadow: 0 8px 20px -8px rgba(234, 183, 20, 0.6);
}

.ges-btn-gold:hover {
	box-shadow: 0 10px 24px -8px rgba(234, 183, 20, 0.65);
}

.ges-btn-ghost {
	background: transparent;
	color: var(--ges-muted);
	border: none;
	padding: 13px 18px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14.5px;
	font-weight: 700;
	transition: color .15s ease, background .15s ease;
}

.ges-btn-ghost:hover {
	color: var(--ges-blue);
	background: var(--ges-bg);
}

/* ---------- Notices ---------- */

.ges-notice {
	padding: 15px 20px;
	border-radius: 12px;
	margin-bottom: 20px;
	border-left: 4px solid;
	font-size: 14px;
}

.ges-notice.ges-success {
	background: #F1F8EE;
	border-color: #4C8B3B;
	color: #365F2B;
}

.ges-notice.ges-error {
	background: #FBF0F0;
	border-color: var(--ges-maroon);
	color: var(--ges-maroon);
}

.ges-notice.ges-info {
	background: #EEF3F7;
	border-color: var(--ges-blue);
	color: var(--ges-blue-dark);
}

/* ---------- Success screen ---------- */

.ges-success-screen {
	padding: 56px 40px 48px;
	text-align: center;
}

.ges-success-icon {
	width: 68px;
	height: 68px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ges-gold), var(--ges-gold-dark));
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 26px -10px rgba(234, 183, 20, 0.7);
}

.ges-success-icon svg {
	width: 30px;
	height: 30px;
	stroke: #fff;
}

.ges-success-screen h3 {
	margin: 0 0 8px;
	font-size: 21px;
	color: var(--ges-blue-dark);
}

.ges-success-screen p {
	margin: 0;
	color: var(--ges-muted);
	font-size: 14.5px;
}

/* ---------- My Posts table (submit page, logged-in guest editors) ---------- */

.ges-my-posts {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-top: 14px;
	border: 1px solid var(--ges-border);
	border-radius: 14px;
	overflow: hidden;
}

.ges-my-posts th,
.ges-my-posts td {
	text-align: left;
	padding: 12px 16px;
	border-bottom: 1px solid var(--ges-border);
	font-size: 14px;
}

.ges-my-posts tr:last-child td {
	border-bottom: none;
}

.ges-my-posts th {
	background: var(--ges-bg);
	color: var(--ges-blue-dark);
	font-size: 11.5px;
	letter-spacing: .05em;
	text-transform: uppercase;
	font-weight: 700;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.ges-btn,
	.ges-step-circle,
	.ges-step:not(:last-child)::after {
		transition: none !important;
	}
}

/* ---------- Responsive ---------- */

@media (min-width: 900px) {
	.ges-panel {
		padding: 40px 52px 44px;
	}

	.ges-steps {
		padding: 36px 52px 30px;
	}
}

@media (max-width: 560px) {
	.ges-steps {
		padding: 22px 18px 18px;
	}

	.ges-panel {
		padding: 24px 20px 28px;
	}

	.ges-step-label {
		font-size: 10px;
	}

	.ges-actions {
		flex-direction: column-reverse;
		gap: 12px;
		align-items: stretch;
	}

	.ges-actions .ges-btn,
	.ges-actions .ges-btn-ghost,
	.ges-actions .ges-btn-gold {
		width: 100%;
		text-align: center;
	}
}
