/* pantr-matador-customisations: Apply Modal widget */

/* =====================================================================
   Site-wide tweaks
   ===================================================================== */

.matador-button,
input[type=submit].matador-button,
input[type=reset].matador-button,
button.matador-button {
	background-color: #EBECD5;
	color: #261719;
	border: 2px solid #261719;
	border-radius: 8px;
	font-size: 14px;
	transition: background-color 0.15s, color 0.15s;
}

.matador-button:hover,
.matador-button:focus,
input[type=submit].matador-button:hover,
input[type=submit].matador-button:focus,
input[type=reset].matador-button:hover,
input[type=reset].matador-button:focus,
button.matador-button:hover,
button.matador-button:focus {
	background-color: #261719;
	color: #EBECD5;
	border: 2px solid #261719;
}

.pantr-calendly-button {
	width: 100%;
	text-align: center;
}

/* Hide related posts on single job pages */
.matador-job-listings-template-default .related-posts {
	display: none;
}

.elementor-widget-matador_job_meta_field .elementor-widget-container {
	display: flex;
	justify-content: space-between;
}

/* =====================================================================
   Inline application form (no-results page)
   ===================================================================== */

.pantr-inline-application {
	border: 2px solid #261719;
	border-radius: 8px;
	padding: 1.25rem;
	margin-top: 1.5rem;
	background-color: #EBECD5;
}

/* =====================================================================
   Application form theming
   Keyed off #matador-application-form (always present on the form element)
   ===================================================================== */

#matador-application-form {
	background-color: #EBECD5;
	color: #261719;
	padding: 0 0.75rem;
	margin: 0;
	border-top: none;
	border-bottom: none;
}

/* Labels, sub-labels, descriptions */
#matador-application-form .matador-field-label,
#matador-application-form .matador-field-sublabel,
#matador-application-form .matador-field-description,
#matador-application-form .required-field-message,
#matador-application-form label,
#matador-application-form p {
	color: #261719;
	font-size: 0.875em;
}

/* Text inputs, textarea, select */
#matador-application-form input[type="text"],
#matador-application-form input[type="email"],
#matador-application-form input[type="password"],
#matador-application-form input[type="tel"],
#matador-application-form input[type="date"],
#matador-application-form textarea,
#matador-application-form select {
	background-color: #f5f4e8;
	color: #261719;
	border: 1px solid rgba(38, 23, 25, 0.4);
	font-size: 1rem;
	height: 2em;
	padding: 0.25rem 0.5rem;
}

#matador-application-form textarea {
	min-height: 80px;
	height: auto;
}

#matador-application-form .matador-field-group {
	padding-top: 0.25rem;
	padding-bottom: 0.5rem;
}

/* Focus / active highlight */
#matador-application-form input[type="text"]:focus,
#matador-application-form input[type="email"]:focus,
#matador-application-form input[type="password"]:focus,
#matador-application-form input[type="tel"]:focus,
#matador-application-form input[type="date"]:focus,
#matador-application-form textarea:focus,
#matador-application-form select:focus {
	outline: 2px solid #FF5E37;
	outline-offset: 1px;
	border-color: #FF5E37;
}

/* Checkbox / radio accent */
#matador-application-form input[type="checkbox"],
#matador-application-form input[type="radio"] {
	accent-color: #FF5E37;
}

#matador-application-form .matador-field-type-checkbox li,
#matador-application-form .matador-field-type-radio li {
	list-style: none;
}

/* File upload label */
#matador-application-form .matador-field-type-file .for-file,
#matador-application-form .matador-field-type-files .for-file {
	background-color: #EBECD5;
	color: #261719;
	border: 1px solid #261719;
	border-radius: 8px;
	transition: background-color 0.15s, color 0.15s;
}

#matador-application-form .matador-field-type-file .for-file:hover,
#matador-application-form .matador-field-type-files .for-file:hover {
	background-color: #261719;
	color: #EBECD5;
}

/* Submit button */
#matador-application-form input[type="submit"].matador-button {
	width: 100%;
}

/* =====================================================================
   Elementor editor: show the modal expanded so the form is visible
   ===================================================================== */

.pantr-apply-modal[data-editor-open] {
	display: block;
	position: static;
	width: 100%;
	max-height: none;
	border: 2px dashed #261719;
	margin-top: 1rem;
}

/* =====================================================================
   Trigger button
   ===================================================================== */

.pantr-apply-modal-trigger {
	display: block;
	width: 100%;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	background-color: #EBECD5;
	color: #261719;
	border: 1px solid #261719;
	padding: 0.6em 1.2em;
	transition: background-color 0.15s, color 0.15s;
}

.pantr-apply-modal-trigger:hover,
.pantr-apply-modal-trigger:focus {
	background-color: #261719;
	color: #EBECD5;
}

/* =====================================================================
   Dialog element
   ===================================================================== */

.pantr-apply-modal {
	position: fixed;
	inset: 0;
	margin: auto;
	width: calc(100% - 2rem);
	max-height: calc(100vh - 4rem);
	overflow-y: auto;
	border: 2px solid #261719;
	border-radius: 8px;
	padding: 0;
	background-color: #EBECD5;
	color: #261719;
}

/* Native backdrop */
.pantr-apply-modal::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

/* Inner container */
.pantr-apply-modal-inner {
	position: relative;
	padding: 1.25rem;
	padding-top: 3rem;
}

/* Close button */
.pantr-apply-modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid #261719;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #261719;
	transition: background-color 0.15s, color 0.15s;
}

.pantr-apply-modal-close:hover,
.pantr-apply-modal-close:focus {
	background-color: #261719;
	color: #EBECD5;
}
