@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');


/* ============================================================
   GLOBAL RESET
   ============================================================ */

* {
	margin: 0;
	padding: 0;
	list-style: none;
	text-decoration: none;
	box-sizing: border-box;
}


/* ============================================================
   HTML / BODY
   ============================================================ */

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}


/* ============================================================
   MAIN CONTENT
   ============================================================ */

.canisters {
	flex: 1;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
	bottom: 0;
}


/* ============================================================
   BODY
   ============================================================ */

body {
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-style: normal;
	min-height: 100%;
	min-width: 290px;
	scroll-behavior: smooth;
	text-align: justify;
	white-space: normal;
	text-wrap: wrap;
}


/* ============================================================
   SUCCESS ALERT
   ============================================================ */

.alert-success {
	background: #00FF00;
	color: #000;
}


/* ============================================================
   ERROR ALERT
   ============================================================ */

.alert-fail {
	background: #FF0000;
	color: #fff;
}

.alert-success,
.alert-fail {
    display: block !important;
    width: 100% !important;
    padding: .5rem !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 20px !important;
    flex-shrink: 0 !important;
}
.container > .alert-success,
.container > .alert-fail {
    margin-bottom: 20px !important;
    position: relative !important;
    z-index: 1 !important;
}
/* ============================================================
   FOOTER
   ============================================================ */

footer.footer {
	text-align: center;
	font-size: .8rem;
	background: #000000;
	color: #fff;
	padding: .5rem 0;
}


/* ============================================================
   CONTAINER
   ============================================================ */

.container {
	max-width: 1200px;
	margin: 0 auto;
	background: #fff;
	color: #000;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	margin-bottom: 1rem;
}


/* ============================================================
   HEADER
   ============================================================ */

header {
	background: #fff;
	width: 100%;
	text-align: center;
	margin-bottom: 1rem;
	border-bottom: 1px solid #e5e7eb;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


header h1 {
	font-size: 1rem;
	color: #1a2e47;
	padding: .8rem;
}


/* ============================================================
   FORM
   ============================================================ */

form {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	gap: 1rem;
}


/* ============================================================
   INPUT GROUP
   ============================================================ */

form .input-group {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	width: 100%;
	border: 1px solid #dddddd;
	outline: none;
	background: transparent;
	padding: 1rem 0 !important;
	border-radius: 5px;
}


form .input-group i {
	padding: 0 1rem;
	color: #c2b280;
}


/* ============================================================
   FORM INPUTS
   ============================================================ */

form input[type='text'],
form input[type='email'],
form input[type='password'],
form textarea {
	width: 100%;
	border: none;
	outline: none;
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	-webkit-text-fill-color: inherit !important;
	background-color: transparent !important;
	transition: background-color 5000s ease-in-out 0s;
}


form textarea {
	color: #1a2e47;
	resize: none;
}


form input::placeholder {
	padding: 0 1rem;
	color: #B5B6B7;
}


/* ============================================================
   TEXTAREA
   ============================================================ */

.textarea {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
	border-radius: 5px;
}


.editor-wrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
}


/* ============================================================
   EMAIL CHECK AREA
   ============================================================ */

.mails-check {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;

	width: 100%;

	gap: 20px;
}


/* ============================================================
   CHECK EMAIL BUTTON
   ============================================================ */

.mails-check button {
	background: #c2b280;
	padding: .3rem 0;
	border-radius: 5px;
	outline: none;
	border: none;
	color: #fff;
	font-size: .8rem;
	cursor: pointer;
	min-width: 150px;
	width: auto;
}


.mails-check button:hover,
.mails-check button:focus {
	background: #69727d;
	color: #fff;
}


/* ============================================================
   EMAIL COUNT
   ============================================================ */

/*
 * We are using <br> directly in JavaScript.
 *
 * Therefore we deliberately DO NOT use flexbox here.
 */

#emailCount {
	display: block !important;

	width: auto !important;

	min-width: max-content;

	margin: 0 0 0 auto !important;

	padding: 0 !important;

	font-size: 0.8rem;

	line-height: 1.6;

	color: #c2b280;

	white-space: normal !important;

	text-align: right;
}


/* ============================================================
   EMAIL VALIDATION RESULT
   ============================================================ */

#emailValidationResult {
	width: 100%;
}


