/**
 * Futura Paint Calculator Styles
 */

.fpc-calculator-page {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.fpc-container {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 30px;
}

.fpc-header {
	text-align: left;
	margin-bottom: 40px;
}

.fpc-title {
	color: #0066cc;
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 10px 0;
}

.fpc-subtitle {
	color: #666;
	font-size: 18px;
	margin: 0;
}

.fpc-intro-text {
	color: #333;
	font-size: 16px;
	line-height: 1.6;
	margin: 15px 0 20px 0;
}

.fpc-intro-text p {
	margin: 0 0 15px 0;
}

.fpc-intro-text p:last-child {
	margin-bottom: 0;
}

.fpc-intro-text br {
	display: block;
	content: "";
	margin-top: 10px;
}

.fpc-intro-text * {
	white-space: normal;
}

.fpc-content {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-top: 30px;
}

.fpc-calculator-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-top: 20px;
}

@media (max-width: 1024px) {
	.fpc-calculator-layout {
		grid-template-columns: 1fr;
	}
}

.fpc-left-column {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.fpc-right-column {
	position: sticky;
	top: 20px;
	height: fit-content;
}

.fpc-section {
	margin-bottom: 25px;
}

.fpc-section-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin-bottom: 15px;
}

/* Category Filter */
.fpc-category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 8px;
}

.fpc-category-btn {
	padding: 8px 16px;
	border: 2px solid #e0e0e0;
	background: #fff;
	color: #333;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.fpc-category-btn:hover {
	border-color: #0066cc;
	color: #0066cc;
}

.fpc-category-btn.active {
	background: #0066cc;
	color: #fff;
	border-color: #0066cc;
}

.fpc-reselect-container {
	margin-bottom: 20px;
	text-align: right;
	display: none;
}

.fpc-reselect-btn {
	padding: 10px 20px;
	background: #f0f7ff;
	color: #0066cc;
	border: 2px solid #0066cc;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.fpc-reselect-btn:hover {
	background: #0066cc;
	color: #fff;
}

.fpc-view-all-btn {
	display: block;
	margin: 30px auto;
	padding: 12px 30px;
	background: #0066cc;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

.fpc-view-all-btn:hover {
	background: #0052a3;
}

.fpc-loading-more {
	text-align: center;
	padding: 20px;
	color: #666;
	font-size: 14px;
}

/* Loading Animation */
.fpc-loading-container {
	text-align: center;
	padding: 60px 20px;
}

.fpc-loading-icon {
	display: inline-block;
	margin-bottom: 30px;
	animation: fpc-spin 2s linear infinite;
}

@keyframes fpc-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.fpc-loading-circle {
	animation: fpc-progress 2s ease-in-out infinite;
	transform-origin: center;
	transform: rotate(-90deg);
}

@keyframes fpc-progress {
	0% { stroke-dashoffset: 157; }
	100% { stroke-dashoffset: 0; }
}

.fpc-loading-progress-bar {
	width: 100%;
	max-width: 400px;
	height: 8px;
	background: #e0e0e0;
	border-radius: 4px;
	margin: 0 auto 20px;
	overflow: hidden;
	position: relative;
}

.fpc-loading-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #0066cc 0%, #0088ff 100%);
	border-radius: 4px;
	width: 0%;
	transition: width 0.4s ease;
	position: relative;
	overflow: hidden;
}

.fpc-loading-progress-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.3),
		transparent
	);
	animation: fpc-shimmer 1.5s infinite;
}

