/**
 * AOS Quote Generator Styles
 * Modern CSS3 styling for all quote generators
 * Version: 4.0.0
 */

/* Reset and base styles */
.aos-quote-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1.6;
	color: #333;
}

.aos-quote-container * {
	box-sizing: border-box;
}

/* Header styles */
.aos-header {
	text-align: center;
	margin-bottom: 30px;
}

.aos-header img {
	max-width: 200px;
	height: auto;
	margin-bottom: 15px;
}

.aos-header h1 {
	color: #690007;
	font-size: 2.2em;
	margin: 20px 0;
	font-weight: 600;
}

.aos-header h2 {
	color: #333;
	font-size: 1.5em;
	margin: 15px 0;
	font-weight: 500;
}

.aos-header h3 {
	color: #690007;
	font-size: 1.3em;
	margin: 20px 0 15px 0;
	font-weight: 500;
	text-align: center;
	border-bottom: 2px solid #690007;
	padding-bottom: 10px;
}

/* Form styles */
.aos-form {
	background: #f9f9f9;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	margin-bottom: 30px;
}

.aos-form-section {
	margin-bottom: 25px;
	padding: 20px;
	background: white;
	border-radius: 6px;
	border-left: 4px solid #690007;
}

.aos-form-section .aos-form-section {
	border-left:unset;
	padding:0;
}

.aos-form-section h3 {
	margin-top: 0;
	color: #690007;
	border-bottom: 1px solid #ddd;
	padding-bottom: 10px;
}

/* Form field styles */
.aos-field-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 15px;
	gap: 10px;
}

.aos-field-group label {
	flex: 0 0 40%;
	font-weight: 600;
	color: #333;
	margin-bottom: 5px;
}

.aos-field-group input[type="text"],
.aos-field-group input[type="email"],
.aos-field-group input[type="tel"],
.aos-field-group textarea {
	flex: 1;
	min-width: 200px;
	padding: 10px 12px;
	border: 2px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.aos-field-group input:focus,
.aos-field-group textarea:focus,
.aos-field-group select:focus {
	outline: none;
	border-color: #690007;
	box-shadow: 0 0 0 3px rgba(105, 0, 7, 0.1);
}

/* Select dropdown styles - FIXED for FSM coating type issue */
.aos-field-group select {
	flex: 1;
	min-width: 250px; /* Increased from 200px to accommodate longer options */
	padding: 10px 12px;
	border: 2px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: white;
	cursor: pointer;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	/* Ensure text doesn't get cut off */
	white-space: nowrap;
	overflow: visible;
}

/* Special handling for coating type dropdown */
select[name="coating_type"] {
	min-width: 300px; /* Even wider for coating type specifically */
}

.aos-field-group .aos-unit {
	flex: 0 0 auto;
	font-weight: 600;
	color: #666;
	margin-left: 5px;
}

/* Textarea specific styles */
.aos-field-group textarea {
	min-height: 100px;
	resize: vertical;
	font-family: inherit;
}

/* Customer info section */
.aos-customer-info {
	background: #f0f8ff;
	border-left-color: #4a90e2;
}

.aos-customer-info .aos-field-group label {
	flex: 0 0 30%;
}

.aos-customer-info .aos-field-group input {
	flex: 1;
}

/* Submit button */
.aos-submit-container {
	text-align: center;
	margin-top: 30px;
}

.aos-submit-btn {
	background: linear-gradient(135deg, #690007, #8b0009);
	color: white;
	padding: 15px 40px;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.aos-submit-btn:hover {
	background: linear-gradient(135deg, #8b0009, #690007);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(105, 0, 7, 0.3);
}

.aos-submit-btn:active {
	transform: translateY(0);
}

/* Results page styles */
.aos-results {
	background: white;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.aos-results table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 14px;
}

.aos-results table th,
.aos-results table td {
	padding: 12px;
	text-align: left;
	border: 1px solid #ddd;
}

.aos-results table th {
	background: #f0f0f0;
	font-weight: 600;
	color: #333;
}

.aos-results table tr:nth-child(even) {
	background: #f9f9f9;
}

.aos-results table tr:hover {
	background: #f0f8ff;
}

/* Quote table specific styles */
.aos-quote-table th {
	background: #690007;
	color: white;
	text-align: center;
}

.aos-quote-table td {
	text-align: center;
}

.aos-quote-table .aos-total-row {
	background: #f0f0f0;
	font-weight: 600;
}

/* Company info box */
.aos-company-info {
	display: flex;
	margin: 20px 0;
	gap: 20px;
}

.aos-company-info > div {
	flex: 1;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 6px;
	border: 1px solid #ddd;
}

/* Error messages */
.aos-error {
	background: #fee;
	color: #c33;
	padding: 15px;
	border-radius: 4px;
	border-left: 4px solid #c33;
	margin: 20px 0;
}

/* Success messages */
.aos-success {
	background: #efe;
	color: #363;
	padding: 15px;
	border-radius: 4px;
	border-left: 4px solid #363;
	margin: 20px 0;
}

/* Responsive design */
@media (max-width: 768px) {
	.aos-quote-container {
		padding: 15px;
	}
	
	.aos-field-group {
		flex-direction: column;
		align-items: stretch;
	}
	
	.aos-field-group label {
		flex: none;
		margin-bottom: 5px;
	}
	
	.aos-field-group input,
	.aos-field-group select,
	.aos-field-group textarea {
		flex: none;
		width: 100%;
		min-width: auto;
	}
	
	select[name="coating_type"] {
		min-width: auto;
		width: 100%;
	}
	
	.aos-company-info {
		flex-direction: column;
	}
	
	.aos-results table {
		font-size: 12px;
	}
	
	.aos-results table th,
	.aos-results table td {
		padding: 8px;
	}
}

@media (max-width: 480px) {
	.aos-header h1 {
		font-size: 1.8em;
	}
	
	.aos-header h2 {
		font-size: 1.3em;
	}
	
	.aos-submit-btn {
		padding: 12px 30px;
		font-size: 14px;
	}
}

/* Print styles */
@media print {
	.aos-form {
		display: none;
	}
	
	.aos-submit-container {
		display: none;
	}
	
	.aos-quote-container {
		max-width: none;
		padding: 0;
	}
	
	.aos-results {
		box-shadow: none;
		padding: 0;
	}
}

