/* -------------------------------------------------------
   Contact Form 7 — kc-contact-form
   ------------------------------------------------------- */

.kc-contact-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.kc-contact-form p {
	margin: 0 !important;
}

/* Field row */
.kc-contact-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Label */
.kc-contact-form__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--global-palette5, #2b2f3a);
	line-height: 1.4;
}

/* Text / tel inputs */
.kc-contact-form__input {
	width: 100%;
	padding: 14px 18px !important;
	border: 1px solid #e8dccb !important;
	border-radius: 16px !important;
	background: #fff !important;
	font-size: 16px !important;
	color: var(--global-palette5, #2b2f3a) !important;
	line-height: 1.2;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.kc-contact-form__input::placeholder {
	color: #9ca3af;
}

.kc-contact-form__input:focus {
	outline: none;
	border-color: #c89a67;
	box-shadow: none !important;
}

/* Textarea */
.kc-contact-form__textarea {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid #e8dccb;
	border-radius: 16px;
	background: #fff;
	font-size: 15px;
	color: var(--global-palette5, #2b2f3a);
	line-height: 1.5;
	min-height: 140px;
	resize: vertical;
	transition: border-color 0.2s;
	box-sizing: border-box;
	font-family: inherit;
}

.kc-contact-form__textarea::placeholder {
	color: #9ca3af;
}

.kc-contact-form__textarea:focus {
	outline: none;
	border-color: #c89a67;
}

/* Submit button */
.kc-contact-form__submit {
	align-self: flex-start;
	padding: 14px 36px;
	background: var(--global-palette1, #091a3d);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	border: none;
	border-radius: 16px;
	cursor: pointer;
	transition: opacity 0.15s;
	line-height: 1;
}

.kc-contact-form__submit:hover {
	opacity: 0.88;
}

.kc-contact-form__submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* CF7 validation error messages */
.kc-contact-form .wpcf7-not-valid-tip {
	font-size: 12px;
	color: #dc2626;
	margin-top: 4px;
}

.kc-contact-form .wpcf7-not-valid {
	border-color: #fecaca;
}

/* CF7 response output (success / error notice) */
.kc-contact-form .wpcf7-response-output {
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
	margin-top: 4px;
	border: none;
}

.wpcf7-mail-sent-ok .wpcf7-response-output {
	background: #f0fdf4;
	color: #16a34a;
}

.wpcf7-validation-errors .wpcf7-response-output,
.wpcf7-mail-sent-ng .wpcf7-response-output,
.wpcf7-aborted .wpcf7-response-output {
	background: #fef2f2;
	color: #dc2626;
}

/* CF7 spinner */
.kc-contact-form .wpcf7-spinner {
	display: none;
}

/* -------------------------------------------------------
   Custom Grouped Dropdown — kc-cf-dd
   ------------------------------------------------------- */

.kc-cf-dd {
	position: relative;
}

/* Toggle button */
.kc-cf-dd__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 18px;
	border: 1px solid #e8dccb;
	border-radius: 16px;
	background: #fff;
	font-size: 15px;
	color: var(--global-palette5, #2b2f3a);
	cursor: pointer;
	text-align: left;
	transition: border-color 0.2s;
}

.kc-cf-dd.is-open .kc-cf-dd__toggle,
.kc-cf-dd__toggle:focus {
	outline: none;
	border-color: #c89a67;
}

.kc-cf-dd.is-invalid .kc-cf-dd__toggle {
	border-color: #fecaca;
}

.kc-cf-dd__value {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit;
}

/* Placeholder color when nothing selected */
.kc-cf-dd__toggle[aria-expanded="false"] .kc-cf-dd__value--placeholder,
.kc-cf-dd__value--placeholder {
	color: #9ca3af;
}

.kc-cf-dd__chevron {
	flex-shrink: 0;
	color: #6b7280;
	margin-left: 8px;
	transition: transform 0.2s;
}

.kc-cf-dd.is-open .kc-cf-dd__chevron {
	transform: rotate(180deg);
}

/* Dropdown panel */
.kc-cf-dd__panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 30;
	border: 1px solid #e8dccb;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

/* Search + reset header */
.kc-cf-dd__header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-bottom: 1px solid #e8dccb;
}

.kc-cf-dd__search {
	flex: 1;
	padding: 6px 0 !important;
	border: none !important;
	font-size: 15px;
	color: var(--global-palette5, #2b2f3a) !important;
	background: transparent !important;
	outline: none;
	box-shadow: none !important;
	box-sizing: border-box;
}

.kc-cf-dd__search:focus {
	background: transparent !important;
	box-shadow: none !important;
}

.kc-cf-dd__reset {
	flex-shrink: 0;
	padding: 5px 12px;
	border: 1px solid #e8dccb;
	border-radius: 8px;
	background: transparent;
	font-size: 13px;
	color: var(--global-palette5, #2b2f3a);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.kc-cf-dd__reset:hover {
	background: var(--global-palette1, #091a3d);
	color: #fff;
	border-color: transparent;
}

/* Scrollable list */
.kc-cf-dd__list {
	list-style: none;
	margin: 0;
	padding: 4px 0;
	max-height: 240px;
	overflow-y: auto;
}

/* Group header label */
.kc-cf-dd__group-label {
	display: block;
	padding: 10px 16px 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9ca3af;
	cursor: default;
	user-select: none;
}

.kc-cf-dd__group-label.is-hidden {
	display: none;
}

/* Divider between groups */
.kc-cf-dd__divider {
	height: 1px;
	background: #f3efe8;
	margin: 4px 0;
}

.kc-cf-dd__divider.is-hidden {
	display: none;
}

/* Selectable item */
.kc-cf-dd__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 16px;
	font-size: 14px;
	color: var(--global-palette5, #2b2f3a);
	cursor: pointer;
	transition: background 0.12s;
}

.kc-cf-dd__item:hover {
	background: #faf7f2;
}

.kc-cf-dd__item.is-selected {
	font-weight: 600;
}

.kc-cf-dd__item.is-hidden {
	display: none;
}

/* Standalone item separator */
.kc-cf-dd__item--standalone {
	border-top: 1px solid #f3efe8;
	margin-top: 4px;
}

/* Check icon */
.kc-cf-dd__check {
	display: none;
	flex-shrink: 0;
	color: var(--global-palette1, #091a3d);
	margin-left: 8px;
}

.kc-cf-dd__item.is-selected .kc-cf-dd__check {
	display: block;
}

/* Validation error */
.kc-cf-dd-error {
	font-size: 12px;
	color: #dc2626;
	margin-top: 4px;
}

/* Hide CF7's hidden field wrapper (wpcf7-form-control-wrap) */
.kc-contact-form .wpcf7-form-control-wrap[data-name="your-category"] {
	display: none;
}
