/* =====================================================
   OLLITS Professional Popup Form Widget
   ===================================================== */

/* Trigger button */
.ollits-popup-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	border: none;
	cursor: pointer;
	font-weight: 600;
	line-height: 1.4;
	transition: all 0.25s ease;
	text-decoration: none;
}

.ollits-popup-trigger .ollits-btn-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.ollits-popup-trigger .ollits-btn-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Overlay */
.ollits-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ollits-popup-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* Modal */
.ollits-popup-modal {
	position: relative;
	width: 100%;
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transform: translateY(20px) scale(0.97);
	opacity: 0;
	transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ollits-popup-overlay.is-open .ollits-popup-modal {
	transform: translateY(0) scale(1);
	opacity: 1;
}

/* Animation variants */
.ollits-popup-modal.ollits-anim-fade {
	transform: none;
}
.ollits-popup-overlay.is-open .ollits-popup-modal.ollits-anim-fade {
	transform: none;
}

.ollits-popup-modal.ollits-anim-zoom {
	transform: scale(0.9);
}
.ollits-popup-overlay.is-open .ollits-popup-modal.ollits-anim-zoom {
	transform: scale(1);
}

.ollits-popup-modal.ollits-anim-fade-down {
	transform: translateY(-24px);
}
.ollits-popup-overlay.is-open .ollits-popup-modal.ollits-anim-fade-down {
	transform: translateY(0);
}

.ollits-popup-modal.ollits-anim-slide {
	transform: translateY(40px);
}
.ollits-popup-overlay.is-open .ollits-popup-modal.ollits-anim-slide {
	transform: translateY(0);
}

/* Inner layout */
.ollits-popup-inner {
	display: flex;
	width: 100%;
	max-height: 90vh;
	overflow: hidden;
}

/* Layout: Left / Right */
.ollits-popup-layout-left,
.ollits-popup-layout-right {
	flex-direction: row;
}

.ollits-popup-layout-right {
	flex-direction: row-reverse;
}

/* Layout: Top / Bottom */
.ollits-popup-layout-top,
.ollits-popup-layout-bottom {
	flex-direction: column;
}

.ollits-popup-layout-bottom {
	flex-direction: column-reverse;
}

/* Image column */
.ollits-popup-image-col {
	flex-shrink: 0;
	overflow: hidden;
	display: flex;
}

.ollits-popup-image-col img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Content column */
.ollits-popup-content-col {
	flex: 1 1 auto;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Title & subtitle */
.ollits-popup-title {
	margin: 0 0 8px;
	font-weight: 700;
	line-height: 1.3;
	font-size: 1.5rem;
}

.ollits-popup-subtitle {
	margin: 0 0 20px;
	line-height: 1.55;
	font-size: 0.95rem;
}

/* Form wrap */
.ollits-popup-form-wrap {
	flex: 1;
}

/* Close button */
.ollits-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	font-weight: 300;
	transition: all 0.2s ease;
	padding: 0;
}

.ollits-popup-close:hover {
	transform: rotate(90deg);
}

/* Body lock */
body.ollits-popup-open,
html.ollits-popup-open {
	overflow: hidden !important;
}

/* Responsive */
@media (max-width: 767px) {
	.ollits-popup-layout-left,
	.ollits-popup-layout-right {
		flex-direction: column;
	}

	.ollits-popup-image-col {
		flex: 0 0 auto !important;
		max-width: 100% !important;
		width: 100% !important;
		max-height: 200px;
	}

	.ollits-popup-image-col img {
		min-height: 180px !important;
		max-height: 200px;
	}

	.ollits-popup-content-col {
		padding: 24px 20px !important;
	}

	.ollits-popup-title {
		font-size: 1.3rem;
	}

	.ollits-popup-modal {
		max-height: 92vh;
		border-radius: 12px !important;
	}
}

/* CF7 basic polish inside popup */
.ollits-popup-form-wrap .wpcf7-form p {
	margin-bottom: 0px;
}

.ollits-popup-form-wrap .wpcf7-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 500;
	font-size: 0.9rem;
}

.ollits-popup-form-wrap .wpcf7-form input[type="text"],
.ollits-popup-form-wrap .wpcf7-form input[type="email"],
.ollits-popup-form-wrap .wpcf7-form input[type="tel"],
.ollits-popup-form-wrap .wpcf7-form input[type="url"],
.ollits-popup-form-wrap .wpcf7-form input[type="number"],
.ollits-popup-form-wrap .wpcf7-form input[type="date"],
.ollits-popup-form-wrap .wpcf7-form select,
.ollits-popup-form-wrap .wpcf7-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 0.95rem;
	transition: border-color 0.2s;
	background: #fff;
}

