/**
 * CF7 Proje Brifi — modal form sections & checklists.
 */

.duende-project-modal--brief .duende-project-modal__panel {
	max-width: 52rem;
}

.duende-cf7-brief,
.duende-cf7-brief .duende-cf7-section,
.duende-cf7-brief .duende-cf7-checklist,
.duende-cf7-brief .duende-cf7-checklist .wpcf7-checkbox {
	min-width: 0;
	max-width: 100%;
}

.duende-cf7-brief .duende-cf7-section {
	padding-top: 1.75rem;
	margin-top: 1.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.duende-cf7-brief .duende-cf7-section:first-child {
	padding-top: 0;
	margin-top: 0;
	border-top: 0;
}

.duende-cf7-brief .duende-cf7-section__title {
	margin: 0 0 0.75rem;
	font-family: var(--duende-display, "Syne", system-ui, sans-serif);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
}

.duende-cf7-brief .duende-cf7-section__lead,
.duende-cf7-brief .duende-cf7-field-label {
	margin: 0 0 0.5rem;
	font-size: 0.82rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.58);
}

.duende-cf7-brief .duende-cf7-fields {
	gap: 0.25rem 0 !important;
}

.duende-cf7-brief .duende-cf7-full,
.duende-cf7-brief .duende-cf7-section > .duende-cf7-full {
	margin-bottom: 0.35rem;
}

.duende-cf7-brief .duende-cf7-row {
	align-items: stretch !important;
	gap: 1.25rem 1.5rem !important;
	margin-bottom: 0.75rem !important;
}

.duende-cf7-brief .duende-cf7-col {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.5rem !important;
	min-height: 100%;
}

.duende-cf7-brief .duende-cf7-col .wpcf7-form-control-wrap,
.duende-cf7-brief .duende-cf7-col > .duende-service-select {
	margin-top: auto;
	width: 100%;
}

.duende-cf7-brief .duende-cf7-checklist {
	margin-top: 0.35rem;
	margin-bottom: 0.5rem;
}

.duende-cf7-brief .duende-cf7-checklist .wpcf7-checkbox,
.duende-cf7-brief .duende-cf7-consent .wpcf7-acceptance,
.duende-cf7-brief .wpcf7-form-control-wrap[data-name="services-needed"] .wpcf7-checkbox,
.duende-cf7-brief .wpcf7-form-control-wrap[data-name="contact-pref"] .wpcf7-checkbox,
.duende-cf7-brief .wpcf7-form-control-wrap[data-name="project-goals"] .wpcf7-checkbox {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
}

.duende-cf7-brief .duende-cf7-checklist .wpcf7-list-item,
.duende-cf7-brief .duende-cf7-consent .wpcf7-list-item,
.duende-cf7-brief .wpcf7-form-control-wrap .wpcf7-list-item {
	display: block !important;
	width: 100% !important;
	margin: 0 0 0.65rem 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: both !important;
}

.duende-cf7-brief .duende-cf7-checklist .wpcf7-list-item:last-child,
.duende-cf7-brief .duende-cf7-consent .wpcf7-list-item:last-child,
.duende-cf7-brief .wpcf7-form-control-wrap .wpcf7-list-item:last-child {
	margin-bottom: 0 !important;
}

.duende-cf7-brief .duende-cf7-checklist .wpcf7-list-item label,
.duende-cf7-brief .duende-cf7-consent .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.03);
	font-size: 0.9rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.82);
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.duende-cf7-brief .wpcf7-list-item-label {
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.duende-cf7-brief .duende-cf7-checklist .wpcf7-list-item label:hover,
.duende-cf7-brief .duende-cf7-consent .wpcf7-list-item label:hover {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.05);
}

.duende-cf7-brief .duende-cf7-checklist .wpcf7-list-item input,
.duende-cf7-brief .duende-cf7-consent .wpcf7-list-item input {
	margin: 0;
	flex-shrink: 0;
	accent-color: #fff;
}

