/**
 * Endor Elements — Quote Form Styles
 *
 * @package Endor_Elements
 */

/* ── "Fiyat Sorunuz" price label ── */
.ee-price-on-request {
	font-size: 13px;
	font-weight: 500;
	color: #8E579F;
	letter-spacing: 0.01em;
}

/* ── Teklif Al button ── */
button.ee-quote-btn,
a.ee-quote-btn {
	background-color: #8E579F !important;
	border-color: #8E579F !important;
	color: #fff !important;
	font-weight: 600;
	font-size: 1rem !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.85em 2em !important;
	transition: background-color 0.2s, border-color 0.2s;
	cursor: pointer;
}

button.ee-quote-btn:hover,
a.ee-quote-btn:hover {
	background-color: #6b3f78 !important;
	border-color: #6b3f78 !important;
	color: #fff !important;
}

/* ── Overlay ── */
.ee-quote-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.ee-quote-overlay.is-open {
	display: flex;
}

/* ── Modal card ── */
.ee-quote-modal {
	display: block !important;
	position: relative;
	background: #fff;
	border-radius: 8px;
	width: 100%;
	max-width: 540px;
	max-height: 92vh;
	overflow-x: hidden;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	animation: ee-modal-in 0.2s ease;
	flex-shrink: 0;
}

@keyframes ee-modal-in {
	from { opacity: 0; transform: translateY(-16px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Close button ── */
.ee-quote-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #aaa;
	cursor: pointer;
	padding: 0 4px;
	transition: color 0.15s;
	z-index: 1;
}

.ee-quote-close:hover {
	color: #333;
}

/* ── Modal header ── */
.ee-quote-modal-header {
	display: block !important;
	padding: 28px 32px 16px;
	border-bottom: 1px solid #f0f0f0;
	width: 100%;
	box-sizing: border-box;
}

.ee-quote-modal-header h2 {
	margin: 0 0 4px;
	font-size: 1.3rem;
	color: #222;
}

.ee-quote-modal-product {
	margin: 0;
	font-size: 0.85rem;
	color: #8E579F;
	font-weight: 600;
}

/* ── Form ── */
#ee-quote-form {
	display: block !important;
	padding: 20px 32px 28px;
	width: 100%;
	box-sizing: border-box;
}

.ee-form-row {
	display: block !important;
	width: 100% !important;
	margin-bottom: 16px;
	float: none !important;
}

.ee-form-row label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #444;
	margin-bottom: 5px;
}

.ee-required {
	color: #c0392b;
	margin-left: 2px;
}

.ee-optional {
	font-weight: 400;
	color: #999;
	font-size: 12px;
	margin-left: 4px;
}

.ee-form-row input[type="text"],
.ee-form-row input[type="tel"],
.ee-form-row input[type="email"],
.ee-form-row textarea {
	display: block;
	width: 100%;
	padding: 9px 12px;
	font-size: 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fafafa;
	color: #333;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
	font-family: inherit;
}

.ee-form-row input:focus,
.ee-form-row textarea:focus {
	outline: none;
	border-color: #8E579F;
	box-shadow: 0 0 0 3px rgba(142, 87, 159, 0.12);
	background: #fff;
}

.ee-form-row input.ee-invalid,
.ee-form-row textarea.ee-invalid {
	border-color: #c0392b;
}

.ee-form-row textarea {
	resize: vertical;
	min-height: 80px;
}

/* ── Footer ── */
.ee-form-footer {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ee-required-note {
	margin: 0;
	font-size: 12px;
	color: #999;
}

.ee-quote-feedback {
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 4px;
	display: none;
}

.ee-quote-feedback.is-success {
	background: #edfaef;
	border-left: 3px solid #46b450;
	color: #1e7e2d;
	display: block;
}

.ee-quote-feedback.is-error {
	background: #fdf0f0;
	border-left: 3px solid #dc3232;
	color: #a00;
	display: block;
}

button.ee-quote-submit {
	width: 100%;
	padding: 12px;
	font-size: 15px;
	font-weight: 700;
	background: #8E579F;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
}

button.ee-quote-submit:hover {
	background: #6b3f78;
}

button.ee-quote-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* ── Responsive ── */
@media ( max-width: 560px ) {
	.ee-quote-modal-header,
	#ee-quote-form {
		padding-left: 20px;
		padding-right: 20px;
	}
}
