/* ==========================================================================
   appsc-form.css - One Time Registration form (Index/profile_template)

   Presentation only. Loaded by application/views/apply/profile_template.php
   after that view's own <style> blocks, and scoped to the page's wrapper
   (.container-fluid.background), so it neither
   touches markup or scripts nor reaches any other page.

   The step buttons carry their state as an inline background colour set in
   PHP (#E9CDCD current, #BBFEAE done, #F1F1F1 not yet); those colours are
   matched with attribute selectors so the meaning is kept.
   ========================================================================== */

/* ---- Page and header ---------------------------------------------------- */
body {
	background-color: #f3f5f9;
}

.container-fluid.background {
	padding-bottom: 48px;
	background: #f3f5f9 !important;
	color: #1c2436;
}

/* The page now uses the public site header (template_config/site_header.php),
   which is in normal flow, so the 120px the view reserves for the old fixed
   candidate bar is not needed. */
.site-head ~ .container-fluid.background #page-wrapper {
	padding-top: 28px !important;
}

/* ---- Step indicator ---------------------------------------------------- */
.background #page-wrapper .btn-rounded.btn-lg {
	min-height: 52px;
	padding: 12px 18px !important;
	border-radius: 12px !important;
	font-size: 15px !important;
	font-weight: 600;
	letter-spacing: .01em;
	box-shadow: 0 6px 16px rgba(13, 28, 67, .10);
	transition: box-shadow .15s ease;
}

.background #page-wrapper .btn-rounded.btn-lg .badge {
	margin-left: 6px;
	background-color: rgba(255, 255, 255, .22);
	color: inherit;
}

.background #page-wrapper .btn-rounded[style*="#E9CDCD"] {
	background: #0d1c43 !important;
	border-color: #0d1c43 !important;
	color: #fff !important;
	box-shadow: 0 8px 20px rgba(13, 28, 67, .25);
}

.background #page-wrapper .btn-rounded[style*="#BBFEAE"] {
	background: #e6f4ea !important;
	border-color: #b9dfc4 !important;
	color: #1e7b3a !important;
}

.background #page-wrapper .btn-rounded[style*="#F1F1F1"] {
	background: #fff !important;
	border-color: #e2e7f0 !important;
	color: #5d6679 !important;
}

.background #page-wrapper .btn-rounded[style*="#F1F1F1"] .badge,
.background #page-wrapper .btn-rounded[style*="#BBFEAE"] .badge {
	background-color: #eef2f8;
}

.background #page-wrapper a.smpl-step-icon {
	height: 3px !important;
	margin-top: 25px !important;
	border-radius: 3px;
	background: #cfd6e4 !important;
}

/* ---- Card around the form ---------------------------------------------- */
.background #page-wrapper .panel.with-nav-tabs {
	border: 0;
	background: transparent;
	box-shadow: none;
}

.background #page-wrapper .panel-body[style*="box-shadow"] {
	padding: 22px 26px 26px;
	border: 1px solid #e2e7f0;
	border-radius: 16px;
	background-color: #fff;
	box-shadow: 0 1px 2px rgba(13, 28, 67, .06), 0 12px 32px rgba(13, 28, 67, .08) !important;
}

/* Tabs: the tab strip sits in a half-width column, which wrapped the
   fourth tab onto a second line. */
.background #page-wrapper .panel.with-nav-tabs > .col-lg-6 {
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.background #page-wrapper .card#tabs {
	border: 0;
	background: transparent;
}

.background #page-wrapper .nav-tabs.customtab {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 -1px;
	padding: 0;
	border-bottom: 0;
}

.background #page-wrapper .nav-tabs.customtab > li {
	float: none;
	margin: 0;
}

.background #page-wrapper .nav-tabs.customtab > li > a {
	margin: 0;
	padding: 10px 18px;
	border: 1px solid #e2e7f0;
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	background-color: #eef2f8;
	color: #5d6679;
	font-size: 14px;
	font-weight: 600;
}

