* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f59e0b;
    --primary-dark: #d97706;
    --secondary-color: #3b82f6;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', 'Noto Sans Khmer', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Better Khmer text rendering */
html[lang="km"],
html[lang="km"] body,
html[lang="km"] input,
html[lang="km"] button,
html[lang="km"] select,
html[lang="km"] textarea {
    font-family: 'Noto Sans Khmer', 'Inter', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    border: 3px solid #fef3c7;
}

.header-text {
    text-align: left;
}

/* Header Toggles Wrapper */
.header-toggles {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Language Toggle */
.language-toggle,
.currency-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.lang-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: white;
    color: var(--primary-dark);
    border-color: white;
    box-shadow: var(--shadow-md);
}

.flag-icon {
    font-size: 1.2rem;
}

/* Currency Toggle */
.currency-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.currency-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.currency-btn.active {
    background: white;
    color: var(--primary-dark);
    border-color: white;
    box-shadow: var(--shadow-md);
}

.currency-btn i {
    font-size: 1rem;
}

.header-content h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content h1 i {
    margin-right: 15px;
    color: #fef3c7;
    font-size: 2rem;
}

.header-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15);
}

.card h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.card h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    margin-right: 12px;
    border-radius: 2px;
}

.card h2 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.card h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Section Header with Toggle */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    margin-bottom: 0;
}

/* Preset Card */
.preset-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid var(--primary-color);
}

/* System Preset Buttons */
.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.btn-preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 20px;
    background: white;
    border: 3px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-preset:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(to bottom, white, #fffbeb);
}

.btn-preset i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.btn-preset span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-preset small {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Appliance Presets */
.appliance-presets {
    margin-bottom: 30px;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.appliance-preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: linear-gradient(to bottom, white, #f8fafc);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.appliance-preset-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(to bottom, #fffbeb, #fef3c7);
}

.appliance-preset-btn i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.appliance-preset-btn span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.appliance-preset-btn small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: var(--text-secondary);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid var(--border-color);
}

.divider span {
    padding: 0 15px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch-label {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.switch-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 28px;
}

.switch-slider:before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: var(--primary-color);
}

input:checked + .switch-slider:before {
    transform: translateX(28px);
}

.switch-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.switch-text i {
    color: var(--primary-color);
}

/* Form Elements */
.appliance-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-group label i {
    color: var(--primary-color);
}

.input-group input,
.input-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.input-group input:hover,
.input-group select:hover {
    border-color: var(--primary-dark);
}

.input-group input:disabled,
.input-group select:disabled {
    background-color: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-calculate {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 48px;
    font-size: 1.1rem;
}

.btn-calculate:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-remove {
    padding: 6px 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* Pricing Input Card */
.pricing-input-card {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 2px solid #0ea5e9;
}

/* Customer Info Card */
.customer-info-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.customer-info-card h2 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
}

.customer-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pricing-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Parameters Grid */
.parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Calculate Section */
.calculate-section {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* Appliances List */
.appliances-list {
    margin-top: 25px;
}

.empty-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px;
    font-style: italic;
}

.appliances-table {
    overflow-x: auto;
}

.appliances-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.appliances-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.appliances-table th,
.appliances-table td {
    padding: 14px;
    text-align: left;
}

.appliances-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.appliances-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.appliances-table tbody tr:hover {
    background: #f8fafc;
}

.appliances-table tbody tr:last-child {
    border-bottom: none;
}

/* Results Section */
.results-card {
    background: linear-gradient(to bottom, white 0%, #fef3c7 100%);
    border: 2px solid var(--primary-color);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.result-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.result-icon i {
    font-size: 1.75rem;
    color: white;
}

.result-item h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

/* Equipment Breakdown Section */
.equipment-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-color);
}

.equipment-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.equipment-grid {
    display: grid;
    gap: 20px;
}

.equipment-category {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.equipment-category h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.equipment-category h4 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.equipment-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.equipment-items li {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.equipment-items li:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 600;
    color: var(--text-primary);
}

.item-specs {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.item-price {
    font-weight: 700;
    color: var(--primary-dark);
    text-align: right;
    font-size: 1.1rem;
}

/* Pricing Section */
.pricing-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
}

/* ROI Section */
.roi-section {
    background: linear-gradient(to bottom, white, #f0fdf4);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--success-color);
}

.roi-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.comparison-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.comparison-card.grid-cost {
    border-color: #ef4444;
}

.comparison-card.grid-cost:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

.comparison-card.solar-cost {
    border-color: var(--success-color);
}

.comparison-card.solar-cost:hover {
    border-color: #059669;
    background: #f0fdf4;
}

.comparison-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.grid-cost .comparison-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.solar-cost .comparison-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.comparison-icon i {
    font-size: 2rem;
    color: white;
}

.comparison-card h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    font-weight: 600;
}

.comparison-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 10px 0;
}

.comparison-value-annual {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 10px 0;
}

.comparison-card small {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 5px;
}

/* ROI Highlights */
.roi-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--success-color);
}

.roi-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(to right, #f0fdf4, white);
    border-radius: 10px;
    border-left: 4px solid var(--success-color);
    transition: all 0.3s ease;
}

.roi-stat:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.roi-stat > i {
    font-size: 2.5rem;
    color: var(--success-color);
    min-width: 50px;
    text-align: center;
}

.roi-stat h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.roi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 0;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(to bottom, white, #f0f9ff);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--secondary-color);
}

.contact-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