@keyframes fpc-shimmer {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

.fpc-loading-message {
	font-size: 16px;
	color: #333;
	font-weight: 500;
	margin: 0;
	transition: opacity 0.3s ease;
}

/* Fade In Up Animation for Header Elements */
.fpc-fade-in-up {
	opacity: 0;
	transform: translateY(30px);
	animation: fpc-fadeInUp 0.8s ease-out forwards;
}

.fpc-title.fpc-fade-in-up {
	animation-delay: 0.1s;
}

.fpc-intro-text.fpc-fade-in-up {
	animation-delay: 0.3s;
}

.fpc-section.fpc-fade-in-up {
	animation-delay: 0.5s;
}

@keyframes fpc-fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Product Selection */
.fpc-products-container {
	padding: 10px 0;
}

.fpc-products-grid-container {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 15px;
}

@media (max-width: 1400px) {
	.fpc-products-grid-container {
		grid-template-columns: repeat(5, 1fr);
	}
}

@media (max-width: 1200px) {
	.fpc-products-grid-container {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 992px) {
	.fpc-products-grid-container {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.fpc-products-grid-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.fpc-products-grid-container {
		grid-template-columns: 1fr;
	}
}

.fpc-product-card {
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 15px;
	cursor: pointer;
	transition: all 0.3s ease;
	background: #fff;
	text-align: center;
	width: 100%;
}

.fpc-product-card:hover {
	border-color: #0066cc;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.fpc-product-card.selected {
	border-color: #0066cc;
	background: #f0f7ff;
}

.fpc-product-card.fpc-focused-card {
	box-shadow: 0 6px 18px rgba(0, 102, 204, 0.25);
	transform: scale(1.02);
}

.fpc-product-card img {
	width: 100%;
	height: 150px;
	object-fit: contain;
	border-radius: 4px;
	margin-bottom: 10px;
}

.fpc-product-card h4 {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.fpc-product-nav {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 15px;
}

.fpc-nav-btn {
	padding: 8px 16px;
	background: #0066cc;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s ease;
}

.fpc-nav-btn:hover {
	background: #0052a3;
}

.fpc-nav-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* Mode Buttons */
.fpc-mode-buttons {
	display: flex;
	gap: 10px;
}

.fpc-mode-btn {
	padding: 12px 30px;
	border: 2px solid #0066cc;
	background: #fff;
	color: #0066cc;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.fpc-mode-btn:hover {
	background: #f0f7ff;
}

.fpc-mode-btn.active {
	background: #0066cc;
	color: #fff;
}

/* Input Fields */
.fpc-label {
	display: block;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
	font-size: 16px;
}

.fpc-input,
.fpc-select {
	width: 100%;
	padding: 12px;
	border: 2px solid #e0e0e0;
	border-radius: 4px;
	font-size: 16px;
	transition: border-color 0.3s ease;
}

.fpc-input:focus,
.fpc-select:focus {
	outline: none;
	border-color: #0066cc;
}

/* Wall Measurements */
.fpc-wall-item {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 15px;
	background: #f9f9f9;
}

.fpc-wall-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0 0 10px 0;
}

.fpc-wall-inputs {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.fpc-wall-inputs .fpc-input {
	flex: 1;
}

.fpc-x {
	font-size: 18px;
	font-weight: 600;
	color: #666;
}

.fpc-add-wall-btn {
	padding: 12px 20px;
	background: #0066cc;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	transition: background 0.3s ease;
}

.fpc-add-wall-btn:hover {
	background: #0052a3;
}

.fpc-wall-area {
	margin-top: 10px;
	font-size: 14px;
	color: #666;
}

.fpc-wall-area-value {
	font-weight: 600;
	color: #0066cc;
}

.fpc-total-walls-area {
	margin-top: 15px;
	padding: 15px;
	background: #f0f7ff;
	border-radius: 4px;
	text-align: center;
	font-size: 18px;
	color: #0066cc;
}

/* Right Panel - Summary */
.fpc-summary {
	background: #f9f9f9;
	border-radius: 8px;
	padding: 25px;
	border: 2px solid #e0e0e0;
	margin-top: 20px;
}

.fpc-summary-title {
	color: #0066cc;
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 20px 0;
}

.fpc-summary-content {
	min-height: 200px;
}

.fpc-summary-empty {
	color: #999;
	text-align: center;
	padding: 40px 20px;
}

.fpc-summary-item {
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e0e0e0;
}

.fpc-summary-item:last-child {
	border-bottom: none;
}

.fpc-summary-item-label {
	font-size: 14px;
	color: #666;
	margin-bottom: 5px;
}

.fpc-summary-item-value {
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.fpc-summary-item-value.highlight {
	color: #0066cc;
	font-size: 24px;
}

.fpc-summary-description {
	margin-top: 20px;
	padding: 15px;
	background: #fff;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
}

.fpc-pdf-btn {
	width: 100%;
	padding: 15px;
	background: #0066cc;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	margin-top: 20px;
	transition: background 0.3s ease;
}

.fpc-pdf-btn:hover {
	background: #0052a3;
}

.fpc-loading {
	text-align: center;
	padding: 40px;
	color: #999;
}

/* Widget Styles */
.fpc-widget {
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 25px;
	margin: 30px 0;
}

.fpc-widget-header {
	margin-bottom: 10px;
	padding: 0;
	background: transparent;
	border: none;
}

.fpc-widget-header-content {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	justify-content: space-between;
	margin-bottom: 10px;
}

.fpc-widget-icon-container {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	order: 2;
}

.fpc-widget-calculator-icon {
	width: 100px;
	height: 100px;
	color: #0066cc;
	flex-shrink: 0;
	transform: rotate(15deg);
	transition: transform 0.3s ease;
}

.fpc-widget-calculator-icon:hover {
	transform: rotate(20deg) scale(1.05);
}

.fpc-widget-header-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.fpc-widget-title {
	color: #0066cc;
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 5px 0;
	text-align: left;
	line-height: 1.2;
}

.fpc-widget-description-intro {
	color: #666;
	font-size: 14px;
	line-height: 1.4;
	margin: 0 0 10px 0;
	text-align: left;
}

.fpc-widget-content {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.fpc-widget-product-info {
	text-align: center;
}

.fpc-widget-image {
	max-width: 150px;
	height: auto;
	border-radius: 4px;
	margin-bottom: 10px;
}

.fpc-widget-product-name {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 10px 0;
}

.fpc-widget-yield {
	font-size: 14px;
	color: #666;
	margin: 5px 0;
}

.fpc-widget-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fpc-widget-fields-row {
	display: flex;
	flex-direction: column;
	gap: 15px;
}


.fpc-widget-field-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fpc-widget-label {
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.fpc-widget-input,
.fpc-widget-select {
	width: 100%;
	padding: 12px;
	border: 2px solid #e0e0e0;
	border-radius: 4px;
	font-size: 16px;
	box-sizing: border-box;
	height: 48px;
	line-height: 24px;
}

.fpc-widget-input:focus,
.fpc-widget-select:focus {
	outline: none;
	border-color: #0066cc;
}

.fpc-widget-result {
	padding: 15px;
	background: #f0f7ff;
	border-radius: 4px;
	margin-top: 10px;
}

.fpc-widget-quantity,
.fpc-widget-liters {
	margin: 10px 0;
	font-size: 16px;
	color: #333;
}

.fpc-widget-quantity-value,
.fpc-widget-liters-value {
	color: #0066cc;
	font-size: 20px;
	font-weight: 700;
}

.fpc-widget-add-cart-btn {
	padding: 15px;
	background: #0066cc;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: background 0.3s ease;
	margin-top: 10px;
}

.fpc-widget-add-cart-btn:hover {
	background: #0052a3;
}

/* Widget Mode Selection */
.fpc-widget-mode-section {
	margin-bottom: 10px;
	margin-top: 0;
}

.fpc-widget-mode-question {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
	line-height: 1.3;
}

.fpc-widget-mode-buttons {
	display: flex;
	gap: 10px;
}

.fpc-widget-mode-btn {
	padding: 10px 30px;
	border: 2px solid #0066cc;
	background: #fff;
	color: #0066cc;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.fpc-widget-mode-btn:hover {
	background: #f0f7ff;
}

.fpc-widget-mode-btn.active {
	background: #0066cc;
	color: #fff;
}

/* Widget Wall Measurements */
.fpc-widget-wall-item {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 15px;
	background: #f9f9f9;
}

.fpc-widget-wall-title {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin: 0 0 10px 0;
}

.fpc-widget-wall-inputs {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.fpc-widget-wall-inputs .fpc-widget-input {
	flex: 1;
}

.fpc-widget-x {
	font-size: 18px;
	font-weight: 600;
	color: #666;
}

.fpc-widget-add-wall-btn {
	padding: 12px 15px;
	background: #0066cc;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	transition: background 0.3s ease;
	min-width: 45px;
}

.fpc-widget-add-wall-btn:hover {
	background: #0052a3;
}

.fpc-widget-remove-wall-btn {
	padding: 12px 15px;
	background: #dc3232;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	transition: background 0.3s ease;
	min-width: 45px;
}

.fpc-widget-remove-wall-btn:hover {
	background: #b32d2e;
}

.fpc-widget-wall-area {
	margin-top: 10px;
	font-size: 14px;
	color: #666;
}

.fpc-widget-wall-area-value {
	font-weight: 600;
	color: #0066cc;
}

.fpc-widget-add-wall-container {
	margin: 15px 0;
	text-align: center;
}

.fpc-widget-add-wall-container .fpc-widget-add-wall-btn {
	padding: 12px 30px;
	background: #0066cc;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: background 0.3s ease;
	width: auto;
	min-width: auto;
}

.fpc-widget-add-wall-container .fpc-widget-add-wall-btn:hover {
	background: #0052a3;
}

.fpc-widget-two-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: start;
}

@media (max-width: 768px) {
	.fpc-widget-two-columns {
		grid-template-columns: 1fr;
		gap: 15px;
	}
}

.fpc-widget-left-column {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fpc-widget-right-column {
	position: sticky;
	top: 20px;
	height: fit-content;
}

.fpc-widget-result {
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
	border: 2px solid #e0e0e0;
	min-height: 150px;
}

.fpc-widget-total-walls-area {
	padding: 15px;
	background: #f0f7ff;
	border-radius: 4px;
	text-align: center;
	font-size: 16px;
	color: #0066cc;
	margin-bottom: 15px;
}

.fpc-widget-total-area-display {
	padding: 15px;
	background: #f0f7ff;
	border-radius: 4px;
	text-align: center;
	font-size: 16px;
	color: #0066cc;
	margin-bottom: 15px;
}

.fpc-widget-quantity,
.fpc-widget-liters {
	margin: 15px 0;
	font-size: 16px;
	color: #333;
	line-height: 1.6;
}

.fpc-widget-quantity strong,
.fpc-widget-liters strong {
	display: block;
	margin-bottom: 5px;
	color: #666;
	font-size: 14px;
}

.fpc-widget-quantity-value,
.fpc-widget-liters-value {
	color: #0066cc;
	font-size: 20px;
	font-weight: 700;
}

.fpc-widget-description {
	margin-top: 20px;
	padding: 20px;
	background: #fff;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
}

.fpc-widget-description p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
}

.fpc-widget-description p strong {
	color: #333;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
	.fpc-right-column {
		position: static;
	}
}

@media (max-width: 768px) {
	.fpc-calculator-page {
		padding: 10px;
	}

	.fpc-container {
		padding: 20px;
	}

	.fpc-title {
		font-size: 24px;
	}

	.fpc-widget-header-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.fpc-widget-icon-container {
		order: 0;
		margin-bottom: 15px;
	}

	.fpc-widget-calculator-icon {
		width: 70px;
		height: 70px;
		transform: rotate(10deg);
	}

	.fpc-widget-header-text {
		align-items: center;
	}

	.fpc-widget-title {
		text-align: center;
		font-size: 20px;
	}

	.fpc-content {
		gap: 20px;
	}

	.fpc-product-card {
		flex: 0 0 150px;
	}

}