.duende-cf7-brief .duende-brief-conditional {
	display: none;
}

.duende-cf7-brief .duende-brief-conditional.is-visible {
	display: block;
}

.duende-cf7-brief .duende-cf7-consent--optional .wpcf7-list-item label {
	opacity: 0.92;
}

.duende-project-modal--brief .duende-project-modal__form {
	padding-bottom: 2rem;
}

.duende-cf7-brief .duende-brief-file-control {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	padding: 1rem 1.1rem;
	border: 1px dashed rgba(255, 255, 255, 0.18);
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.02);
	cursor: pointer;
}

.duende-cf7-brief .duende-brief-file-control:hover,
.duende-cf7-brief .duende-brief-file-control:focus-within {
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.04);
}

.duende-cf7-brief .duende-brief-file-control__action {
	font-size: 0.82rem;
	font-weight: 600;
	color: #fff;
}

.duende-cf7-brief .duende-brief-file-control__name {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.52);
}

.duende-cf7-brief .duende-brief-file-control__native {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.duende-cf7-brief .duende-brief-file-control.has-file {
	border-style: solid;
}

.duende-cf7-brief .duende-cf7-row .duende-cf7-field-label {
	min-height: 2.85rem;
	display: flex;
	align-items: flex-end;
	margin-bottom: 0;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.duende-cf7-brief .wpcf7-form-control-wrap[data-name="services-needed"] .wpcf7-checkbox,
	.duende-cf7-brief .wpcf7-form-control-wrap[data-name="project-goals"] .wpcf7-checkbox {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 1rem !important;
		row-gap: 0.65rem !important;
	}

	.duende-cf7-brief .wpcf7-form-control-wrap[data-name="services-needed"] .wpcf7-list-item,
	.duende-cf7-brief .wpcf7-form-control-wrap[data-name="project-goals"] .wpcf7-list-item {
		margin-bottom: 0 !important;
	}

	.duende-cf7-brief .wpcf7-form-control-wrap[data-name="contact-pref"] .wpcf7-checkbox,
	.duende-cf7-brief .duende-cf7-consent .wpcf7-acceptance {
		display: flex !important;
		flex-direction: column !important;
	}
}

/* Brif modal — input & dropdown aynı çizgi yüksekliği */
.duende-cf7-brief .duende-service-select__trigger,
.duende-cf7-brief input.wpcf7-form-control:not(.wpcf7-hidden):not([type="checkbox"]):not([type="file"]),
.duende-cf7-brief select.wpcf7-form-control {
	min-height: 3rem;
}

.duende-cf7-brief .duende-service-select--modal .duende-service-select__trigger {
	border: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 0 !important;
	padding: 0.9rem 0 !important;
	background: transparent !important;
}

.duende-cf7-brief .duende-service-select--modal.is-open .duende-service-select__trigger,
.duende-cf7-brief .duende-service-select--modal .duende-service-select__trigger:hover {
	border-bottom-color: rgba(255, 255, 255, 0.4) !important;
	background: transparent !important;
}

.duende-cf7-brief .duende-service-select--modal .duende-service-select__list {
	top: calc(100% + 0.65rem);
	margin-top: 0.15rem;
}

/* Modal form — yatay scroll engeli */
.duende-project-modal .duende-native-form.duende-cf7-form,
.duende-project-modal .duende-native-form.duende-cf7-form .wpcf7,
.duende-project-modal .duende-native-form.duende-cf7-form .wpcf7-form,
.duende-project-modal .duende-native-form.duende-cf7-form .duende-cf7-fields {
	max-width: 100%;
	overflow-x: hidden;
}

.duende-project-modal .duende-native-form.duende-cf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-hidden),
.duende-project-modal .duende-native-form.duende-cf7-form select.wpcf7-form-control,
.duende-project-modal .duende-native-form.duende-cf7-form textarea.wpcf7-form-control {
	max-width: 100%;
	box-sizing: border-box;
}