/* Contact Info Banner */
.contact-info-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.support-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.support-item > i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.support-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.support-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-item a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
    transform: scale(1.05);
}

.support-item p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Quote Form */
.quote-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.quote-form .input-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
    width: 100%;
}

.quote-form .input-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Map Container */
.map-container {
    margin: 25px 0;
}

.map-container label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.map-container label i {
    color: var(--primary-color);
    margin-right: 5px;
}

.location-map {
    height: 400px;
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container small {
    display: block;
    margin-top: 10px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, var(--secondary-color), #1e40af);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1e40af, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.pricing-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.pricing-table {
    overflow-x: auto;
    margin-bottom: 25px;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.pricing-table thead {
    background: #f8fafc;
    border-bottom: 2px solid var(--primary-color);
}

.pricing-table th,
.pricing-table td {
    padding: 14px;
    text-align: left;
}

.pricing-table th {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.pricing-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.pricing-table .subtotal-row {
    background: #fef3c7;
    font-weight: 600;
}

.pricing-table .markup-row {
    background: #fed7aa;
    font-weight: 600;
    color: var(--primary-dark);
}

.total-price {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    color: white;
    margin-top: 20px;
}

.total-price h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
}

.price-note {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: white;
    margin-top: 40px;
}

footer p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevent zoom on input focus */
    }

    .container {
        padding: 10px;
    }

    /* Header mobile */
    header {
        padding: 25px 15px;
    }

    .header-logo {
        flex-direction: column;
        gap: 15px;
    }

    .logo-img {
        width: 70px;
        height: 70px;
    }

    .header-text {
        text-align: center;
    }

    .header-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .header-content h1 i {
        font-size: 1.3rem;
    }

    .header-content p {
        font-size: 0.95rem;
    }

    /* Cards mobile */
    .card {
        padding: 20px 15px;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .card h2 {
        font-size: 1.4rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    /* Buttons mobile - larger touch targets */
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 48px; /* iOS touch target */
    }

    .btn-preset {
        padding: 20px 15px;
        min-height: 100px;
    }

    .btn-preset i {
        font-size: 2rem;
    }

    .btn-calculate {
        width: 100%;
        padding: 18px 24px;
        font-size: 1.1rem;
        min-height: 56px;
    }

    .appliance-preset-btn {
        padding: 18px 12px;
        min-height: 100px;
    }

    /* Forms mobile */
    .appliance-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .parameters-grid {
        grid-template-columns: 1fr;
    }

    .customer-form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Inputs mobile - larger for touch */
    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom */
        min-height: 48px;
    }

    .input-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    /* Preset buttons */
    .preset-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .preset-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    /* Results mobile */
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .result-item {
        padding: 20px;
    }

    .result-icon {
        width: 50px;
        height: 50px;
    }

    .result-icon i {
        font-size: 1.5rem;
    }

    .result-value {
        font-size: 1.4rem;
    }

    .price-value {
        font-size: 1.8rem;
    }

    /* Calculate section */
    .calculate-section {
        padding: 15px;
    }

    /* Section headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-description {
        font-size: 0.9rem;
    }

    /* Equipment breakdown */
    .equipment-items li {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 15px 0;
    }

    .item-name {
        font-size: 0.95rem;
    }

    .item-price {
        text-align: left;
        font-size: 1.1rem;
    }

    /* Pricing table */
    .pricing-table table {
        font-size: 0.85rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 8px;
    }

    /* ROI section */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .comparison-value {
        font-size: 1.6rem;
    }

    .comparison-value-annual {
        font-size: 1.2rem;
    }

    .roi-highlight {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }

    .roi-stat {
        flex-direction: row;
        text-align: left;
        padding: 15px;
    }

    .roi-stat > i {
        font-size: 2rem;
        min-width: 40px;
    }

    .roi-value {
        font-size: 1.4rem;
    }

    /* Contact section */
    .contact-info-banner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .support-item {
        padding: 15px;
    }

    .support-item > i {
        font-size: 2rem;
    }

    .support-item a {
        font-size: 1.1rem;
    }

    /* Map */
    .location-map {
        height: 250px;
    }

    /* Action buttons */
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons .btn {
        width: 100%;
    }

    /* Appliance list */
    .appliance-item {
        padding: 12px;
    }

    .appliance-info {
        font-size: 0.9rem;
    }

    /* Toggle switch - easier to tap */
    .switch-label {
        width: 60px;
        height: 32px;
    }

    .switch-slider:before {
        height: 24px;
        width: 24px;
    }

    input:checked + .switch-slider:before {
        transform: translateX(28px);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: white;
    animation: fadeIn 0.3s ease;
}

.loading-spinner i {
    font-size: 4rem;
    color: #fef3c7;
    margin-bottom: 20px;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

.loading-spinner p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Card Animations */
.card {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Focus Effects */
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    transform: translateY(-1px);
}

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    animation: slideDown 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.message i {
    font-size: 1.2rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .calculate-section,
    .action-buttons,
    header,
    footer {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    z-index: 10000;
    transition: bottom 0.3s ease;
}

.toast-notification.show {
    bottom: 30px;
}

.toast-notification i {
    font-size: 18px;
}

.toast-success {
    background: #10b981;
}

.toast-error {
    background: #ef4444;
}

.toast-info {
    background: #3b82f6;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes highlightNew {
    0% {
        background-color: #fef3c7;
        transform: scale(1.02);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

.appliances-table tbody tr.newly-added {
    animation: highlightNew 1s ease-out;
}

.card {
    animation: slideIn 0.5s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
