/* BASE MODAL */

body.modal-open,
body.modal-open .page-wrapper,
body.modal-open .page-content {
    overflow: hidden; /* prevent scrolling when modal is open */
}

.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: rgba(0,0,0,0);
	z-index: 1000;
	height: 0;
	transition: background 0.3s;
}

.modal.open {
	height: 100%;
	background: rgba(0,0,0,0.5);
}

.modal .modal-content {
	position: fixed;
	top: 20px;
	left: 20px;
	width: calc(100% - 40px);
	height: 0;
	margin: 0 auto;
	background: #202526;
	z-index: 1001;
	overflow: scroll;
	border-radius: 5px;
	-webkit-transform: scale(0.75);
	-ms-transform: scale(0.75);
	transform: scale(0.75);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.320, 1.275), opacity 0.3s cubic-bezier(0.175, 0.885, 0.320, 1.275);
	opacity: 0;
	padding-bottom: 20px;
	box-shadow: 0px 0px 10px rgba(0,0,0,0.75);
}

/* FULL SCREEN MODAL STYLES */

.modal.fullscreen .modal-content {
	top: 0px;
	left: 0px;
	width: 100%;
}

.modal.fullscreen.open .modal-content {
	height: 100%;
}


.modal-page-width {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    width: 100%;
    max-width: 960px;
    padding-right: 20px;
    padding-left: 20px;
}

.modal.open .modal-content {
	-webkit-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
	height: calc(100% - 40px);
}

.modal .modal-title {
	font-weight: 700;
	font-size: 2.4em;
	color: #FFF;
	margin-top: 60px;
	margin-bottom: 40px;
	text-align: center;
}

.modal.has-subtitle .modal-title {
	margin-bottom: 30px;
}

.modal.has-subtitle .modal-subtitle {
	text-align: center;
    font-size: 1.4rem;
}

.modal input[type="text"],
.modal textarea,
.modal input[type="number"],
.modal input[type="text"]:focus,
.modal textarea:focus,
.modal input[type="number"]:focus {
	background-color: #363E40;
}

.modal.date-picker .date-group .left,
.modal.date-picker .date-group .middle,
.modal.date-picker .date-group .right {
	width: calc(100% / 3);
	float: left;
}

.modal.date-picker .date-group input {
	background: none;
    box-shadow: none;
    margin-bottom: 0;
    border-right: 1px solid #6b7880;
    border-radius: 0;
    font-size: 3em;
}

.modal.date-picker .date-group .right input {
	border-right: none;
}

.modal.date-picker .title {
	text-align: center;
    font-weight: 700;
    color: #2C9DB0;
    font-size: 1.6em;
    margin-top: 50px;
    margin-bottom: 50px;
}