.background #page-wrapper .nav-tabs.customtab > li.active > a,
.background #page-wrapper .nav-tabs.customtab > li.active > a:hover,
.background #page-wrapper .nav-tabs.customtab > li.active > a:focus {
	border-color: #0d1c43;
	background-color: #0d1c43;
	color: #fff;
}

.background #page-wrapper .customtab li a.nav-link:hover {
	color: #0d1c43;
}

/* "The Fields with * mark are mandatory" */
.background #page-wrapper label.control-label[style*="color: red"] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background-color: #fdecea;
	color: #b3261e !important;
	font-size: 13px;
	font-weight: 600;
}

/* ID proof reminder under the ID Proof field */
.background #page-wrapper h5[style*="ca2727"] {
	margin: 4px 0 8px !important;
	padding: 10px 14px;
	border-radius: 10px;
	background-color: #fff5e8;
	color: #7a4a0c !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
}

/* ---- Sections ---------------------------------------------------------- */
.background #page-wrapper fieldset {
	margin: 22px 0 0;
	padding: 18px 22px 12px !important;
	border: 1px solid #e2e7f0;
	border-radius: 14px;
	background-color: #fff;
}

.background #page-wrapper fieldset:hover {
	box-shadow: none;
}

.background #page-wrapper legend {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: auto !important;
	margin: 0 0 6px !important;
	padding: 7px 16px 7px 14px;
	border: 0;
	border-radius: 999px;
	background: #0d1c43;
	box-shadow: 0 6px 14px rgba(13, 28, 67, .18);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
}

.background #page-wrapper legend::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #f7941d;
}

.background #page-wrapper h4 {
	color: #0d1c43;
}

/* The one-field-per-row tables */
.background #page-wrapper fieldset > table.table,
.background #page-wrapper fieldset > .table-responsive > table.table {
	margin-bottom: 4px;
	background: transparent;
}

.background #page-wrapper fieldset > table.table > tbody > tr > td {
	padding: 6px 0;
	border-top: 1px solid #eef2f8;
	background: transparent !important;
}

.background #page-wrapper fieldset > table.table > tbody > tr:first-child > td {
	border-top: 0;
}

.background #page-wrapper fieldset > table.table .form-group {
	margin-bottom: 4px;
}

.background #page-wrapper .control-label {
	padding-top: 10px;
	color: #1c2436;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.background #page-wrapper .control-label .fa {
	width: 16px;
	text-align: center;
	color: #f7941d !important;
}

/* ---- Inputs ------------------------------------------------------------ */
.background #page-wrapper .form-control {
	height: 40px;
	padding: 8px 12px;
	border: 1px solid #d7dde8;
	border-radius: 8px;
	background-color: #fff;
	color: #1c2436;
	font-size: 14px;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.background #page-wrapper textarea.form-control {
	height: auto;
}

.background #page-wrapper .form-control:focus {
	border-color: #1b2f66;
	box-shadow: 0 0 0 3px rgba(27, 47, 102, .14);
	outline: 0;
}

.background #page-wrapper .form-control[disabled],
.background #page-wrapper .form-control[readonly] {
	background-color: #f3f5f9;
	color: #5d6679;
}

.background #page-wrapper .form-control::placeholder {
	color: #a3abbb !important;
}

.background #page-wrapper .has-error .form-control {
	border-color: #d93025;
}

.background #page-wrapper .has-success .form-control {
	border-color: #1e7b3a;
}

.background #page-wrapper .help-block {
	margin-top: 4px;
	font-size: 12px;
}

.background #page-wrapper .radio-inline,
.background #page-wrapper .checkbox-inline {
	margin-right: 14px;
	padding-top: 10px;
	color: #1c2436;
	font-size: 14px;
}

.background #page-wrapper input[type="radio"],
.background #page-wrapper input[type="checkbox"] {
	accent-color: #0d1c43;
}

/* Icons shown inside some inputs (user id, password, captcha) */
.background #page-wrapper .form-group .icon {
	color: #8a93a6;
}

