/*
 * Forms (P12): contact-box component (links column + form card), CF7 skins and the form fallback.
 * Base chain (A§1.3), loaded on every page: the contact popup (project singles) and the sections
 * contact-block / join-cta use it.
 *
 * Skins
 *   .myco-form--el     Elementor Pro form look of the three Elementor-origin forms (06 §2.2, 04 §3.17):
 *                      .myco-form--contact (İletişim, size sm: inputs 6/25 radius 8, textarea 15px radius 3),
 *                      .myco-form--popup (same fields as contact, translucent card),
 *                      .myco-form--career (Kariyer, size md: labels above with the red required mark,
 *                      inputs 6/16 radius 4, textarea 16px radius 4, row gap 20).
 *   .myco-form--join   CF7 #10038 with the theme input look (06 §2.3; A20: 54 px submit).
 * Values are the live computed (authored) px. CF7 keeps its own stylesheet; selectors here are
 * specific enough to win over it (no !important).
 */

/* ------------------------------------------------------------------ */
/* Contact box component (C13): heading + links column + form card    */
/* ------------------------------------------------------------------ */
.myco-contact-box {
	display: flex;
	flex-direction: column;
	padding: 15px;
}

.myco-contact-box__title {
	max-width: 615px;
	margin: 0;
	color: var(--myco-color-black);
}

.myco-contact-box--career .myco-contact-box__title {
	max-width: none;
}

.myco-contact-box--popup .myco-contact-box__title {
	color: var(--myco-color-white);
}

.myco-contact-box__row {
	display: flex;
	flex-direction: row;
	padding: 70px 15px 0;
}

.myco-contact-box__links {
	display: flex;
	flex: 0 0 26.92%;
	flex-direction: column;
	min-width: 0;
	max-width: 26.92%;
}

.myco-contact-box__form {
	display: flex;
	flex: 0 0 73.08%;
	flex-direction: column;
	min-width: 0;
	max-width: 73.08%;
}

.myco-contact-box__group {
	margin-top: 25px;
}

.myco-contact-box__group + .myco-contact-box__group {
	width: 200px;
	max-width: 200px;
	padding-top: 22px;
	border-top: 1px solid var(--myco-color-line);
}