.ollits-popup-form-wrap .wpcf7-form input:focus,
.ollits-popup-form-wrap .wpcf7-form select:focus,
.ollits-popup-form-wrap .wpcf7-form textarea:focus {
	outline: none;
	border-color: #205FFF;
	box-shadow: 0 0 0 3px rgba(32, 95, 255, 0.12);
}

.ollits-popup-form-wrap .wpcf7-form input[type="submit"],
.ollits-popup-form-wrap .wpcf7-submit {
	width: 100%;
	padding: 13px 20px;
	background: #205FFF;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s;
}

.ollits-popup-form-wrap .wpcf7-form input[type="submit"]:hover,
.ollits-popup-form-wrap .wpcf7-submit:hover {
	background: #1a4fd6;
}

/* Prevent duplicate CF7 error tips (safety net) */
.ollits-popup-form-wrap .wpcf7-not-valid-tip + .wpcf7-not-valid-tip {
	display: none !important;
}
.ollits-popup-form-wrap .wpcf7-response-output + .wpcf7-response-output {
	display: none !important;
}

/* ===== Image with Overlay Content ===== */
.ollits-popup-image-col.has-overlay {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 320px;
}

.ollits-popup-image-col.has-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.1) 100%);
	z-index: 1;
}

.ollits-popup-overlay-content {
	position: relative;
	z-index: 2;
	padding: 28px 24px;
	color: #ffffff;
	width: 100%;
}

.ollits-popup-logo {
	margin-bottom: 18px;
}

.ollits-popup-logo img {
	max-width: 180px;
	height: auto;
	display: block;
}

.ollits-popup-overlay-title {
	margin: 0 0 10px;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
}

.ollits-popup-overlay-desc {
	font-size: 0.95rem;
	line-height: 1.55;
	opacity: 0.92;
	color: #ffffff;
}

.ollits-popup-overlay-desc p {
	margin: 0;
	color: inherit;
}

/* Mobile adjustments */
@media (max-width: 767px) {
	.ollits-popup-image-col.has-overlay {
		min-height: 220px;
		align-items: center;
	}
	.ollits-popup-overlay-content {
		padding: 20px 18px;
		text-align: center;
	}
	.ollits-popup-logo {
		display: flex;
		justify-content: center;
	}
	.ollits-popup-overlay-title {
		font-size: 1.25rem;
	}
}


/* OLLITS CF7 Form Style */
.ollits-cf7-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.ollits-cf7-form .ollits-field label,
.ollits-cf7-form label {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #9CA3AF !important;
  display: block !important;
  margin-bottom: 5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-family: monospace !important;
}

.ollits-cf7-form textarea {
    max-height:85px;
}
.ollits-cf7-form input[type="text"],
.ollits-cf7-form input[type="email"],
.ollits-cf7-form input[type="tel"],
.ollits-cf7-form textarea,
.ollits-cf7-form select {
  width: 100% !important;
  padding: 10px 13px !important;
  border-radius: 8px !important;
  border: 1.5px solid #BABABA !important;
  background: #FFF !important;
  color: #0D0F1E !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.15s, background 0.15s !important;
  height: auto !important;
}

.ollits-cf7-form input:focus,
.ollits-cf7-form select:focus {
  border-color: #6851F5 !important;
  background: #fff !important;
}

/* Phone field */
.ollits-phone-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ollits-country-code {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 11px;
  border-radius: 8px;
  border: 1.5px solid #E8E8F0;
  background: #FAFAFA;
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
}

.ollits-phone-wrap input {
  flex: 1 !important;
}

/* Submit button */
.ollits-cf7-form input[type="submit"],
.ollits-cf7-form .wpcf7-submit {
  width: 100% !important;
  padding: 12px !important;
  border-radius: 8px !important;
  background: #1777E5 !important;
  color: #fff !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin-top: 2px !important;
  letter-spacing: 0.01em !important;
  transition: background 0.15s !important;
}

.ollits-cf7-form input[type="submit"]:hover,
.ollits-cf7-form .wpcf7-submit:hover {
  background: #5742E0 !important;
}

/* Checkbox - NOT mandatory */
.ollits-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.ollits-checkbox-wrap .wpcf7-list-item {
  margin: 0 !important;
}

.ollits-checkbox-wrap label {
  font-size: 11.5px !important;
  color: #9CA3AF !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  margin: 0 !important;
  cursor: pointer;
}

.ollits-checkbox-wrap input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #6851F5;
  cursor: pointer;
  width: auto !important;
  height: auto !important;
}
