@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');

.irefleja-cotizador {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: 'Ubuntu', sans-serif;
}

.irefleja-cotizador-steps {
	position: relative;
}

.irefleja-step {
	display: block;
	margin-bottom: 40px;
	padding-bottom: 40px;
	border-bottom: 2px solid #e0e0e0;
}

.irefleja-step:last-child {
	border-bottom: none;
}

.irefleja-step-header {
	display: flex;
	align-items: center;
	margin-bottom: 30px;
	gap: 15px;
	flex-wrap: nowrap;
}

.irefleja-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #FF6A00;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	flex-shrink: 0;
}

.irefleja-step h2 {
	margin: 0;
	font-size: 24px;
	font-family: 'Ubuntu', sans-serif;
	font-weight: 500;
	margin-right: 10px;
	white-space: nowrap;
}

.irefleja-unit-selector {
	padding: 8px 15px;
	border: 1px solid #0073aa;
	border-radius: 4px;
	font-size: 16px;
	min-width: 100px;
	background: #fff;
	cursor: pointer;
	font-family: 'Ubuntu', sans-serif;
	flex-shrink: 0;
}

/* Models */
.irefleja-models-container {
	margin: 20px 0;
}

.irefleja-models-count {
	margin-bottom: 15px;
	color: #666;
	font-size: 14px;
}

.irefleja-models-scrollable {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	padding: 10px 0;
	scroll-behavior: smooth;
}

.irefleja-models-scrollable::-webkit-scrollbar {
	height: 8px;
}

.irefleja-models-scrollable::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.irefleja-models-scrollable::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.irefleja-model-card {
	position: relative;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 15px;
	cursor: pointer;
	transition: all 0.3s ease;
	background: #fff;
	display: flex;
	align-items: center;
	gap: 15px;
	min-width: 280px;
	flex-shrink: 0;
}

.irefleja-model-card:hover {
	border-color: #0073aa;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.irefleja-model-card.selected {
	border-color: #FF6A00;
	background: #fff5f0;
}

.irefleja-model-checkmark {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #FF6A00;
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: bold;
}

.irefleja-model-card.selected .irefleja-model-checkmark {
	display: flex;
}

.irefleja-model-image-small {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 4px;
}

.irefleja-model-image-small img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.irefleja-no-image {
	width: 80px;
	height: 80px;
	background: #f5f5f5;
	border-radius: 4px;
	color: #999;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	text-align: center;
}

.irefleja-model-info-text {
	flex: 1;
}

.irefleja-model-specs {
	color: #333;
	font-size: 14px;
	line-height: 1.6;
}

/* Units List */
.irefleja-units-list {
	margin: 20px 0;
}

.irefleja-units-list-inner {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
}

.irefleja-unit-card {
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
	background: #fff;
}

.irefleja-unit-card:hover {
	border-color: #0073aa;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.irefleja-unit-card.selected {
	border-color: #0073aa;
	background: #f0f8ff;
}

.irefleja-unit-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e0e0e0;
}

.irefleja-unit-header h3 {
	margin: 0;
	font-size: 18px;
	color: #333;
}

.irefleja-unit-price {
	font-size: 20px;
	font-weight: bold;
	color: #0073aa;
}

.irefleja-uf-price {
	font-size: 14px;
	font-weight: normal;
	color: #666;
	margin-left: 5px;
}

.irefleja-unit-details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.irefleja-unit-detail {
	font-size: 14px;
	color: #666;
}

.irefleja-unit-detail strong {
	color: #333;
}

/* Unit Info */
.irefleja-unit-info {
	margin: 20px 0;
}

.irefleja-unit-info-card {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 30px;
	background: #fff;
}

.irefleja-unit-info-card h3 {
	margin: 0 0 20px 0;
	font-size: 24px;
	color: #333;
	border-bottom: 2px solid #0073aa;
	padding-bottom: 10px;
}

.irefleja-unit-info-details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.irefleja-info-row {
	font-size: 16px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.irefleja-info-row strong {
	color: #333;
	margin-right: 10px;
}

.irefleja-unit-actions {
	margin-top: 20px;
	text-align: right;
	padding-top: 20px;
}

.irefleja-unit-actions .irefleja-btn {
	min-width: 200px;
	padding: 15px 40px;
	font-size: 18px;
	background: #d32f2f;
	border: none;
}

.irefleja-unit-actions .irefleja-btn:hover {
	background: #b71c1c;
}

/* Unit Details Wrapper */
.irefleja-unit-details-wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 20px;
}

.irefleja-unit-content-row {
	display: flex;
	gap: 30px;
}

.irefleja-unit-image-column {
	flex: 1;
	max-width: 500px;
}

.irefleja-unit-image-column img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.irefleja-unit-info-column {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.irefleja-unit-alert-container {
	margin-top: 15px;
}

.irefleja-unit-info-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 16px;
	color: #333;
}

.irefleja-unit-info-item:last-child {
	border-bottom: none;
}

.irefleja-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	color: #666;
}

.irefleja-unit-info-item span {
	flex: 1;
}

.irefleja-unit-alert-container {
	margin-top: 10px;
}

