/* =========================================
   Loria Contact Container Widget
   ========================================= */

.loria-contact-wrapper {
	width: 100%;
	box-sizing: border-box;
}

/* ── Section title ───────────────────────────────────────────────────── */

.loria-contact-section-title {
	margin: 0 0 20px;
	padding: 0;
}

/* ── Form area – 4-column grid (field | field | field | submit) ──────── */

.loria-contact-form-area {
	width: 100%;
}

.loria-contact-no-form {
	color: #999;
	font-style: italic;
	margin: 0;
}

.loria-contact-form-area .wpcf7-form {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	align-items: end;
}

/* Strip default CF7 paragraph margins so grid rows sit flush */
.loria-contact-form-area .wpcf7-form > p {
	margin: 0;
}

/* Hide the empty CF7 response line from layout flow */
.loria-contact-form-area .wpcf7-form .wpcf7-response-output {
	grid-column: 1 / -1;
	margin: 8px 0 0;
}

/* ── Field label (above the underline) ──────────────────────────────── */

.loria-contact-wrapper .wpcf7-form label {
	display: block;
	font-weight: 700;
	font-size: 0.9em;
	margin-bottom: 6px;
	line-height: 1.2;
}

.loria-contact-form-area label {
	color: black;
	font-size: 16px !important;
}

/* ── Input / textarea – underline only (Zaban style) ────────────────── */

.loria-contact-wrapper input[type="text"],
.loria-contact-wrapper input[type="email"],
.loria-contact-wrapper input[type="tel"],
.loria-contact-wrapper input[type="number"],
.loria-contact-wrapper input[type="url"],
.loria-contact-wrapper input[type="search"],
.loria-contact-wrapper textarea {
	border-top: none !important;
	border-right: none !important;
	border-left: none !important;
	border-bottom: 1.5px solid var(--loria-text, #4e4d4d) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	font-size: 16px !important;
}

.loria-contact-wrapper input[type="text"]:focus,
.loria-contact-wrapper input[type="email"]:focus,
.loria-contact-wrapper input[type="tel"]:focus,
.loria-contact-wrapper input[type="number"]:focus,
.loria-contact-wrapper input[type="url"]:focus,
.loria-contact-wrapper input[type="search"]:focus,
.loria-contact-wrapper textarea:focus {
	box-shadow: none !important;
	outline: none !important;
	border-bottom-color: var(--loria-text, #4e4d4d) !important;
}

/* ── Placeholder – muted color ─────────────────────────────────────── */

.loria-contact-wrapper ::placeholder {
	color: #777;
	opacity: 1;
	font-family: "Noto Sans Hebrew", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	text-align: start;
}

.loria-contact-wrapper ::-webkit-input-placeholder {
	color: #777;
	opacity: 1;
	font-family: "Noto Sans Hebrew", sans-serif;
	font-size: 16px;
	font-weight: 400;
}

.loria-contact-wrapper ::-moz-placeholder {
	color: #777;
	opacity: 1;
	font-family: "Noto Sans Hebrew", sans-serif;
	font-size: 16px;
	font-weight: 400;
}

.loria-contact-wrapper :-ms-input-placeholder {
	color: #777;
	opacity: 1;
	font-family: "Noto Sans Hebrew", sans-serif;
	font-size: 16px;
	font-weight: 400;
}

/* ── Submit button ──────────────────────────────────────────────────── */

.loria-contact-wrapper input[type="submit"] {
	background-color: var(--loria-text, #4e4d4d) !important;
	background: var(--loria-text, #4e4d4d) !important;
	color: #fff !important;
	border: 1px solid var(--loria-text, #4e4d4d) !important;
	border-radius: 0 !important;
	width: 100% !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	padding: 12px 30px !important;
	cursor: pointer !important;
	transition: background 0.2s, color 0.2s, border-color 0.2s !important;
	box-sizing: border-box !important;
}

.loria-contact-wrapper input[type="submit"]:hover {
	background-color: #ffffff !important;
	background: #ffffff !important;
	color: var(--loria-text, #4e4d4d) !important;
}

/* ── Other contacts section ─────────────────────────────────────────── */

.loria-contact-other-section {
	margin-top: 48px;
}

.loria-contact-other-title {
	margin: 0 0 16px;
	padding: 0;
	font-weight: 700;
}

/* 4-column grid for contact option items */
.loria-contact-other-items {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}

/* Single item */
.loria-contact-other-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.loria-contact-other-item:hover {
	text-decoration: none;
	color: inherit;
}

/* Icon box */
.loria-contact-other-item-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #e8e0d8;
}

.loria-contact-other-item-icon i {
	font-size: 18px;
	color: #222;
	line-height: 1;
}

.loria-contact-other-item-icon svg {
	width: 18px;
	height: 18px;
	fill: #222;
	display: block;
}

/* Text body */
.loria-contact-other-item-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.loria-contact-other-item-title {
	display: block;
	font-weight: 700;
	line-height: 1.2;
}

.loria-contact-other-item-text {
	display: block;
	line-height: 1.2;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media ( max-width: 1024px ) {
	.loria-contact-form-area .wpcf7-form {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Submit takes its own row when form wraps to 2 cols */
	.loria-contact-form-area .wpcf7-form > p:last-of-type {
		grid-column: 1 / -1;
	}

	.loria-contact-other-items {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media ( max-width: 767px ) {
	.loria-contact-form-area .wpcf7-form {
		grid-template-columns: 1fr;
	}

	.loria-contact-form-area .wpcf7-form > p:last-of-type {
		grid-column: 1;
	}

	.loria-contact-other-items {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}
