/**
 * Tenbit Addon - Offerte / Contact Form Widget Styles
 * Author: Team Tenbit Solutions
 */

.tenbit-offerte-form-wrap {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

/* Form Container Card */
.tenbit-offerte-card {
	position: relative;
	width: 100%;
	background-color: #FFFFFF;
	border-radius: 14px;
	padding: 36px 32px;
	border: 1px solid #EEF2F6;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.02);
	box-sizing: border-box;
}

/* Form Title */
.tenbit-offerte-title {
	color: #0B2B5C;
	font-family: inherit;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 10px 0;
	padding: 0;
}

.tenbit-offerte-subtitle {
	color: #5A6B82;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.55;
	margin: 0 0 24px 0;
	padding: 0;
}

/* Ajax Form Grid Container */
form.tenbit-offerte-ajax-form {
	display: flex !important;
	flex-flow: row wrap !important;
	align-items: flex-start !important;
	margin-left: -8px !important;
	margin-right: -8px !important;
	width: calc(100% + 16px) !important;
	box-sizing: border-box !important;
}

form.tenbit-offerte-ajax-form input[type="hidden"] {
	display: none !important;
}

/* Form Group */
.tenbit-form-field-group {
	position: relative;
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
	padding-left: 8px !important;
	padding-right: 8px !important;
	margin-bottom: 16px !important;
	box-sizing: border-box !important;
}

/* Field Label */
.tenbit-form-field-label {
	display: block;
	color: #0B2B5C;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 6px;
	letter-spacing: -0.01em;
	box-sizing: border-box;
}

/* Required Asterisk */
.tenbit-form-req-star {
	color: #E53E3E;
	font-weight: 700;
	margin-left: 2px;
}

/* Input Fields & Textareas */
.tenbit-form-control {
	display: block;
	width: 100%;
	background-color: #FFFFFF;
	color: #0B2B5C;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.5;
	border: 1px solid #D8E2EC;
	border-radius: 10px;
	padding: 12px 18px;
	height: 48px;
	min-height: 48px;
	box-shadow: none;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

/* Select Dropdown */
select.tenbit-form-control {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%234A607A%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 16px;
	padding-right: 42px;
	cursor: pointer;
}

/* Textarea */
textarea.tenbit-form-control {
	height: auto;
	min-height: 100px;
	resize: vertical;
	padding: 14px 18px;
}

/* Focus State */
.tenbit-form-control:focus {
	background-color: #FFFFFF;
	border-color: #FF5A00;
	box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.15);
	outline: none;
}

/* Placeholder */
.tenbit-form-control::placeholder {
	color: #9AA8B8;
	opacity: 1;
}

/* Submit Button Group */
.tenbit-form-submit-row {
	margin-top: 6px;
	margin-bottom: 0;
	width: 100%;
}

/* Submit Button */
.tenbit-offerte-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background-color: #FF5A00;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	text-transform: none;
	letter-spacing: 0.2px;
	line-height: 1.2;
	border: none;
	border-radius: 10px;
	padding: 16px 28px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(255, 90, 0, 0.3);
	box-sizing: border-box;
	transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.tenbit-offerte-btn:hover {
	background-color: #E54E00;
	box-shadow: 0 8px 24px rgba(255, 90, 0, 0.42);
	transform: translateY(-1px);
}

.tenbit-offerte-btn:active {
	transform: translateY(0);
}

/* Status Notice */
.tenbit-offerte-notice {
	width: 100%;
	margin-top: 16px;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4;
	box-sizing: border-box;
}

.tenbit-offerte-notice.status-success {
	background-color: #E6F8EE;
	border: 1px solid #C2F0D4;
	color: #0E8044;
}

.tenbit-offerte-notice.status-error {
	background-color: #FDF2F2;
	border: 1px solid #F8D7DA;
	color: #D32F2F;
}

/* Loader */
.tenbit-offerte-loader {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #FFFFFF;
	border-radius: 50%;
	animation: tenbit-spin 0.7s infinite linear;
	margin-left: 10px;
}

@keyframes tenbit-spin {
	to { transform: rotate(360deg); }
}

/* Side-by-Side Map & Form Layout */
.tenbit-map-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 28px;
	row-gap: 28px;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
}

.tenbit-map-col {
	position: relative;
	width: 100%;
	min-height: 480px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #EEF2F6;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

.tenbit-map-col iframe {
	width: 100% !important;
	height: 100% !important;
	min-height: 480px !important;
	border: 0;
	display: block;
}

/* Responsive */
@media (max-width: 1024px) {
	.tenbit-map-form-row {
		grid-template-columns: 1fr;
	}

	.tenbit-map-col {
		min-height: 380px;
	}

	.tenbit-map-col iframe {
		min-height: 380px !important;
	}
}

@media (max-width: 767px) {
	.tenbit-offerte-card {
		padding: 24px 18px;
		border-radius: 12px;
	}

	.tenbit-form-control {
		height: 44px;
		min-height: 44px;
		padding: 10px 14px;
		font-size: 14px;
	}

	.tenbit-offerte-btn {
		padding: 14px 22px;
		font-size: 15px;
	}
}
