@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #3a86ff;
    --primary-dark: #0a58ca;
    --secondary-color: #4361ee;
    --accent-color: #ff006e;
    --success-color: #4cd137;
    --warning-color: #ffbe0b;
    --error-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --result-bg: #2c3e50;
    --result-card: #34495e;
    --result-hover: #3d5a76;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    flex: 1;
}

/* Header improvements */
header {
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 0.5rem;
    width: 100%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-200);
    color: var(--gray-700);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background-color: var(--gray-300);
    color: var(--gray-800);
}

.control-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.3);
}

.currency-selector {
    position: relative;
}

.currency-selector select {
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    background-color: var(--gray-200);
    color: var(--gray-700);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    padding-right: 2rem;
}

.currency-selector::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-600);
}

h1 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    text-align: center;
}

h2 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1rem;
}

.tagline {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

h1 i, h2 i, h3 i, h4 i {
    color: var(--primary-color);
}

/* Progress indicator */
.progress-container {
    margin-bottom: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--box-shadow);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    width: 0%; /* Set dynamically with JS */
    transition: width 0.5s ease;
}

/* Saved Projects Panel */
.saved-projects-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.saved-projects-panel.active {
    transform: translateX(0);
}

.saved-projects-header {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saved-projects-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--gray-800);
}

.saved-projects-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.project-card {
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.project-card:hover {
    background-color: var(--gray-200);
    transform: translateY(-2px);
}

.project-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.project-meta {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.project-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.project-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    background-color: var(--gray-200);
    color: var(--gray-700);
    transition: var(--transition);
}

.project-btn:hover {
    background-color: var(--gray-300);
}

.project-btn.delete {
    background-color: #ffebee;
    color: #e57373;
}

.project-btn.delete:hover {
    background-color: #ffcdd2;
}

.no-projects {
    text-align: center;
    color: var(--gray-600);
    padding: 2rem 0;
}

/* SEO-friendly breadcrumbs */
.breadcrumbs {
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.breadcrumbs a {
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
}

/* SEO-friendly navigation */
.calculator-nav {
    background-color: var(--gray-800);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 0.5rem 0 1.5rem;
}

.calculator-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    flex-wrap: wrap;
}

.calculator-nav li {
    flex: 0 0 auto;
}

.calculator-nav a {
    display: block;
    padding: 0.6rem 0.8rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
    font-size: 0.85rem;
}

.calculator-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.calculator-nav a.active {
    background-color: var(--primary-color);
}

/* Dashboard layout */
.dashboard {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(320px, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.calculator-panel, .results-panel {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    transition: var(--transition);
}

.calculator-panel {
    position: relative;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
    padding: 0.6rem 0.8rem;
    background-color: var(--gray-200);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: 30px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.tab-btn:hover {
    background-color: var(--gray-300);
    color: var(--dark-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.3);
}

.tab-btn i {
    font-size: 0.9rem;
}

/* Mobile Tab Selector */
.mobile-tab-selector {
    display: none;
    margin-bottom: 1rem;
    position: relative;
}

.current-tab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
}

.tab-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
}

.tab-dropdown.active {
    display: block;
}

.tab-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-option:hover {
    background-color: var(--gray-100);
}

.tab-option.active {
    background-color: var(--primary-color);
    color: white;
}

/* Project Visualizer */
.project-visualizer {
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: none;
}

.project-visualizer.active {
    display: block;
}

.visualizer-container {
    width: 100%;
    height: 200px;
    margin-bottom: 0.5rem;
    border: 1px dashed var(--gray-400);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.asphalt-preview {
    width: 100%;
    height: 100%;
    background-color: white;
}

.thickness-display {
    font-size: 0.9rem;
    color: var(--gray-700);
    text-align: center;
}

/* Grid layouts */
.dimensions-grid, .properties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.input-group {
    margin-bottom: 0.75rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
    display: flex;
    align-items: center;
}

.help-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--gray-500);
    cursor: pointer;
    margin-left: 0.3rem;
    transition: var(--transition);
}

.help-btn:hover {
    color: var(--primary-color);
}

.help-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
    z-index: 100;
    font-size: 0.8rem;
    color: var(--gray-700);
    display: none;
}