/* ============================================================
   TRIX TOOLBAR
   ============================================================ */

trix-toolbar {
	border: 1px solid #dddddd;
	border-bottom: none;
	border-radius: 6px 6px 0 0;
	background: #f9f9f9;
	width: 100%;
}


/* ============================================================
   TRIX EDITOR
   ============================================================ */

trix-editor {
	display: block;
	min-height: 250px !important;
	height: auto;
	overflow-y: auto;
	width: 100%;
	border: 1px solid #dddddd;
	border-radius: 0 0 6px 6px;
	padding: 1rem;
	font-family: Arial, sans-serif;
	font-size: 1rem;
}


/* ============================================================
   SUBMIT BUTTON
   ============================================================ */

form input[type='submit'] {
	background: #c2b280;
	padding: 1rem;
	border-radius: 5px;
	outline: none;
	border: none;
	color: #fff;
	font-size: 1rem;
	width: 100%;
	cursor: pointer;
}


form input[type='submit']:hover,
form input[type='submit']:focus {
	background: #69727d;
	color: #fff;
}


/* ============================================================
   FORM FOCUS
   ============================================================ */

form .input-group:hover,
form .input-group:focus,
form .textarea:hover,
form .textarea:focus {
	outline: 1px solid #dddddd;
}


/* ============================================================
   PASSWORD TOGGLE
   ============================================================ */

form .inputgroup .toggle-password {
	cursor: pointer !important;
	display: block;
}


/* ============================================================
   BATCH LOADER
   ============================================================ */

#batchLoader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255,255,255,.95);
	z-index: 99999;

	display: flex;
	align-items: center;
	justify-content: center;
}


/* ============================================================
   LOADER BOX
   ============================================================ */

.loader-box {
	text-align: center;
	padding: 30px;
}


/* ============================================================
   SPINNER
   ============================================================ */

.spinner {
	width: 60px;
	height: 60px;
	border: 6px solid #ddd;
	border-top: 6px solid #007bff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px;
}


@keyframes spin {

	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}

}


/* ============================================================
   ABORT BUTTON
   ============================================================ */

.abort-btn {
	background: #dc3545;
	color: #fff;
	border: none;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 5px;
	margin-top: 15px;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {


	/* ----------------------------------------------------------
	   ALERTS
	   ---------------------------------------------------------- */

	.alert-success {
		font-size: .8rem;

		display: block !important;

		margin: 0 0 10px 0 !important;
	}


	.alert-fail {
		font-size: .8rem;

		display: block !important;

		margin: 0 0 10px 0 !important;
	}


	/* ----------------------------------------------------------
	   CONTAINER
	   ---------------------------------------------------------- */

	.container {
		padding: 0 1rem;
		max-width: 100%;
	}


	/* ----------------------------------------------------------
	   TRIX
	   ---------------------------------------------------------- */

	trix-editor {
		min-height: 250px;
		height: auto;
		overflow-y: auto;
		font-size: 16px;
	}


	trix-toolbar {
		overflow-x: auto;
		white-space: nowrap;
	}


	/* ----------------------------------------------------------
	   SUBMIT
	   ---------------------------------------------------------- */

	form input[type='submit'] {
		padding: .5rem;
	}


	/* ----------------------------------------------------------
	   EMAIL CHECK
	   ---------------------------------------------------------- */

	.mails-check {
		display: flex;

		flex-direction: row;

		justify-content: space-between;

		align-items: flex-start;

		width: 100%;

		gap: 15px;
	}


	/* ----------------------------------------------------------
	   EMAIL COUNT
	   ---------------------------------------------------------- */

	#emailCount {
		display: block !important;

		width: auto !important;

		min-width: max-content;

		margin: 0 0 0 auto !important;

		padding: 0 !important;

		font-size: 0.75rem;

		line-height: 1.6;

		white-space: normal !important;

		text-align: right;
	}

}


/* ============================================================
   TABLET / LAPTOP
   ============================================================ */

@media (max-width: 1224px) and (min-width: 768px) {


	.container {
		padding: 0 1rem;
		max-width: 100%;
	}


	#emailCount {
		display: block !important;

		width: auto !important;

		min-width: max-content;

		margin: 0 0 0 auto !important;

		padding: 0 !important;

		white-space: normal !important;

		text-align: right;

		line-height: 1.6;
	}

}
