/**
 * Madama Careers — front-end styles.
 *
 * Deliberately inherits the theme's font stack and link colour; only layout,
 * spacing and the card/form chrome are defined here.
 */

.madama-jobs {
	display: grid;
	gap: 20px;
	margin: 28px 0;
}

@media (min-width: 782px) {
	.madama-jobs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.madama-job {
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 10px;
	padding: 22px 24px;
	background: #fff;
	transition: box-shadow .18s ease, transform .18s ease;
}

.madama-job:hover {
	box-shadow: 0 6px 22px rgba(0, 0, 0, .09);
	transform: translateY(-2px);
}

.madama-job--closed {
	opacity: .68;
}

.madama-job__title {
	margin: 0 0 8px;
	font-size: 1.22em;
	line-height: 1.3;
}

.madama-job__title a {
	text-decoration: none;
}

.madama-job__meta {
	margin: 0 0 12px;
	font-size: .88em;
	opacity: .72;
}

.madama-job__summary {
	margin: 0 0 18px;
}

.madama-tag {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: .62em;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	vertical-align: middle;
}

.madama-tag--closed {
	background: #f2dede;
	color: #a12622;
}

.madama-empty {
	padding: 26px;
	border: 1px dashed rgba(0, 0, 0, .18);
	border-radius: 10px;
	text-align: center;
	opacity: .8;
}

/* Single position ------------------------------------------------------- */

.madama-details {
	display: grid;
	gap: 14px 28px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin: 0 0 28px;
	padding: 20px 24px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 10px;
	background: rgba(0, 0, 0, .02);
}

.madama-details__item dt {
	margin: 0 0 3px;
	font-size: .74em;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	opacity: .6;
}

.madama-details__item dd {
	margin: 0;
	font-weight: 500;
}

.madama-block {
	margin: 30px 0;
}

.madama-block h2 {
	margin: 0 0 12px;
	font-size: 1.24em;
}

.madama-list {
	margin: 0;
	padding-left: 20px;
}

.madama-list li {
	margin-bottom: 7px;
}

/* Application form ------------------------------------------------------ */

.madama-apply {
	margin: 40px 0 0;
	padding: 28px 26px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 12px;
	background: rgba(0, 0, 0, .02);
}

.madama-apply__title {
	margin: 0 0 20px;
	font-size: 1.34em;
}

.madama-form__row {
	margin-bottom: 18px;
}

.madama-form__row--split {
	display: grid;
	gap: 18px;
}

@media (min-width: 600px) {
	.madama-form__row--split {
		grid-template-columns: 1fr 1fr;
	}
}

.madama-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: .92em;
}

.madama-form input[type="text"],
.madama-form input[type="email"],
.madama-form input[type="tel"],
.madama-form input[type="date"],
.madama-form input[type="number"],
.madama-form input[type="url"],
.madama-form select,
.madama-form textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid rgba(0, 0, 0, .22);
	border-radius: 7px;
	background: #fff;
	font: inherit;
	font-size: .95em;
	box-sizing: border-box;
}

.madama-form textarea {
	resize: vertical;
}

.madama-form input:focus,
.madama-form textarea:focus {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.madama-req {
	color: #b32d2e;
}

/* File picker — the native control is hidden and driven by the label. */

.madama-file {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.madama-file__input {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.madama-file__button {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 11px 20px;
	border: 1px solid rgba(0, 0, 0, .22);
	border-radius: 7px;
	background: #fff;
	font-weight: 600 !important;
	font-size: .92em;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease, transform .1s ease;
}

.madama-file__button:hover {
	border-color: rgba(0, 0, 0, .5);
	background: rgba(0, 0, 0, .03);
}

.madama-file__button:active {
	transform: translateY(1px);
}

/* Keyboard focus lands on the hidden input, so mirror it onto the label. */
.madama-file__input:focus-visible + .madama-file__button,
.madama-file__input:focus + .madama-file__button {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.madama-file__icon {
	flex: 0 0 auto;
	opacity: .75;
}

.madama-file__name {
	font-size: .9em;
	opacity: .7;
	word-break: break-all;
}

.madama-file.has-file .madama-file__name {
	opacity: 1;
	font-weight: 600;
}

.madama-file.has-file .madama-file__button {
	border-color: currentColor;
}

/* Question types added via the Application Form builder. */

.madama-radios {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	padding-top: 2px;
}

.madama-radio,
.madama-checkbox {
	display: inline-flex !important;
	align-items: center;
	gap: 7px;
	margin: 0 !important;
	font-weight: 400 !important;
	cursor: pointer;
}

.madama-radio input,
.madama-checkbox input {
	width: auto;
	margin: 0;
}

.madama-optional,
.madama-hint {
	font-weight: 400;
	font-size: .84em;
	opacity: .68;
}

.madama-hint {
	margin: 6px 0 0;
}

.madama-btn {
	display: inline-block;
	padding: 12px 26px;
	border: 0;
	border-radius: 7px;
	background: #1a1a1a;
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: .95em;
	text-decoration: none;
	cursor: pointer;
	transition: opacity .16s ease;
}

.madama-btn:hover,
.madama-btn:focus {
	opacity: .85;
	color: #fff;
}

.madama-btn--small {
	padding: 9px 18px;
	font-size: .86em;
}

/* Honeypot — hidden from people, still reachable by bots. */
.madama-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Notices --------------------------------------------------------------- */

.madama-notice {
	margin: 0 0 22px;
	padding: 14px 18px;
	border-radius: 8px;
	border-left: 4px solid;
	font-size: .95em;
}

.madama-notice--success {
	background: #e8f5ec;
	border-color: #136c39;
	color: #0d4526;
}

.madama-notice--error {
	background: #fbeaea;
	border-color: #b32d2e;
	color: #7a1f20;
}