.help-tooltip.active {
    display: block;
}

.help-tooltip p {
    margin-bottom: 0.5rem;
}

.help-tooltip p:last-child {
    margin-bottom: 0;
}

.help-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.validation-error {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    min-height: 1rem;
}

input, select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: var(--gray-100);
    height: auto;
    min-height: 32px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--gray-300);
    background-color: var(--gray-100);
    position: relative;
    width: 100%;
}

.input-with-unit input {
    flex: 1;
    border: none;
    border-radius: 0;
    background-color: transparent;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    padding: 0.4rem 0.6rem;
}

.input-with-unit select {
    padding: 0.4rem 0.6rem;
    border: none;
    border-left: 1px solid var(--gray-300);
    background-color: var(--gray-200);
    font-size: 0.8rem;
    min-width: 90px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    width: auto;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.unit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.unit-button:hover {
    background-color: var(--primary-dark);
}

.unit-label {
    padding: 0.75rem 1rem;
    background-color: var(--gray-200);
    font-size: 0.9rem;
    font-weight: 500;
}

.result-with-unit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-unit-selector {
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: white;
    cursor: pointer;
    outline: none;
    min-width: auto;
}

.result-unit-selector:hover, .result-unit-selector:focus {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

input:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.2);
}

.input-with-unit:focus-within {
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.2);
    border-color: var(--primary-color);
}

/* Calculation loading spinner */
.calculation-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: var(--border-radius);
    display: none;
}

.calculation-loading.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-300);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#calculate-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin: 1rem 0 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#calculate-btn:hover {
    background-color: var(--primary-dark);
}

#calculate-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.3);
}

