/**
 * Contact Form 7 — CDB-like outlined fields on Altos cream pages.
 * Use with Template: "CF7 Form Page".
 */

/* ----- Page chrome ----- */
.altos-cf7-page__section {
	min-height: 60vh;
}

.altos-cf7-page__card {
	--altos-cf7-surface: #fef3d4;
	max-width: 44rem;
	padding: 1.75rem 1.35rem 2rem;
	border-radius: 12px;
	background: var(--altos-cf7-surface);
	color: #000;
	box-shadow: 0 8px 28px rgba(0, 92, 109, 0.12);
}

@media (min-width: 768px) {
	.altos-cf7-page__card {
		padding: 2.25rem 2.5rem 2.5rem;
	}
}

.altos-cf7-page__content > *:first-child {
	margin-top: 0;
}

.altos-cf7-page__content h2,
.altos-cf7-page__content h3,
.altos-cf7-page__content .heading-main,
.altos-cf7 .altos-cf7-step h2,
.altos-cf7 .altos-cf7-step h3,
.altos-cf7-page .altos-cf7-step h2,
.altos-cf7-page .altos-cf7-step h3,
.wpcf7 .altos-cf7-step h2,
.wpcf7 .altos-cf7-step h3 {
	color: var(--color-teal-deep, #005C6D);
	font-family: 'TradeGothic-Menu', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 1rem;
}

/* Main competition title */
.altos-cf7-page__content h2,
.altos-cf7 .altos-cf7-step h2,
.altos-cf7-page .altos-cf7-step h2,
.wpcf7 .altos-cf7-step h2 {
	color: #005C6D; /* brand blue */
	font-size: clamp(2rem, 4.2vw, 2.75rem);
	line-height: 1.1;
	margin: 0 0 1.15rem;
}

.altos-cf7-page__content h3,
.altos-cf7 .altos-cf7-step h3,
.altos-cf7-page .altos-cf7-step h3,
.wpcf7 .altos-cf7-step h3 {
	font-size: clamp(1.45rem, 2.8vw, 1.85rem);
	line-height: 1.15;
	margin: 0 0 1.1rem;
}

.altos-cf7-page__content p,
.altos-cf7 .altos-cf7-step > p,
.altos-cf7-page .altos-cf7-step > p {
	font-family: 'TradeGothic-Content', sans-serif;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--color-teal-ink, #072223);
	margin: 0 0 1rem;
}

.altos-cf7 .altos-cf7-step > p:has(.wpcf7-form-control-wrap),
.altos-cf7-page .altos-cf7-step > p:has(.wpcf7-form-control-wrap),
.altos-cf7 .altos-cf7-step > p:has(label),
.altos-cf7-page .altos-cf7-step > p:has(label) {
	padding-top: 0.55rem;
}

.altos-cf7-page__content ul,
.altos-cf7 .wpcf7 ul,
.altos-cf7-page .wpcf7 ul,
.wpcf7 ul {
	margin: 0 0 1.15rem;
	padding: 0 0 0 1.15rem;
	list-style: none;
}

.altos-cf7-page__content ul li,
.altos-cf7 .wpcf7 ul li,
.altos-cf7-page .wpcf7 ul li,
.wpcf7 ul li {
	position: relative;
	margin: 0 0 0.45rem;
	padding-left: 0.35rem;
	font-family: 'TradeGothic-Content', sans-serif;
	font-size: 1.05rem;
	line-height: 1.5;
	color: var(--color-teal-ink, #072223);
}

.altos-cf7-page__content ul li::before,
.altos-cf7 .wpcf7 ul li::before,
.altos-cf7-page .wpcf7 ul li::before,
.wpcf7 ul li::before {
	content: '';
	position: absolute;
	left: -0.85rem;
	top: 0.55em;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: var(--color-teal-deep, #005C6D);
}

/* ----- Form shell ----- */
.altos-cf7 .wpcf7,
.altos-cf7-page .wpcf7,
.wpcf7 {
	font-family: 'TradeGothic-Content', sans-serif;
	color: #000;
	max-width: none;
	margin: 1.25rem 0 0;
}

.altos-cf7 .wpcf7 form,
.altos-cf7-page .wpcf7 form,
.wpcf7 form {
	display: block;
}

.altos-cf7 .wpcf7 form br,
.altos-cf7-page .wpcf7 form br,
.wpcf7 form br {
	display: none;
}

/*
 * Each CF7 field is typically:
 * <p><label>Name * [text*]</label></p>
 * or <p><label>Name *</label><span.wrap><input></span></p>
 * Position label on the outline like CDB floating labels.
 */
.altos-cf7 .wpcf7 form > p,
.altos-cf7-page .wpcf7 form > p,
.wpcf7 form > p,
.altos-cf7 .altos-cf7-step > p,
.altos-cf7-page .altos-cf7-step > p,
.wpcf7 .altos-cf7-step > p {
	position: relative;
	margin: 0 0 1.15rem;
	padding-top: 0.55rem;
}

/*
 * Preferred CF7 markup (label sibling of field):
 * <p><label>Full Name *</label>[text* your-name]</p>
 * Label sits on the outline like CDB.
 */
.altos-cf7 .wpcf7 form > p > label,
.altos-cf7-page .wpcf7 form > p > label,
.wpcf7 form > p > label,
.altos-cf7 .altos-cf7-step > p > label,
.altos-cf7-page .altos-cf7-step > p > label,
.wpcf7 .altos-cf7-step > p > label,
.altos-cf7 .altos-cf7-step > label,
.altos-cf7-page .altos-cf7-step > label,
.wpcf7 .altos-cf7-step > label {
	display: block;
	margin: 0;
	font-family: 'TradeGothic-Content', sans-serif;
	font-size: 0.75rem;
	line-height: 1;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	color: #555;
}

.altos-cf7 .wpcf7 form > p > label:not(:has(.wpcf7-form-control-wrap)),
.altos-cf7-page .wpcf7 form > p > label:not(:has(.wpcf7-form-control-wrap)),
.wpcf7 form > p > label:not(:has(.wpcf7-form-control-wrap)),
.altos-cf7 .altos-cf7-step > p > label:not(:has(.wpcf7-form-control-wrap)),
.altos-cf7-page .altos-cf7-step > p > label:not(:has(.wpcf7-form-control-wrap)),
.wpcf7 .altos-cf7-step > p > label:not(:has(.wpcf7-form-control-wrap)) {
	position: absolute;
	top: 0;
	left: 0.7rem;
	z-index: 2;
	padding: 0 0.3rem;
	background: var(--altos-cf7-surface, #fef3d4);
	max-width: calc(100% - 1.5rem);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

/* Label wraps the control — keep small caption above the field */
.altos-cf7 .wpcf7 form > p > label:has(.wpcf7-form-control-wrap),
.altos-cf7-page .wpcf7 form > p > label:has(.wpcf7-form-control-wrap),
.wpcf7 form > p > label:has(.wpcf7-form-control-wrap),
.altos-cf7 .altos-cf7-step > p > label:has(.wpcf7-form-control-wrap),
.altos-cf7-page .altos-cf7-step > p > label:has(.wpcf7-form-control-wrap),
.wpcf7 .altos-cf7-step > p > label:has(.wpcf7-form-control-wrap),
.altos-cf7 .altos-cf7-step > label:has(.wpcf7-form-control-wrap),
.altos-cf7-page .altos-cf7-step > label:has(.wpcf7-form-control-wrap),
.wpcf7 .altos-cf7-step > label:has(.wpcf7-form-control-wrap) {
	position: relative;
	padding: 0;
	pointer-events: auto;
	margin: 0 0 1.15rem;
}

.altos-cf7 .wpcf7-form-control-wrap,
.altos-cf7-page .wpcf7-form-control-wrap,
.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
	margin: 0.15rem 0 0;
}

.altos-cf7 .wpcf7 form > p > label:has(.wpcf7-form-control-wrap) .wpcf7-form-control-wrap,
.altos-cf7-page .wpcf7 form > p > label:has(.wpcf7-form-control-wrap) .wpcf7-form-control-wrap,
.wpcf7 form > p > label:has(.wpcf7-form-control-wrap) .wpcf7-form-control-wrap {
	margin-top: 0.45rem;
}

/* Controls — outlined, CDB-like */
.altos-cf7 .wpcf7-form-control,
.altos-cf7 input[type="text"],
.altos-cf7 input[type="email"],
.altos-cf7 input[type="tel"],
.altos-cf7 input[type="url"],
.altos-cf7 input[type="number"],
.altos-cf7 input[type="date"],
.altos-cf7 select,
.altos-cf7 textarea,
.altos-cf7 .input,
.altos-cf7-page .wpcf7-form-control,
.altos-cf7-page input[type="text"],
.altos-cf7-page input[type="email"],
.altos-cf7-page input[type="tel"],
.altos-cf7-page input[type="url"],
.altos-cf7-page input[type="number"],
.altos-cf7-page input[type="date"],
.altos-cf7-page select,
.altos-cf7-page textarea,
.altos-cf7-page .input,
.wpcf7 .wpcf7-form-control,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea,
.wpcf7 .input {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 3.1rem !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0.85rem 0.9rem !important;
	border: 1px solid #b0b0b0 !important;
	border-radius: 4px !important;
	background-color: #fff !important;
	color: #222 !important;
	font-family: 'TradeGothic-Content', sans-serif !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	white-space: normal !important;
	box-shadow: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	--size: auto;
	--input-color: #b0b0b0;
}

.altos-cf7 select,
.altos-cf7-page select,
.wpcf7 select {
	background-image: linear-gradient(45deg, transparent 50%, #555 50%),
		linear-gradient(135deg, #555 50%, transparent 50%) !important;
	background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px) !important;
	background-size: 5px 5px, 5px 5px !important;
	background-repeat: no-repeat !important;
	padding-right: 2rem !important;
}

.altos-cf7 textarea,
.altos-cf7-page textarea,
.wpcf7 textarea {
	min-height: 7.5rem !important;
	resize: vertical;
}

.altos-cf7 .wpcf7-form-control:focus,
.altos-cf7-page .wpcf7-form-control:focus,
.wpcf7 .wpcf7-form-control:focus {
	outline: none !important;
	border-color: var(--color-teal-deep, #005C6D) !important;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-teal, #00B1BA) 30%, transparent) !important;
}

.altos-cf7 input[type="number"],
.altos-cf7-page input[type="number"],
.wpcf7 input[type="number"] {
	text-align: left !important;
	border-radius: 4px !important;
}

.altos-cf7 .wpcf7-list-item,
.altos-cf7-page .wpcf7-list-item,
.wpcf7 .wpcf7-list-item {
	display: block;
	margin: 0.4rem 0;
}

.altos-cf7 .wpcf7-list-item label,
.altos-cf7-page .wpcf7-list-item label,
.wpcf7 .wpcf7-list-item label {
	position: static !important;
	display: inline-flex !important;
	align-items: center;
	gap: 0.5rem;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	color: #222 !important;
	background: transparent !important;
	padding: 0 !important;
	pointer-events: auto !important;
	white-space: normal !important;
	max-width: none !important;
	text-transform: none;
}

.altos-cf7 input[type="checkbox"],
.altos-cf7 input[type="radio"],
.altos-cf7-page input[type="checkbox"],
.altos-cf7-page input[type="radio"],
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
	width: 1.1rem !important;
	height: 1.1rem !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	accent-color: var(--color-teal-deep, #005C6D);
}

/* Submit — Altos button */
.altos-cf7 input[type="submit"],
.altos-cf7 .wpcf7-submit,
.altos-cf7-page input[type="submit"],
.altos-cf7-page .wpcf7-submit,
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 200px;
	min-height: 0 !important;
	margin-top: 0.5rem !important;
	padding: 0.95rem 2rem 1.05rem !important;
	border: none !important;
	border-radius: 5px !important;
	background-color: var(--color-teal-deep, #005C6D) !important;
	color: var(--color-cream, #FDE6B1) !important;
	font-family: 'TradeGothic-Menu', sans-serif !important;
	font-size: 1.2rem !important;
	font-weight: 600;
	line-height: 1.15 !important;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
	box-shadow: 0 3px 2px -2px rgba(0, 92, 109, 0.3),
		0 4px 3px -2px rgba(0, 92, 109, 0.2);
	transition: filter 0.2s ease-out;
	background-image: none !important;
}

.altos-cf7 input[type="submit"]:hover,
.altos-cf7-page input[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover {
	filter: brightness(0.92);
}

.altos-cf7 .wpcf7-not-valid-tip,
.altos-cf7-page .wpcf7-not-valid-tip,
.wpcf7 .wpcf7-not-valid-tip,
.altos-cf7 .altos-cf7-step-error,
.altos-cf7-page .altos-cf7-step-error,
.wpcf7 .altos-cf7-step-error {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: var(--color-bold-red, #CC1E26);
}

.altos-cf7 .wpcf7-not-valid,
.altos-cf7-page .wpcf7-not-valid,
.wpcf7 .wpcf7-not-valid {
	border-color: var(--color-bold-red, #CC1E26) !important;
}

.altos-cf7 .wpcf7-response-output,
.altos-cf7-page .wpcf7-response-output,
.wpcf7 .wpcf7-response-output {
	margin: 1.25rem 0 0;
	padding: 0.85rem 1rem;
	border: 1px solid #b0b0b0;
	border-radius: 4px;
	background: #fff;
	color: var(--color-teal-deep, #005C6D);
	font-size: 1rem;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: var(--color-bold-red, #CC1E26);
	color: var(--color-bold-red, #CC1E26);
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--color-teal, #00B1BA);
}

/* ----- Multi-step (theme JS) ----- */
.wpcf7 form.altos-cf7-form--multistep .altos-cf7-progress {
	margin: 0 0 1.35rem;
	font-family: 'TradeGothic-Menu', sans-serif;
	font-size: clamp(1.1rem, 2.2vw, 1.35rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-teal-deep, #005C6D);
}

.wpcf7 form.altos-cf7-form--multistep .altos-cf7-step[hidden] {
	display: none !important;
}

.wpcf7 form.altos-cf7-form--multistep .altos-cf7-steps-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.wpcf7 form.altos-cf7-form--multistep .altos-cf7-step-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	padding: 0.85rem 1.5rem 0.95rem;
	border: 2px solid var(--color-teal-deep, #005C6D);
	border-radius: 5px;
	background: transparent;
	color: var(--color-teal-deep, #005C6D);
	font-family: 'TradeGothic-Menu', sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: filter 0.2s ease-out, background-color 0.2s ease-out, color 0.2s ease-out;
}

.wpcf7 form.altos-cf7-form--multistep .altos-cf7-step-btn--next {
	background: var(--color-teal-deep, #005C6D);
	color: var(--color-cream, #FDE6B1);
	border-color: var(--color-teal-deep, #005C6D);
}

.wpcf7 form.altos-cf7-form--multistep .altos-cf7-step-btn:hover {
	filter: brightness(0.94);
}

.wpcf7 form.altos-cf7-form--multistep .altos-cf7-step-btn[hidden] {
	display: none !important;
}

.wpcf7 form.altos-cf7-form--multistep.altos-cf7-form--submitted .altos-cf7-step,
.wpcf7 form.altos-cf7-form--multistep.altos-cf7-form--submitted .altos-cf7-progress,
.wpcf7 form.altos-cf7-form--multistep.altos-cf7-form--submitted .altos-cf7-steps-nav,
.wpcf7 form.altos-cf7-form--multistep.altos-cf7-form--submitted input[type="submit"],
.wpcf7 form.altos-cf7-form--multistep.altos-cf7-form--submitted .wpcf7-submit,
.wpcf7 form.altos-cf7-form--multistep.altos-cf7-form--submitted .wpcf7-response-output {
	display: none !important;
}

.wpcf7 form.altos-cf7-form--multistep .altos-cf7-success {
	display: none;
	text-align: center;
	padding: 2.5rem 1rem 2.75rem;
}

.wpcf7 form.altos-cf7-form--multistep.altos-cf7-form--submitted .altos-cf7-success {
	display: block;
}

.wpcf7 form.altos-cf7-form--multistep .altos-cf7-success__eyebrow {
	margin: 0 0 0.75rem;
	color: var(--color-teal-deep, #005C6D);
	font-family: 'TradeGothic-Menu', sans-serif;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wpcf7 form.altos-cf7-form--multistep .altos-cf7-success__title {
	margin: 0 0 1rem;
	color: var(--color-teal-deep, #005C6D);
	font-family: 'TradeGothic-Menu', sans-serif;
	font-size: clamp(2.4rem, 5vw, 3.25rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.wpcf7 form.altos-cf7-form--multistep .altos-cf7-success__text {
	margin: 0 auto 0.85rem;
	max-width: 28rem;
	color: var(--color-teal-ink, #072223);
	font-family: 'TradeGothic-Content', sans-serif;
	font-size: 1.2rem;
	line-height: 1.55;
}

.wpcf7 form.altos-cf7-form--multistep .altos-cf7-success__note {
	margin: 0 auto;
	max-width: 26rem;
	color: #555;
	font-family: 'TradeGothic-Content', sans-serif;
	font-size: 1.05rem;
	line-height: 1.5;
}

/* ----- File upload (enabled) ----- */
.altos-cf7 .wpcf7 input[type="file"],
.altos-cf7-page .wpcf7 input[type="file"],
.wpcf7 input[type="file"],
.altos-cf7 .wpcf7 .wpcf7-file,
.altos-cf7-page .wpcf7 .wpcf7-file,
.wpcf7 .wpcf7-file {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	margin: 0.35rem 0 0 !important;
	padding: 0.75rem 0.9rem !important;
	border: 1px dashed #b0b0b0 !important;
	border-radius: 4px !important;
	background: #fff !important;
	color: var(--color-teal-ink, #072223) !important;
	font-family: 'TradeGothic-Content', sans-serif !important;
	font-size: 0.95rem !important;
	line-height: 1.4 !important;
	cursor: pointer;
}

.altos-cf7 .altos-cf7-file-limit,
.altos-cf7-page .altos-cf7-file-limit,
.wpcf7 .altos-cf7-file-limit {
	display: block;
	margin-top: 0.45rem;
	font-family: 'TradeGothic-Content', sans-serif;
	font-size: 0.85rem;
	line-height: 1.4;
	color: #555;
}

/* ----- File upload temporarily disabled ----- */
.altos-cf7-files-disabled .wpcf7 input[type="file"],
.altos-cf7-files-disabled .wpcf7 .wpcf7-file,
.altos-cf7-files-disabled .wpcf7 .wpcf7-form-control-wrap[data-name="margarita-media"],
.altos-cf7-files-disabled .wpcf7 .altos-cf7-file-limit,
body.altos-cf7-files-disabled .wpcf7 input[type="file"],
body.altos-cf7-files-disabled .wpcf7 .wpcf7-file,
body.altos-cf7-files-disabled .wpcf7 .wpcf7-form-control-wrap[data-name="margarita-media"],
body.altos-cf7-files-disabled .wpcf7 .altos-cf7-file-limit {
	display: none !important;
}

.altos-cf7-files-disabled .wpcf7 .altos-cf7-file-field-disabled,
body.altos-cf7-files-disabled .wpcf7 .altos-cf7-file-field-disabled {
	display: none !important;
}