.myco-contact-box__list {
	max-width: 200px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.myco-contact-box__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.myco-contact-box__item + .myco-contact-box__item {
	margin-top: 5px;
}

.myco-contact-box__link {
	display: inline-flex;
	position: relative;
	color: var(--myco-color-text);
	font-family: var(--myco-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 25.92px;
	letter-spacing: -0.16px;
	transition: all var(--myco-transition);
}

.myco-contact-box__link:hover,
.myco-contact-box__link:focus {
	color: var(--myco-s-link-hover-72);
}

.myco-contact-box__link span {
	display: block;
}

.myco-contact-box--popup .myco-contact-box__link {
	color: var(--myco-color-white);
}

.myco-contact-box--popup .myco-contact-box__link:hover,
.myco-contact-box--popup .myco-contact-box__link:focus {
	color: var(--myco-white-72);
}

@media (max-width: 767px) {
	.myco-contact-box__row {
		flex-wrap: wrap;
		gap: 25px;
		padding: 50px 0 0;
	}

	.myco-contact-box__links,
	.myco-contact-box__form {
		flex-basis: 100%;
		max-width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Form card (the Elementor form widget box)                          */
/* ------------------------------------------------------------------ */
.myco-form-box {
	position: relative;
	max-width: 100%;
}

.myco-form-box--contact {
	padding: 10px;
	background-color: var(--myco-color-white);
}

.myco-form-box--career {
	padding: 40px;
	background-color: var(--myco-color-white);
}

.myco-form-box--popup {
	padding: 40px;
	background-color: var(--myco-white-61);
}

@media (max-width: 767px) {
	.myco-form-box--career {
		padding: 20px;
	}
}

/* ------------------------------------------------------------------ */
/* Elementor form look (.myco-form--el)                               */
/* ------------------------------------------------------------------ */
.wpcf7 form.myco-form--el {
	transition: opacity 0.5s;
}

.wpcf7 form.myco-form--el.submitting {
	opacity: 0.45;
}

.myco-form--el .myco-form__fields {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -5px -10px;
}

.myco-form--el .myco-form__group {
	display: flex;
	position: relative;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	margin-bottom: 10px;
	padding: 0 5px;
}

.myco-form--el .myco-form__group--50 {
	width: 50%;
}

.myco-form--career .myco-form__fields {
	margin-bottom: -20px;
}

.myco-form--career .myco-form__group {
	margin-bottom: 20px;
}

.myco-form--el .myco-form__group--submit {
	align-items: flex-end;
}

.myco-form--el .myco-form__label {
	display: block;
	flex-basis: 100%;
	color: var(--myco-color-ink);
	font-family: var(--myco-font-form);
	font-size: 16px;
	font-weight: 400;
	line-height: 25.92px;
	cursor: pointer;
}

.myco-form--el .myco-form__group--required > .myco-form__label::after {
	content: " *";
	padding-inline-start: 0.2em;
	white-space: pre;
	color: var(--myco-s-form-required);
}

.myco-form--el .myco-form__label.screen-reader-text::after {
	content: none;
}

.myco-form--el .wpcf7-form-control-wrap {
	display: block;
	flex-basis: 100%;
	max-width: 100%;
}

.myco-form--el input[type="text"],
.myco-form--el input[type="email"],
.myco-form--el input[type="tel"],
.myco-form--el textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 50px;
	margin: 0;
	padding: 6px 25px;
	border: 1px solid var(--myco-color-on-dark);
	border-radius: 8px;
	outline: 0;
	background-color: var(--myco-color-field);
	box-shadow: none;
	color: var(--myco-color-accent);
	font-family: var(--myco-font-form);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	transition: all var(--myco-transition);
	appearance: none;
}

.myco-form--el textarea {
	height: 249px;
	padding: 5px 14px;
	border-radius: 3px;
	font-size: 15px;
	line-height: 1.4;
	resize: none;
}

.myco-form--el input::placeholder,
.myco-form--el textarea::placeholder {
	color: inherit;
	opacity: 0.6;
}

.myco-form--el input[type="text"]:focus,
.myco-form--el input[type="email"]:focus,
.myco-form--el input[type="tel"]:focus,
.myco-form--el textarea:focus {
	outline: 0;
	box-shadow: inset 0 0 0 1px var(--myco-black-10);
}

.myco-form--el input:focus::placeholder,
.myco-form--el textarea:focus::placeholder {
	color: var(--myco-color-ink);
}

.myco-form--career input[type="text"],
.myco-form--career input[type="email"],
.myco-form--career input[type="tel"],
.myco-form--career textarea {
	padding: 6px 16px;
	border-radius: 4px;
}

.myco-form--career textarea {
	font-size: 16px;
}

/* File field (V15; live: the native control on the field colour, 13.33 px). */
.myco-form--el input[type="file"] {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background-color: var(--myco-color-field);
	color: var(--myco-color-accent);
	font-family: var(--myco-font-form);
	font-size: 13.3333px;
	line-height: normal;
}

/* Radio group (Cinsiyet, inline) and the acceptance checkbox. */
.myco-form--el .myco-form__options {
	display: flex;
	flex-wrap: wrap;
}

.myco-form--el .wpcf7-list-item {
	display: block;
	margin: 0;
}

.myco-form--el .myco-form__options .wpcf7-list-item {
	padding-inline-end: 10px;
}

.myco-form--el .wpcf7-list-item label {
	color: var(--myco-color-ink);
	font-family: var(--myco-font-form);
	font-size: 16px;
	font-weight: 400;
	line-height: 25.92px;
}

.myco-form--el .wpcf7-list-item-label::after {
	content: none;
}

.myco-form--el .myco-form__terms {
	color: var(--myco-color-wine);
	font-weight: 600;
	text-decoration: underline;
}

.myco-form--el .myco-form__terms:hover,
.myco-form--el .myco-form__terms:focus {
	color: var(--myco-color-wine);
	text-decoration: underline;
}

/* Submit (button "GÖNDER": full width, 47 px, #1A1A1A → #525252). */
.myco-form--el .wpcf7-submit {
	display: block;
	position: relative;
	width: 100%;
	min-height: 47px;
	margin: 0;
	padding: 15px 30px;
	border: 0;
	border-radius: 4px;
	background-color: var(--myco-color-ink);
	box-shadow: none;
	color: var(--myco-color-white);
	font-family: var(--myco-font-form);
	font-size: 16px;
	font-weight: 500;
	line-height: 16px;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s;
	appearance: none;
}

.myco-form--el .wpcf7-submit:hover,
.myco-form--el .wpcf7-submit:focus-visible {
	background-color: var(--myco-color-accent);
	background-position: 100% 50%;
	color: var(--myco-color-white);
}

.myco-form--el .wpcf7-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -60px;
	background-color: var(--myco-s-form-spinner);
	pointer-events: none;
}

.myco-form--el .wpcf7-spinner::before {
	top: 2px;
	left: 2px;
	width: 4px;
	height: 4px;
	background-color: var(--myco-color-ink);
	transform-origin: 6px 6px;
}

/* Messages = Elementor .elementor-message look (06 §2.2). */
.myco-form--el .wpcf7-not-valid-tip {
	margin: 10px 0 0;
	color: var(--myco-color-error);
	font-size: 1em;
	line-height: 1;
}

.myco-form--el input.wpcf7-not-valid,
.myco-form--el textarea.wpcf7-not-valid {
	border-color: var(--myco-color-error);
}

.wpcf7 form.myco-form--el .wpcf7-response-output {
	margin: 10px 0;
	padding: 0;
	border: 0;
	color: var(--myco-color-error);
	font-size: 1em;
	line-height: 1;
}

.wpcf7 form.myco-form--el.sent .wpcf7-response-output {
	color: var(--myco-color-success);
}

@media (max-width: 1024px) {
	.myco-form--contact input[type="text"],
	.myco-form--contact input[type="email"],
	.myco-form--contact input[type="tel"],
	.myco-form--popup input[type="text"],
	.myco-form--popup input[type="email"],
	.myco-form--popup input[type="tel"] {
		padding-right: 15px;
		padding-left: 15px;
	}
}

@media (max-width: 767px) {
	.myco-form--el .myco-form__group--50 {
		width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Join form (CF7 theme look, 06 §2.3; A20)                           */
/* ------------------------------------------------------------------ */
.myco-join-fields p {
	margin: 0 0 14px;
}

.myco-form--join input[type="text"],
.myco-form--join input[type="email"],
.myco-form--join input[type="tel"],
.myco-form--join textarea {
	display: inline-block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 6px 25px;
	border: 0;
	border-radius: 8px;
	outline: 0;
	background-color: var(--myco-color-bg);
	box-shadow: none;
	color: var(--myco-color-black);
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	transition: all var(--myco-transition);
	appearance: none;
}

.myco-form--join textarea {
	height: 249px;
	padding-top: 18px;
	padding-bottom: 18px;
	line-height: 1.8;
	resize: none;
}

.myco-form--join input::placeholder,
.myco-form--join textarea::placeholder {
	color: var(--myco-color-black);
	opacity: 1;
}

.myco-form--join input:focus,
.myco-form--join textarea:focus {
	outline: 0;
	color: var(--myco-color-ink);
}

.myco-form--join input:focus::placeholder,
.myco-form--join textarea:focus::placeholder {
	color: var(--myco-color-ink);
}

.myco-form--join .wpcf7-list-item-label a {
	color: var(--myco-color-wine-dark);
}

.myco-form--join .wpcf7-list-item-label a:hover {
	color: var(--myco-color-ink);
}

.myco-form--join .wpcf7-submit {
	display: inline-flex;
	position: relative;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 14px 40px;
	border: 0;
	border-radius: 4px;
	background-color: var(--myco-color-wine);
	box-shadow: inset 4px 4px 4px 0 var(--myco-color-wine-dark);
	color: var(--myco-color-white);
	font-family: var(--myco-font-ui);
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
	letter-spacing: -0.16px;
	text-align: center;
	text-transform: capitalize;
	white-space: pre;
	cursor: pointer;
	transition: all var(--myco-transition);
	appearance: none;
}

.myco-form--join .wpcf7-submit:hover {
	background-color: var(--myco-color-wine-dark);
	color: var(--myco-color-white);
}

.myco-form--join .wpcf7-submit:disabled {
	cursor: not-allowed;
}

@media (max-width: 1024px) {
	.myco-form--join input[type="text"],
	.myco-form--join input[type="email"],
	.myco-form--join input[type="tel"],
	.myco-form--join textarea {
		padding-right: 15px;
		padding-left: 15px;
	}
}

/* ------------------------------------------------------------------ */
/* Fallback (CF7 inactive or form missing)                            */
/* ------------------------------------------------------------------ */
.myco-form-fallback {
	color: var(--myco-color-accent);
	font-family: var(--myco-font-form);
	font-size: 16px;
	line-height: 25.92px;
}

.myco-form-fallback__text {
	margin: 0 0 15px;
}

.myco-form-fallback__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.myco-form-fallback__item {
	display: flex;
	gap: 10px;
	padding: 12px 0;
	border-top: 1px solid var(--myco-color-on-dark);
	list-style: none;
}

.myco-form-fallback__label {
	min-width: 80px;
	color: var(--myco-color-ink);
	font-weight: 500;
}

.myco-form-fallback__link {
	color: var(--myco-color-wine);
	text-decoration: underline;
}

.myco-form-fallback__link:hover {
	color: var(--myco-color-wine-dark);
}

.myco-form-box--popup .myco-form-fallback,
.myco-form-box--popup .myco-form-fallback__label {
	color: var(--myco-color-ink);
}

/* Native checkbox / radio keep the Chrome UA margins live renders (reset.css zeroes them). */
.wpcf7 input[type="checkbox"] {
	margin: 3px 3px 3px 4px;
}

.wpcf7 input[type="radio"] {
	margin: 3px 3px 0 5px;
}

/* Popup: Elementor's dialog sets line-height 24px on its message box (02 §9.1 probe). */
.myco-contact-box--popup .myco-contact-box__list,
.myco-contact-box--popup .myco-contact-box__link,
.myco-form--popup .wpcf7-list-item label {
	line-height: 24px;
}