/* Data tables in the Academic tab */
.background #page-wrapper .table-bordered {
	border-color: #e2e7f0;
	border-radius: 10px;
}

.background #page-wrapper .table-bordered > thead > tr > th,
.background #page-wrapper .table > thead > tr > th {
	border-color: #1b2f66;
	background-color: #0d1c43;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	vertical-align: middle;
}

.background #page-wrapper .table-bordered > tbody > tr > td {
	border-color: #e2e7f0;
	vertical-align: middle;
}

/* ---- Buttons ----------------------------------------------------------- */
.background #page-wrapper .btn {
	border-radius: 10px;
	font-weight: 600;
	transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.background #page-wrapper .btn-warning,
.background #page-wrapper .btn-warning:focus,
.background #page-wrapper .btn-warning:active {
	min-height: 46px;
	padding: 11px 20px;
	border: 0;
	background-color: #f7941d;
	color: #fff;
	font-size: 15px;
	box-shadow: 0 8px 20px rgba(247, 148, 29, .28);
}

.background #page-wrapper .btn-warning:hover {
	background-color: #e4791a;
	color: #fff;
}

.background #page-wrapper .btn-warning.btnPrevious,
.background #page-wrapper .btn-warning.btnPrevious:focus {
	margin-right: 12px;
	border: 1px solid #cfd6e4;
	background-color: #fff;
	color: #0d1c43;
	box-shadow: none;
}

.background #page-wrapper .btn-warning.btnPrevious:hover {
	border-color: #0d1c43;
	background-color: #eef2f8;
	color: #0d1c43;
}

.background #page-wrapper .btn-primary:not(.btn-rounded),
.background #page-wrapper .btn-primary:not(.btn-rounded):focus {
	border-color: #0d1c43;
	background-color: #0d1c43;
	color: #fff;
}

.background #page-wrapper .btn-primary:not(.btn-rounded):hover {
	border-color: #1b2f66;
	background-color: #1b2f66;
}

.background #page-wrapper .btn:focus-visible {
	outline: 2px solid #f6cd61;
	outline-offset: 2px;
}

/* ---- Pop-ups on this page ---------------------------------------------- */
.background .modal-content,
body > .modal .modal-content {
	border: 0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(8, 19, 34, .4);
}

.background .modal-header {
	border-bottom: 3px solid #f7941d;
	background: linear-gradient(90deg, #0b1a2d, #0d1c43 60%, #1b2f66);
	color: #fff;
}

.background .modal-header h3,
.background .modal-header h4,
.background .modal-header .modal-title {
	color: #fff !important;
}

.background .modal-header .close {
	color: #fff;
	opacity: .9;
	text-shadow: none;
}

/* ---- Phones and tablets ------------------------------------------------ */
@media (max-width: 991px) {
	/* The view pulls this row 30px past each side, which made the form
	   wider than a phone screen. */
	.background #page-wrapper .pad {
		margin-left: 0;
		margin-right: 0;
	}

	.background #page-wrapper .panel-body[style*="box-shadow"] {
		padding: 16px 14px 20px;
	}

	.background #page-wrapper .control-label {
		padding-top: 4px;
	}
}

@media (max-width: 770px) {
	.background #page-wrapper fieldset {
		padding: 14px 12px 8px !important;
	}

	/* The view pushes the legend 25% in on phones. */
	.background #page-wrapper legend {
		margin-left: 0 !important;
		font-size: 14px;
	}

	.background #page-wrapper .btn-rounded.btn-lg {
		min-height: 44px;
		padding: 8px 10px !important;
		font-size: 14px !important;
	}

	.background #page-wrapper .nav-tabs.customtab > li > a {
		padding: 8px 12px;
		font-size: 13px;
	}

	/* The view sets .modal-dialog to 50% and .modal-content to 190%. */
	.background .modal-dialog {
		width: auto !important;
		margin: 16px 10px !important;
	}

	.background .modal-content {
		width: auto !important;
		margin-top: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.background #page-wrapper .btn,
	.background #page-wrapper .form-control {
		transition: none;
	}
}