.common-inputs {
    background-color: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.common-inputs h3 {
    margin-bottom: 1rem;
    color: var(--gray-700);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Location Section */
.location-section {
    background-color: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.location-section h4 {
    margin-bottom: 1rem;
    color: var(--gray-700);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.region-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Results Panel */
.results-panel {
    background-color: var(--result-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0.8rem;
    color: white;
    width: 100%;
    max-width: 100%;
    min-width: 300px;
}

.results-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.results-tab-btn {
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.results-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.results-tab-btn.active {
    background-color: rgba(255, 255, 255, 0.3);
}

.results-tab-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.results-tab-content {
    display: none;
}

.results-tab-content.active {
    display: block;
}

.results-panel h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.7rem;
    width: 100%;
    text-align: left;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.result-card {
    background-color: var(--result-card);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.result-card:hover {
    background-color: var(--result-hover);
}

.result-icon {
    background-color: rgba(255, 255, 255, 0.15);
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.result-details {
    width: 100%;
}

.result-details h4 {
    color: #ecf0f1;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.result-with-unit span {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

/* Result Actions */
.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.action-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Material Finder Section */
.material-finder {
    background-color: var(--result-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.material-finder h4 {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.supplier-list {
    margin-top: 1rem;
}

.supplier-item {
    background-color: rgba(255, 255, 255, 0.07);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.supplier-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.supplier-item h5 {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.25rem;
}

.supplier-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.supplier-item p:last-child {
    margin-bottom: 0;
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Cost section */
.cost-section {
    background-color: var(--result-card);
    padding: 0.8rem;
    border-radius: var(--border-radius);
    margin-top: 0.6rem;
}

.cost-section h4 {
    color: #ecf0f1;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cost-calculator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.cost-calculator .input-with-unit {
    flex: 1;
    min-width: 180px;
    max-width: 300px;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cost-calculator input {
    background-color: transparent;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
}

.cost-calculator select {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

.total-cost {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ecf0f1;
    flex: 1;
    text-align: right;
}

#result-cost {
    color: var(--success-color);
}

/* Results panel focus states */
.results-panel input:focus, 
.results-panel select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.results-panel .input-with-unit:focus-within {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Calculation Breakdown Styles */
.breakdown-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.breakdown-section {
    position: relative;
    padding: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
}

.breakdown-section h5 {
    position: relative;
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breakdown-section ul {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1;
}

.breakdown-section li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.breakdown-section li::before {
    content: '➤';
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    padding-top: 0.1rem;
    flex-shrink: 0;
}

.breakdown-section li:last-child {
    border-bottom: none;
    font-weight: 500;
}

/* Precision Control */
.precision-control {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.precision-control h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.precision-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.precision-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

.precision-options input[type="radio"] {
    width: auto;
    min-height: auto;
    margin: 0;
}

.rounding-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rounding-options label {
    margin-bottom: 0;
    white-space: nowrap;
}

.rounding-options select {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
}

/* Related Tools Compact */
.related-tools-compact {
    margin-bottom: 1.5rem;
}

.tool-links.compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.compact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.compact-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Template Section */
.template-section {
    margin-top: 1.5rem;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.template-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.template-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.template-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
}

.template-card h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.template-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* How to Calculate Asphalt Section */
.calculation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.step-card h3 {
    font-size: 1.2rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.cta-box {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.cta-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: white;
}

.cta-box p {
    font-size: 1rem;
    margin-bottom: 0;
}

.cta-box a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.cta-box a:hover {
    text-decoration: none;
}

/* Info Section with Asphalt Types */
.info-section {
    margin-top: 3rem;
}

.info-section h2, .info-section h3 {
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.info-header {
    background-color: var(--gray-800);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-header i {
    font-size: 1.2rem;
}

.info-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.info-content {
    padding: 1.25rem;
}

.info-content p {
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-content p strong {
    font-weight: 600;
    color: var(--gray-800);
}

/* Related Tools Section */
.related-tools {
    margin-top: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.related-tools h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-links li a {
    display: block;
    padding: 0.75rem 1rem;
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.tool-links li a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--gray-800);
    margin: 0;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-item.active h3::after {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0.5rem 0 1rem;
    color: var(--gray-700);
}

.faq-item.active .faq-answer {
    display: block;
}

/* Accessibility Controls */
.accessibility-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 50;
}

.accessibility-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--gray-800);
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.accessibility-controls button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Keyboard Shortcuts Modal */
.keyboard-shortcuts-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.keyboard-shortcuts-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--gray-900);
}

.shortcuts-list {
    display: grid;
    gap: 1rem;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
}

.shortcut-keys {
    display: flex;
    gap: 0.3rem;
}

kbd {
    background-color: var(--gray-200);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--gray-700);
    box-shadow: 0 1px 0 var(--gray-400);
}

.shortcut-desc {
    color: var(--gray-700);
    font-size: 0.9rem;
}

/* Feedback Panel */
.feedback-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
}

.feedback-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.feedback-toggle-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.feedback-content {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.75rem;
    display: none;
}

.feedback-content.active {
    display: block;
}

.feedback-content h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.star-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
}

.star-btn:hover, .star-btn.active {
    color: #ffc107;
    transform: scale(1.1);
}

#feedback-text {
    width: 100%;
    height: 80px;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    resize: none;
    margin-bottom: 1rem;
}

.submit-feedback-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.submit-feedback-btn:hover {
    background-color: var(--primary-dark);
}

/* Notification Component */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transform: translateX(calc(100% + 20px));
    transition: transform 0.3s ease;
}

.notification.active {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.2rem;
    color: var(--success-color);
}

.notification-icon.error {
    color: var(--error-color);
}

.notification-message {
    font-size: 0.9rem;
    color: var(--gray-800);
}

.notification-close {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.notification-close:hover {
    color: var(--gray-800);
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-consent.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn.accept {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn.accept:hover {
    background-color: var(--primary-dark);
}

.cookie-btn.customize {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.cookie-btn.customize:hover {
    background-color: var(--gray-300);
}

.cookie-btn.reject {
    background-color: var(--gray-600);
    color: white;
}

.cookie-btn.reject:hover {
    background-color: var(--gray-700);
}

/* Footer */
footer {
    background-color: var(--gray-800);
    color: var(--gray-400);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.accessibility-statement {
    margin-top: 1rem;
}

.accessibility-statement a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.accessibility-statement a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.copyright {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 1.5rem 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* High Contrast Mode */
.high-contrast {
    --primary-color: #0000ff;
    --primary-dark: #0000cc;
    --secondary-color: #0000ff;
    --accent-color: #ff0000;
    --light-color: #ffffff;
    --dark-color: #000000;
    --success-color: #00bb00;
    --warning-color: #ffbb00;
    --error-color: #ff0000;
    --result-bg: #000000;
    --result-card: #222222;
    --result-hover: #333333;
    --gray-100: #f8f8f8;
    --gray-800: #000000;
    
    background-color: #ffffff;
    color: #000000;
}

.high-contrast .calculator-panel,
.high-contrast .info-card,
.high-contrast .faq-section,
.high-contrast .related-tools,
.high-contrast .step-card {
    background-color: #ffffff;
    border: 2px solid #000000;
}

.high-contrast input,
.high-contrast select {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.high-contrast .input-with-unit {
    border: 2px solid #000000;
}

.high-contrast .results-panel {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.high-contrast .result-card {
    background-color: #222222;
    border: 1px solid #ffffff;
}

/* Dark Mode Styles */
.dark-mode {
    --gray-100: #212529;
    --gray-200: #343a40;
    --gray-300: #495057;
    --gray-700: #dee2e6;
    --gray-800: #e9ecef;
    --gray-900: #f8f9fa;
    --light-color: #343a40;
    --dark-color: #f8f9fa;
    --result-bg: #1e3a5f;
    --result-card: #152a45;
    --result-hover: #1f3d5c;
    
    background-color: #121212;
}

.dark-mode .calculator-panel,
.dark-mode .info-card,
.dark-mode .faq-section,
.dark-mode .related-tools,
.dark-mode .step-card,
.dark-mode .progress-container {
    background-color: #1e1e1e;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dark-mode .info-header {
    background-color: var(--primary-color);
}

.dark-mode input,
.dark-mode .input-with-unit,
.dark-mode select {
    background-color: #2d2d2d;
    color: white;
    border-color: #444;
}

.dark-mode .common-inputs,
.dark-mode .location-section {
    background-color: #2d2d2d;
}

.dark-mode ::placeholder {
    color: #888;
}

.dark-mode .tool-links li a {
    background-color: #2d2d2d;
    color: #e9ecef;
}

.dark-mode .faq-item {
    border-bottom-color: #444;
}

.dark-mode .faq-answer {
    color: #e9ecef;
}

.dark-mode .notification,
.dark-mode .modal-content,
.dark-mode .feedback-content,
.dark-mode .cookie-consent {
    background-color: #1e1e1e;
    color: #e9ecef;
}

.dark-mode .notification-message,
.dark-mode .shortcut-item,
.dark-mode .cookie-content p {
    color: #e9ecef;
}

.dark-mode kbd {
    background-color: #343a40;
    border-color: #495057;
    color: #e9ecef;
}

.dark-mode .shortcut-desc {
    color: #e9ecef;
}

.dark-mode #feedback-text {
    background-color: #2d2d2d;
    color: #e9ecef;
    border-color: #444;
}

.dark-mode .accessibility-controls button {
    background-color: #2d2d2d;
    color: #e9ecef;
}

/* Asphalt Type Comparison Page Styles */
.comparison-section {
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.comparison-table thead th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

/* Asphalt Type Comparison Page Styles (continued) */
.comparison-table thead th:first-child {
    width: 20%;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: var(--gray-100);
}

.comparison-table tbody td {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--gray-200);
}

.comparison-table tbody tr:hover {
    background-color: rgba(58, 134, 255, 0.05);
}

.type-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.type-header {
    background-color: var(--gray-800);
    color: white;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.type-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.type-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.type-content {
    padding: 1.5rem;
}

.type-content p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.type-content h4 {
    color: var(--gray-800);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
}

.type-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.type-content li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.type-content li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.type-calculator-link {
    margin-top: 1.5rem;
}

.type-calculator-link .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.type-calculator-link .button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Application Guide */
.application-guide {
    margin-top: 3rem;
}

.application-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.application-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.app-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.application-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.recommended {
    background-color: var(--gray-100);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.rec-label {
    font-weight: 600;
    color: var(--gray-700);
}

.rec-type {
    color: var(--primary-color);
    font-weight: 500;
}

.application-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Cost Comparison Section */
.cost-comparison {
    margin-top: 3rem;
}

.cost-comparison p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.cost-notes {
    background-color: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.cost-notes h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.cost-notes ul {
    padding-left: 1.5rem;
    margin: 0;
    color: var(--gray-700);
}

.cost-notes li {
    margin-bottom: 0.5rem;
}

.cost-notes li:last-child {
    margin-bottom: 0;
}

/* Asphalt Tonnage Conversion Chart Styles */
.unit-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.unit-tab {
    padding: 0.75rem 1.25rem;
    background-color: var(--gray-200);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.unit-tab:hover {
    background-color: var(--gray-300);
}

.unit-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.unit-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.conversion-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.conversion-table thead th {
    background-color: var(--primary-color);
    color: white;
    text-align: left;
    padding: 0.8rem 1rem;
    font-weight: 500;
}

.conversion-table tbody tr:nth-child(even) {
    background-color: var(--gray-100);
}

.conversion-table tbody td {
    padding: 0.7rem 1rem;
    border-top: 1px solid var(--gray-200);
}

.conversion-table tbody tr:hover {
    background-color: rgba(58, 134, 255, 0.05);
}

.notes {
    background-color: var(--gray-100);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.notes p {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.notes p strong {
    color: var(--gray-800);
}

.usage-instructions {
    background-color: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.usage-instructions h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.usage-instructions ol {
    padding-left: 1.25rem;
    margin: 0;
    color: var(--gray-700);
}

.usage-instructions li {
    margin-bottom: 0.75rem;
}

.usage-instructions ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.conversion-factors {
    margin-top: 2rem;
}

.reference-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.reference-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--box-shadow);
}

.reference-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.reference-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.reference-card li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.reference-card li strong {
    color: var(--gray-800);
    font-weight: 600;
}

.formula-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.formula-box {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--box-shadow);
}

.formula-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.formula {
    background-color: var(--gray-100);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.example {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* How to Calculate Asphalt Needed Styles */
.calculation-method {
    margin-top: 2rem;
}

.step-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.formula-box h4 {
    color: var(--gray-800);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tip-box {
    background-color: var(--gray-100);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.tip-box h4 {
    color: var(--gray-800);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tip-box p {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.example-section {
    margin-top: 3rem;
}

.example-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.example-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.example-problem {
    margin-bottom: 1.25rem;
}

.example-problem p {
    color: var(--gray-700);
    margin: 0;
}

.example-problem p strong {
    color: var(--gray-800);
}

.example-solution {
    background-color: var(--gray-100);
    padding: 1.25rem;
    border-radius: var(--border-radius);
}

.example-solution ol {
    padding-left: 1.25rem;
    margin: 0;
    color: var(--gray-700);
}

.example-solution li {
    margin-bottom: 0.5rem;
}

.example-solution li strong {
    color: var(--gray-800);
}

.conversion-tables {
    margin-top: 3rem;
}

.table-container {
    margin-bottom: 2rem;
}

.table-container h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.calculator-section {
    margin-top: 3rem;
}

.calculator-section p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.calculator-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.calculator-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.calc-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.calculator-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.calculator-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.calculator-card .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.calculator-card .button:hover {
    background-color: var(--primary-dark);
}

/* Intro Section for Content Pages */
.intro-section {
    margin-bottom: 2rem;
}

.intro-content {
    margin-bottom: 1.5rem;
}

.intro-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.intro-content p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cta-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-link:hover {
    text-decoration: underline;
}

/* Print styles */
@media print {
    body {
        background-color: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .calculator-nav, 
    .footer, 
    .calculator-panel,
    .material-finder, 
    .calculation-toggle, 
    .tool-links,
    .info-section:not(:first-of-type),
    .faq-section,
    .accessibility-controls,
    .feedback-panel,
    .cookie-consent {
        display: none !important;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .results-panel {
        background-color: white;
        color: black;
        box-shadow: none;
        padding: 0;
    }
    
    .results-panel h3 {
        color: black;
        border-bottom: 1px solid #ccc;
    }
    
    .result-card {
        background-color: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .result-icon {
        background-color: #eee;
        color: #333;
    }
    
    .result-details h4, .result-with-unit span {
        color: #333;
    }
    
    .cost-section {
        background-color: white;
        border: 1px solid #ccc;
    }
    
    .cost-section h4 {
        color: #333;
    }
    
    .breakdown-section {
        background-color: #f5f5f5 !important;
        border: 1px solid #ccc;
    }
    
    .breakdown-section h5 {
        color: #333;
    }
    
    .breakdown-section li {
        color: #333;
        border-bottom-color: #ccc;
    }
    
    .result-actions,
    .results-tabs,
    .precision-control {
        display: none !important;
    }
    
    .results-tab-content {
        display: block !important;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Apply animations */
.dashboard, .step-card, .info-card {
    animation: fadeIn 0.6s ease;
}

.calculator-panel {
    animation: slideDown 0.6s ease;
}

.results-panel {
    animation: slideUp 0.6s ease;
}

.result-card {
    animation: scaleIn 0.5s ease;
}

/* Responsive tables for mobile */
.responsive-table-container {
    overflow-x: auto;
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.responsive-table-container::after {
    content: '← Swipe →';
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .responsive-table-container::after {
        display: block;
    }
}

/* Media Queries */
@media (max-width: 1200px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .dimensions-grid, .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .tabs {
        display: none;
    }
    
    .mobile-tab-selector {
        display: block;
    }
    
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .header-controls {
        position: static;
        transform: none;
        margin-top: 1rem;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 13px;
    }
    
    .container {
        padding: 0.75rem;
    }
    
    .dimensions-grid, .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .calculator-panel, .results-panel {
        padding: 0.75rem;
    }
    
    .results-panel h3 {
        font-size: 1.1rem;
    }
    
    .cost-calculator {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cost-calculator .input-with-unit {
        max-width: 100%;
    }
    
    .total-cost {
        text-align: left;
        margin-top: 0.5rem;
    }
    
    .breakdown-content {
        grid-template-columns: 1fr;
    }
    
    .application-cards, .conversion-cards {
        grid-template-columns: 1fr;
    }
    
    .calculator-nav li {
        flex: 1 0 auto;
        min-width: 150px;
    }
    
    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .results-tabs {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .results-tab-btn {
        white-space: nowrap;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .feedback-content {
        width: 250px;
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .type-card {
        margin-bottom: 1rem;
    }
    
    .application-cards {
        gap: 1rem;
    }
    
    .formula-boxes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    .calculator-panel, .results-panel {
        padding: 0.75rem 0.5rem;
    }
    
    .tool-links {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .notification {
        width: calc(100% - 40px);
        right: 20px;
    }
    
    .reference-cards {
        grid-template-columns: 1fr;
    }
    
    .unit-tabs {
        flex-direction: column;
    }
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-down {
    animation: slideDown 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

.scale-in {
    animation: scaleIn 0.3s ease;
}

/* Accessibility focus styles */
a:focus, button:focus, input:focus, select:focus, textarea:focus, .tab-btn:focus, .results-tab-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.5);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}
/* Add these styles to styles.css */
.supplier-list {
    margin-top: 15px;
}

.supplier-item {
    padding: 12px 0;
}

.supplier-divider {
    margin: 8px 0;
    border-top: 1px solid #eee;
}

.supplier-photo {
    margin: 8px 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.supplier-actions {
    margin-top: 10px;
}

.view-on-map {
    display: inline-block;
    padding: 6px 12px;
    background: #4285F4;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
}

.view-on-map:hover {
    background: #3367D6;
}

.error-message, .no-results {
    padding: 15px;
    background: #f8f8f8;
    border-left: 4px solid #e74c3c;
    margin: 15px 0;
}

.disclaimer {
    font-size: 0.8em;
    color: #666;
    margin-top: 15px;
}
/* Common styles for legal and contact pages */
.content-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Last updated timestamp for legal pages */
.last-updated {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    text-align: right;
    font-style: italic;
}

/* Legal content sections */
.legal-content {
    line-height: 1.6;
    color: var(--gray-700);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.4rem;
    color: var(--gray-800);
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    font-size: 1.2rem;
    color: var(--gray-800);
    margin: 1.5rem 0 1rem;
}

.legal-section p, .legal-section li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.legal-section ul, .legal-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-section strong {
    font-weight: 600;
    color: var(--gray-800);
}

/* Cookie Policy Table Styles */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    font-size: 0.9rem;
}

.cookie-table th {
    background-color: var(--primary-color);
    color: white;
    text-align: left;
    padding: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--primary-dark);
}

.cookie-table td {
    padding: 0.8rem;
    border: 1px solid var(--gray-300);
    vertical-align: top;
}

.cookie-table tr:nth-child(even) {
    background-color: var(--gray-100);
}

.cookie-table tr:hover {
    background-color: rgba(58, 134, 255, 0.05);
}

/* Contact Page Specific Styles */
.contact-intro {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.contact-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-form-section, .contact-info-section {
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.contact-form-section h2, .contact-info-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 0.8rem;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group .required {
    color: var(--error-color);
    margin-left: 0.2rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.consent-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.consent-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.captcha-container {
    margin: 1rem 0;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Contact Information Cards */
.contact-info-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-icon {
    background-color: rgba(58, 134, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-details {
    flex: 1;
}

.info-details h3 {
    font-size: 1.1rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.info-details p {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.info-details p:last-child {
    margin-bottom: 0;
}

.info-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-details a:hover {
    text-decoration: underline;
}

/* Social Media Section */
.social-media-section {
    margin-top: 2rem;
}

.social-media-section h3 {
    font-size: 1.1rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-200);
    color: var(--gray-700);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Map Section */
.map-section {
    margin-bottom: 2rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 450px;
}

/* Notification for form submission */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
}

.notification.success {
    background-color: var(--success-color);
}

.notification.error {
    background-color: var(--error-color);
}

/* Dark Mode Adjustments */
.dark-mode .content-section,
.dark-mode .contact-form-section,
.dark-mode .contact-info-section,
.dark-mode .contact-info-card {
    background-color: var(--light-color);
}

.dark-mode .info-icon {
    background-color: rgba(58, 134, 255, 0.2);
}

.dark-mode .social-icon {
    background-color: #343a40;
    color: #e9ecef;
}

.dark-mode .legal-section h2,
.dark-mode .legal-section h3 {
    color: #e9ecef;
}

.dark-mode .legal-section p,
.dark-mode .legal-section li {
    color: #dee2e6;
}

.dark-mode .cookie-table tr:nth-child(even) {
    background-color: #2d2d2d;
}

.dark-mode .cookie-table td {
    border-color: #495057;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info-section {
        order: -1; /* Display contact info before the form on mobile */
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 1.5rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .map-container {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .content-section {
        padding: 1.25rem;
    }
    
    .contact-form-section, 
    .contact-info-section {
        padding: 1.25rem;
    }
    
    .contact-info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-details {
        width: 100%;
    }
    
    .map-container {
        height: 300px;
    }
}