/* Form */

.form-group {
	flex:				1;
	margin:				1rem 0rem;
}

label {
	display:			block;

	color:				#666;
}

.form-icon  {
	vertical-align:		middle;
	height:				16px;
	width:				16px;
	fill:				none;
	stroke:				#666;
	stroke-width:		10;
}	

.form-input {
	width:				calc(100% - 20px);
	padding:			4px;
	margin:				2px 6px;
	font-size:			1rem;
	color:				#333;
	background-color:	white;
	border:				none;
	border-bottom:		2px solid var(--grey);
	transition:			all 0.3s;
}

.form-input:focus {
	outline:			none;
	border-bottom:		2px solid var(--red);
}

.form-input[readonly] {
    color: #777;
	border-bottom:		2px solid #dcdcdc;
	cursor:	default;
}

select {
	cursor:				pointer;
}

textarea.form-input {
	resize:				vertical;
	font-family:		Roboto, Arial, sans-serif;
	font-size:			0.9rem;
	border:				2px solid var(--grey);
	border-radius:		4px;
}
textarea.form-input:focus {
	outline:			none;
	border:				2px solid var(--red);
}

.form-info {
	min-width:			100%;
	background-color:	#f6f6f6;
	border-radius:		8px;
	padding:			1px 15px;
	margin-bottom:		20px;
}

.is-hidden {
	display:			none;
}

/* fancy radio buttons */


input[type="radio"] {
	position: absolute;
	opacity:0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

input[type="radio"] + label {
  position: relative;
  padding-left: 30px;
  display: inline-block;
  cursor: pointer;
  font-size: 1rem;
  line-height: 25px;
  height: 25px;
}

input[type="radio"] + label::before,
input[type="radio"] + label::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  margin: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  z-index: 0;
  transition: 0.3s ease;
}

input[type="radio"] + label::before {
  border: 2px solid var(--grey);
  background: #fff;
}

input[type="radio"] + label::after {
  border: 2px solid var(--red);
  background: var(--red);
  transform: scale(0);
}

input[type="radio"]:checked + label::after {
	transform: scale(1.02);
}

input[type="radio"] + label:hover::before {
	border-color: var(--red);
}



input[type="radio"]:focus-visible + label {
  border-bottom: 2px solid var(--red);
}

input[type="checkbox"]:focus-visible + label {
  border-bottom: 2px solid var(--red);
}

/* fancy checkbox */

input[type="checkbox"] {
	position: absolute;
	opacity:0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

input[type="checkbox"] + label {
  position: relative;
  padding-left: 30px;
  padding-bottom: 8px;
  cursor: pointer;
  color: #444;
}

input[type="checkbox"] + label:hover::before {
	border-color:	var(--red);
}

input[type="checkbox"] + label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 2px;
  transition: 0.2s;
  background: transparent;
}

input[type="checkbox"]:checked + label::before {
  top: -4px;
  left: -3px;
  width: 12px;
  height: 22px;
  border: 2px solid var(--red);
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  transform: rotate(35deg);
  transform-origin: 100% 100%;
}





/* tabs & edit box */

.editor-box {
	border: 1px solid var(--grey);
}

.tabs {
	display: flex;
}

.tabs a {
	padding: 10px 20px;
	background:	#f8f8f8;
	color: grey;
	text-decoration: none;
	border: 1px solid var(--grey);
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
	border-bottom: none;
	cursor: pointer;
	margin-right: 5px;
}

.tabs a.active {
	color: black;
	font-weight: 500;
	background:	white;
}

.tab-content {
	display: none;
	padding: 1rem;
}

.tab-content.active {
	display: block;
}

/* CTC */

.contract-box {
	padding: 1rem;
	margin-bottom: 1.5rem;
	border: 2px solid var(--grey);
	border-radius: 8px;
	transition: border 0.3s ease;
}
.contract-box.active {
	border: 2px solid var(--red);
}

.badge {
  white-space: nowrap;
	background-color: var(--red);
	color: white;
	margin-left: 20px;
	padding: 0.3em 0.6em;
	font-size: 0.9em;
	font-weight: bold;
	border-radius: 4px;
}

.contract-list {
	column-count: 2;
	column-gap: 2rem;
	list-style: none;
	padding: 0;
	margin-top: 1rem;
}

