/* ==========================================================================
   PC Quote Request - Styles
   ========================================================================== */

/* Hide the WooCommerce add to cart button on the product page (outside configurator) */
body.is_configurable .product > .summary .single_add_to_cart_button,
body.is_configurable .product > .summary form.cart button[name="add-to-cart"],
body.is_configurable .product .entry-summary .single_add_to_cart_button,
body.is_configurable .product .entry-summary form.cart button[name="add-to-cart"] {
	display: none !important;
}

/* ==========================================================================
   Quote Request Button
   ========================================================================== */

.pcqr-form-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pcqr-request-quote-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 12px 24px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.2s ease;
}

.pcqr-request-quote-btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.pcqr-request-quote-btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.pcqr-modal {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 9999999 !important;
	display: none;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 !important;
}

.pcqr-modal.pcqr-modal-visible {
	display: flex !important;
}

.pcqr-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 1;
}

.pcqr-modal-content {
	position: relative;
	z-index: 2;
	background: #fff;
	border-radius: 16px;
	padding: 36px;
	max-width: 580px;
	width: 92%;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.1);
	animation: pcqr-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pcqr-slide-up {
	from {
		opacity: 0;
		transform: translateY(40px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.pcqr-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #666;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 4px;
	transition: all 0.2s;
}

.pcqr-modal-close:hover {
	color: #333;
	background: #f0f0f0;
}

.pcqr-modal-content h2 {
	margin: 0 0 20px;
	font-size: 22px;
	color: #333;
	padding-right: 30px;
}

/* ==========================================================================
   Configuration Summary
   ========================================================================== */

.pcqr-config-summary {
	margin-bottom: 24px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	background: #fafafa;
}

.pcqr-config-summary h3 {
	margin: 0 0 12px;
	font-size: 16px;
	color: #444;
}

.pcqr-summary-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.pcqr-summary-table thead th {
	text-align: left;
	padding: 8px 10px;
	background: #e9e9e9;
	border: 1px solid #ddd;
	font-weight: 600;
	color: #444;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.pcqr-summary-table tbody td {
	padding: 7px 10px;
	border: 1px solid #eee;
	color: #555;
}

.pcqr-summary-table tbody tr:nth-child(even) {
	background: #f5f5f5;
}

.pcqr-summary-table .pcqr-group-row td {
	background: #e2e2e2;
	color: #333;
	padding: 6px 10px;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */

.pcqr-field {
	margin-bottom: 16px;
}

.pcqr-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: 600;
	color: #444;
}

.pcqr-field .required {
	color: #e74c3c;
}

.pcqr-field input[type="text"],
.pcqr-field input[type="email"],
.pcqr-field input[type="tel"],
.pcqr-field textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	background: #fff;
}

.pcqr-field input[type="text"]:focus,
.pcqr-field input[type="email"]:focus,
.pcqr-field input[type="tel"]:focus,
.pcqr-field textarea:focus {
	border-color: #3a7bd5;
	box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.15);
	outline: none;
}

.pcqr-field textarea {
	resize: vertical;
	min-height: 70px;
}

/* Privacy checkbox */
.pcqr-privacy label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
}

.pcqr-privacy input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
}

.pcqr-privacy a {
	color: #3a7bd5;
	text-decoration: underline;
}

/* ==========================================================================
   Form Actions & Messages
   ========================================================================== */

.pcqr-form-actions {
	margin-top: 20px;
}

.pcqr-submit-btn {
	width: 100%;
	padding: 14px 24px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.2s;
}

.pcqr-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.pcqr-form-message {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
}

.pcqr-form-message.error {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

.pcqr-form-message.success {
	background: #f0fdf4;
	color: #16a34a;
	border: 1px solid #bbf7d0;
}

/* ==========================================================================
   Success State
   ========================================================================== */

#pcqr-success {
	text-align: center;
	padding: 30px 20px;
}

.pcqr-success-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	font-size: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	animation: pcqr-check-bounce 0.4s ease;
}

@keyframes pcqr-check-bounce {
	0% {
		transform: scale(0);
	}
	60% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
	}
}

#pcqr-success h3 {
	font-size: 20px;
	color: #333;
	margin: 0 0 10px;
}

#pcqr-success p {
	color: #666;
	font-size: 15px;
	margin: 0 0 24px;
	line-height: 1.5;
}

#pcqr-success .pcqr-modal-close-btn {
	padding: 12px 32px !important;
	font-size: 15px !important;
	cursor: pointer;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
	.pcqr-modal-content {
		padding: 20px;
		width: 95%;
		max-height: 90vh;
		border-radius: 10px;
	}

	.pcqr-modal-content h2 {
		font-size: 18px;
	}

	.pcqr-summary-table {
		font-size: 13px;
	}

	.pcqr-field input[type="text"],
	.pcqr-field input[type="email"],
	.pcqr-field input[type="tel"],
	.pcqr-field textarea {
		font-size: 16px; /* prevent iOS zoom */
	}
}