.irefleja-unit-alert-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 20px;
	background: #fff3e0;
	border-left: 4px solid #ff9800;
	border-radius: 4px;
	position: relative;
}

.irefleja-alert-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: #ff9800;
}

.irefleja-alert-text {
	flex: 1;
	font-size: 14px;
	color: #333;
}

.irefleja-alert-close {
	background: none;
	border: none;
	color: #666;
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: color 0.2s;
}

.irefleja-alert-close:hover {
	color: #333;
}

.irefleja-unit-model-description {
	margin-top: 12px;
	padding: 0 2px;
	font-size: 14px;
	line-height: 1.5;
	color: #444;
}

/* Form */
.irefleja-quote-form {
	max-width: 800px;
	margin: 0 auto;
}

.irefleja-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.irefleja-form-group {
	margin-bottom: 20px;
}

.irefleja-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
}

.irefleja-form-group input[type="text"],
.irefleja-form-group input[type="email"],
.irefleja-form-group input[type="tel"],
.irefleja-form-group select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s;
}

.irefleja-form-group input[type="text"]:focus,
.irefleja-form-group input[type="email"]:focus,
.irefleja-form-group input[type="tel"]:focus,
.irefleja-form-group select:focus {
	outline: none;
	border-color: #0073aa;
}

.irefleja-form-group input.irefleja-input-error {
	border-color: #d32f2f;
}

.irefleja-form-group input.irefleja-input-error:focus {
	border-color: #d32f2f;
	box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1);
}

.irefleja-radio-group {
	display: flex;
	gap: 20px;
}

.irefleja-radio-group label {
	display: flex;
	align-items: center;
	font-weight: normal;
	cursor: pointer;
}

.irefleja-radio-group input[type="radio"] {
	margin-right: 5px;
}

.irefleja-optionals-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.irefleja-optionals-checkboxes .irefleja-optional-item {
	display: flex;
	align-items: center;
	font-weight: normal;
	cursor: pointer;
	margin-bottom: 0;
}

.irefleja-optionals-checkboxes .irefleja-optional-item input[type="checkbox"] {
	margin-right: 10px;
}

.irefleja-legal-text {
	font-size: 12px;
	color: #666;
	margin: 20px 0;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 4px;
}

.irefleja-form-actions {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin-top: 30px;
}

.irefleja-btn {
	padding: 12px 30px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.irefleja-btn-primary {
	background: #0073aa;
	color: #fff;
}

.irefleja-btn-primary:hover {
	background: #005a87;
}

.irefleja-btn-secondary {
	background: #f0f0f0;
	color: #333;
}

.irefleja-btn-secondary:hover {
	background: #e0e0e0;
}

.irefleja-form-message {
	margin-top: 20px;
	padding: 15px;
	border-radius: 4px;
}

.irefleja-form-message .irefleja-success {
	color: #155724;
	background: #d4edda;
	border: 1px solid #c3e6cb;
}

.irefleja-form-message .irefleja-error {
	color: #721c24;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
}

.irefleja-form-message .irefleja-loading {
	color: #0c5460;
	background: #d1ecf1;
	border: 1px solid #bee5eb;
}

.irefleja-cotizador-navigation {
	margin-top: 30px;
	display: flex;
	justify-content: space-between;
}

.irefleja-loading {
	text-align: center;
	padding: 40px;
	color: #666;
}

.irefleja-error {
	color: #d32f2f;
	padding: 15px;
	background: #ffebee;
	border-radius: 4px;
}

/* Empty state styles for frontend */
.irefleja-empty-state-frontend {
	background: #f0f8ff;
	border: 2px solid #b3d9ff;
	border-radius: 12px;
	padding: 50px 30px;
	text-align: center;
	margin: 30px 0;
	color: #555;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.irefleja-empty-icon-frontend {
	font-size: 64px;
	margin-bottom: 20px;
	opacity: 0.7;
	line-height: 1;
}

.irefleja-empty-message-frontend {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	margin-bottom: 12px;
	font-family: 'Ubuntu', sans-serif;
}

.irefleja-empty-description-frontend {
	font-size: 15px;
	color: #666;
	line-height: 1.6;
	max-width: 500px;
	margin: 0 auto;
}

/* Project Logo */
.irefleja-project-logo-container {
	text-align: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.irefleja-project-logo {
	max-width: 200px;
	max-height: 100px;
	height: auto;
	width: auto;
	object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
	.irefleja-step-header {
		flex-wrap: wrap;
	}
	
	.irefleja-step-number {
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
	
	.irefleja-step h2 {
		font-size: 20px;
	}
	
	.irefleja-model-card {
		min-width: 240px;
	}
	
	.irefleja-unit-details-wrapper {
		flex-direction: column;
	}
	
	.irefleja-unit-image-column {
		max-width: 100%;
	}
	
	.irefleja-form-row,
	.irefleja-unit-details,
	.irefleja-unit-info-details {
		grid-template-columns: 1fr;
	}
	
	.irefleja-form-actions {
		flex-direction: column;
	}
	
	.irefleja-btn {
		width: 100%;
	}
	
	.irefleja-project-logo {
		max-width: 150px;
		max-height: 80px;
	}
}