.contract-list li {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	display: flex;
	align-items: flex-start;
	margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
  .contract-list {
	column-count: 1;
  }
}

.check {
	position: relative;
	top: -4px;
	color: var(--red);
	margin-right: 0.5em;
	flex-shrink: 0;
	margin-top: 2px;
}

.check-text {
	display: block;
	text-align: left;
}

.ctc-option-details {
	display: block;
	font-size: 11pt;
	color:	#666;
	margin-left: 30px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--grey);
}

.ctc-info-toggle {
	font-size:			0.9em;
	color:				#555;
	padding:			0.3em 0.6em;
	background-color:	white;
	border:				2px solid var(--grey);
	border-radius:		10px;
	cursor:				pointer;
	white-space:		nowrap;
	transition:			0.2s;
}
.ctc-info-toggle:hover {
	border:				2px solid var(--red);
	color: 				var(--red);
}


.input-error, input.input-error + label {
	border-bottom: 2px solid var(--red);
	background-color: #ffeaea;
}
/* Shake animation */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}
.shake {
  animation: shake 0.4s ease;
}


.ctc_recap_table th {
	font-size:      18pt;
	font-weight:    500;
	text-align:     left;
	height:			70px;
	vertical-align:	bottom;
}
.ctc_recap_table td, .ctc_recap_table th {
	border-bottom:  1px solid #eceeef;
	padding:        8px;
}


/* side bar additions */

.ctc-container {
	display: flex;
	justify-content: flex-start;
}

.ctc-sidebar {
	position: sticky;
	top: 120px;
	width:	300px;
	min-width: 230px;
	margin-left: 70px;
	align-self: flex-start;
}

.ctc-sidebar-item {
	color: #888;
	display: flex;
	align-items: center;
}
.ctc-sidebar-item.active {
	color: var(--black);
}

.ctc-sidebar-number {
	display: inline-block;
	background: var(--grey);
	color: white;
	line-height: 24px;
	width: 24px;
	border-radius: 12px;
	margin: 8px;
	padding: 0px;
	text-align: center;
}
.ctc-sidebar-number.active {
	background: var(--black);
}

.ctc-content {
	width: 1000px;
	flex-grow: 1;
}


/*------------------ INFO LABEL -------------*/

.info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
	font-size : 0.8rem;
	color: #555;
	background: var(--silver);
    border-radius: 50%;
    margin-left: 6px;
    position: relative;
}

.info-icon::after {
    content: attr(data-info);
    position: absolute;
    left: 22px;
    background: #fff;
    color: #333;
    padding: 6px 8px;
    border: 1px solid #dadada;
    font-size: 0.78rem;
    line-height: 1.3;
    border-radius: 6px;
    min-width: 200px;
    max-width: 300px;
    opacity: 0;
    pointer-events: none;
    transition: all .15s ease;
    z-index: 50;
}

.info-icon:hover::after, .info-icon:focus::after{
    opacity: 1;
    transform: translate(4px,0);
}




/* Popup */

.sos-modal {
	display:			none; 
	position:			fixed; 
	z-index:			9999; 
	left:				0; 
	top:				0; 
	width:				100%; 
	height:				100%; 
	overflow:			auto; 
	background-color:	rgba(0,0,0,0.6);
	animation:			fadeIn 0.3s;
}

.sos-modal-content {
	position:			relative;
	margin:				8% auto;
	width:				90%;
	max-width:			1000px;
	background:			white;
	border-radius:		var(--radius);
	padding:			50px;
	box-shadow:			0 5px 20px rgba(0,0,0,0.5);
	animation:			slideDown 0.3s;
}

.sos-hours {
	font-size:			0.9em;
	color:				#777;
}

.sos-number {
	color:				var(--red);
	font-weight:		500;
	font-size:			1.5em;
}

.sos-section {
	margin-bottom:		40px;
}

.sos-close {
	position:			absolute;
	top:				12px;
	right:				24px;
	font-size:			2.2em;
	cursor:				pointer;
	color:				var(--black);
	transition:			all 0.3s;
}
.sos-close:hover {
	color:				var(--red);
}

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

@keyframes slideDown {
	from {transform: translateY(-50px); opacity: 0;}
	to {transform: translateY(0); opacity: 1;}
}