/* Enhanced scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Ensure proper scrolling on all devices */
body {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iOS Safari fix */
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  color: #343a40;
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  min-height: 100vh;
}

/* Header - FIXED OVERLAP WITH PROGRESS BAR */
header {
  text-align: center;
  padding: 1.5rem 0; /* Increased from 1rem to 1.5rem */
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
  margin-top: 40px; /* Add margin to account for progress bar */
  position: relative;
  z-index: 998; /* Below progress bar but above other content */
}

header img {
  max-height: 70px; /* Increased from 60px to 70px */
  width: auto;
  margin-bottom: 0.8rem; /* Increased from 0.5rem to 0.8rem */
}

header h1 {
  font-size: 1.9rem; /* Increased from 1.8rem to 1.9rem */
  font-weight: 700;
  color: #007bff;
}

/* Calculator Section - ENHANCED ORGANIZATION */
.calculator-section {
  background: white;
  margin: 1rem auto;
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 3px solid #007bff;
  overflow: hidden;
  max-width: 800px;
  padding: 0 1rem;
  position: relative;
}

.calculator-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #17a2b8, #28a745, #ffc107);
  z-index: 1;
}

.calculator-container {
  width: 100%;
  position: relative;
}

.calc-header-section {
  background: linear-gradient(135deg, #007bff, #17a2b8);
  color: white;
  padding: 1.2rem;
  text-align: center;
  margin: 0 -1rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.calc-header-section::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 10px solid #17a2b8;
}

.calc-header-section h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.calc-content-section {
  padding: 2rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  max-width: 100%;
  margin: 0 auto;
}

.calc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  background: white;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.calc-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #17a2b8);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.calc-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #007bff;
}

.calc-item:hover::before {
  transform: scaleX(1);
}

.calc-label {
  color: #495057;
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
  text-align: right;
  letter-spacing: 0.3px;
}

.calc-value {
  font-weight: 800;
  color: #007bff;
  font-size: 1.4rem;
  min-width: 50px;
  text-align: center;
  flex: 0 0 auto;
  margin: 0 0.8rem;
  padding: 0.3rem 0.6rem;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(23, 162, 184, 0.1));
  border-radius: 8px;
  border: 1px solid rgba(0, 123, 255, 0.2);
  font-family: 'Tajawal', monospace;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.calc-unit {
  color: #6c757d;
  font-size: 0.95rem;
  font-weight: 500;
  flex: 0 0 auto;
  text-align: left;
  background: #f8f9fa;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  font-family: monospace;
}

.calc-total {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #007bff, #17a2b8);
  border-radius: 16px;
  border: none;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.calc-total::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.calc-total-label {
  color: white;
  font-size: 1.3rem;
  flex: 1;
  text-align: right;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.calc-total-value {
  color: white;
  font-size: 2.2rem;
  font-weight: 900;
  flex: 0 0 auto;
  text-align: center;
  margin: 0 1.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-family: 'Tajawal', monospace;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  min-width: 80px;
}

.calc-total-unit {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  flex: 0 0 auto;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
}

/* Calculator Brand - FIXED EMOJI OVERLAP */
.calc-brand {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #28a745, #20c997);
  border-radius: 12px;
  border: none;
  text-align: center;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.calc-brand-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.3px;
}

.calc-brand-value {
  color: white;
  font-weight: 800;
  font-size: 1.3rem;
  flex: 0 0 auto;
  text-align: center;
  padding: 0.3rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  letter-spacing: 0.5px;
}

/* Progress Bar - INCREASED Z-INDEX */
.progress-container {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background-color: #e9ecef;
  z-index: 1000; /* Higher than header */
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #17a2b8);
  width: 0%;
  transition: width 0.3s ease-in-out;
}

/* Step Indicator - ADJUSTED FOR HEADER SPACING */
.step-indicator {
  position: fixed;
  top: 4px;
  right: 1rem;
  left: 1rem;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  background: white;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999; /* Higher than header */
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #dee2e6;
  transition: background-color 0.3s ease;
}

.step-dot.active {
  background-color: #007bff;
}

.step-dot.completed {
  background-color: #28a745;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

/* Toast Messages */
.toast {
  position: fixed;
  top: 80px;
  right: 1rem;
  max-width: 400px;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.toast:not(.hidden) {
  transform: translateX(0);
}

.toast.error {
  background-color: #dc3545;
  color: white;
}

.toast.success {
  background-color: #28a745;
  color: white;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  margin-right: 1rem;
}

/* Steps - ADJUSTED FOR PROPER SPACING */
.step {
  display: none;
  margin-top: 5px; /* Increased from 20px to 30px to account for larger header */
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.step.active {
  display: block;
  animation: slideIn 0.4s ease-out;
}

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

.step-content {
  background: white;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 1.1rem;
  color: #6c757d;
}

/* Hero Section */
.hero-section {
  text-align: center;
}

.hero-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  color: #6c757d;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Remove number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type="number"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Form Elements */
.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  right: 1rem;
  color: #adb5bd;
  font-size: 1.1rem;
  z-index: 2;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid #dee2e6;
  border-radius: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
}

.form-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input.error {
  border-color: #dc3545;
}

/* Phone wrapper and input */
.phone-wrapper {
  position: relative;
}

.phone-wrapper .phone-icon {
  position: absolute;
  left: 1rem;
  right: auto;
  color: #adb5bd;
  font-size: 1.1rem;
  z-index: 2;
  pointer-events: none;
}

.phone-input {
  direction: ltr !important;
  text-align: left !important;
  padding: 0.75rem 1rem 0.75rem 3rem !important;
  font-family: 'Tajawal', sans-serif;
}

.phone-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.phone-input::placeholder {
  color: #adb5bd;
  opacity: 1;
}

/* Select dropdown styles */
select.form-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: left 1rem center;
  background-repeat: no-repeat;
  background-size: 1.2em 1.2em;
  padding-left: 3rem;
  cursor: pointer;
}

.input-suffix {
  position: absolute;
  left: 1rem;
  color: #6c757d;
  font-size: 0.9rem;
  pointer-events: none;
}

.input-help {
  margin-top: 0.25rem;
}

.input-help small {
  color: #6c757d;
  font-size: 0.8rem;
}

.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  min-height: 1.2em;
}

/* Appliances Grid */
.appliances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.appliance-card {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 180px;
  justify-content: space-between;
}

.appliance-card:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.appliance-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.appliance-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.appliance-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.5rem;
}

.power-rating {
  font-size: 0.95rem;
  color: #6c757d;
  background: rgba(0, 123, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-weight: 500;
}

/* Quantity Controls */
.quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.quantity-control.large {
  justify-content: center;
  margin-top: 1.5rem;
  gap: 1.5rem;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #007bff;
  background-color: white;
  color: #007bff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}

.qty-btn:hover:not(:disabled) {
  background-color: #007bff;
  color: white;
  transform: scale(1.05);
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.quantity-control input {
  width: 70px;
  height: 40px;
  text-align: center;
  border: 2px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: white;
  color: #343a40;
  flex-shrink: 0;
}

.quantity-control input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* AC Selector */
.ac-selector {
  text-align: center;
}

.ac-visual {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-units {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.ac-unit {
  width: 60px;
  height: 40px;
  background: linear-gradient(135deg, #17a2b8, #007bff);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  animation: fadeIn 0.3s ease-in;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-acs {
  color: #6c757d;
  font-style: italic;
  font-size: 1rem;
}

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

/* Brand Selection */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.brand-card {
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.brand-card:hover {
  border-color: #007bff;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.brand-card.selected {
  border-color: #007bff;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(23, 162, 184, 0.05));
}

.brand-card.selected::after {
  content: '✓';
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 24px;
  height: 24px;
  background-color: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.brand-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #343a40;
}

.warranty-badge {
  background-color: #17a2b8;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.warranty-badge.premium {
  background-color: #ffc107;
  color: #212529;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.brand-features .feature {
  font-size: 0.9rem;
  color: #6c757d;
  text-align: right;
  padding: 0;
}

.brand-price {
  font-weight: 600;
  color: #007bff;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

/* Form Grid */
.form-grid {
  display: grid;
  gap: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-large {
  padding: 1.5rem 3rem;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.btn-primary:hover:not(:disabled) {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #5a6268;
  border-color: #5a6268;
}

.btn-success {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

.btn-success:hover:not(:disabled) {
  background-color: #218838;
  border-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Call Button Specific Styles */
.btn-call {
  width: 100%;
  font-size: 1.2rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  border-radius: 1.5rem;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
  animation: pulse 2s infinite;
}

.btn-call:hover {
  background: linear-gradient(135deg, #218838, #17a2b8);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
  }
  50% {
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
  }
  100% {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
  }
}

.btn-outline {
  background-color: transparent;
  color: #007bff;
  border-color: #007bff;
}

.btn-outline:hover:not(:disabled) {
  background-color: #007bff;
  color: white;
}

.btn-arrow {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(-2px);
}

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

/* Step Actions */
.step-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
}

/* Quote Container */
.quote-container {
  background: linear-gradient(135deg, #f8f9fa, white);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.quote-header {
  text-align: center;
  margin-bottom: 2rem;
}

.quote-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 1rem;
}

.system-capacity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.capacity-item {
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.capacity-item .label {
  display: block;
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.capacity-item .value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #007bff;
}

.capacity-item .unit {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Components Grid */
.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.component-card {
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.component-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.component-card.panels {
  border-top: 4px solid #ffc107;
}

.component-card.inverter {
  border-top: 4px solid #17a2b8;
}

.component-card.battery {
  border-top: 4px solid #28a745;
}

.component-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.component-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.5rem;
}

.component-spec {
  font-size: 1.3rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 0.25rem;
}

.component-info small {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Price Summary */
.price-summary {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.total-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.total-price .currency {
  font-size: 2.5rem;
}

.total-price .amount {
  font-size: 3rem;
  font-weight: 700;
}

.total-price .currency-text {
  font-size: 1.1rem;
}

.price-note {
  opacity: 0.9;
}

/* Customer Info */
.customer-info {
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.customer-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 1rem;
  text-align: center;
}

.info-grid {
  display: grid;
  gap: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #dee2e6;
}

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

.info-label {
  font-weight: 500;
  color: #6c757d;
}

.info-value {
  font-weight: 600;
  color: #343a40;
}

/* Quote Actions */
.quote-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem;
}

/* Warranty Info */
.warranty-info {
  background: #f8f9fa;
  border-radius: 1rem;
  padding: 1rem;
}

.warranty-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 1rem;
  text-align: center;
}

.warranty-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
}

.warranty-list li {
  font-size: 0.9rem;
  color: #6c757d;
  padding: 0.25rem 0;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center !important;
}

/* Mobile Responsive - ADJUSTED FOR FIXED HEADER */
@media (max-width: 768px) {
  .step {
    margin-top: 5px; /* Adjusted for mobile header */
  }

  header {
    padding: 1.2rem 0;
    margin-bottom: 0.4rem;
  }

  header img {
    max-height: 60px;
    margin-bottom: 0.6rem;
  }

  header h1 {
    font-size: 1.7rem;
  }

  .calculator-section {
    margin: 0.8rem 0.5rem;
    border-radius: 1rem;
    padding: 0 0.5rem;
  }

  .calc-header-section {
    padding: 1rem;
    margin: 0 -0.5rem;
  }

  .calc-header-section h3 {
    font-size: 1.2rem;
  }
  
  .calc-content-section {
    padding: 1.5rem 0;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .calc-item {
    padding: 0.8rem 1rem;
  }

  .calc-value {
    font-size: 1.2rem;
    margin: 0 0.5rem;
    min-width: 45px;
  }
  
  .calc-total {
    padding: 1.2rem 1.5rem;
  }

  .calc-total-label {
    font-size: 1.1rem;
  }

  .calc-total-value {
    font-size: 1.8rem;
    margin: 0 1rem;
    min-width: 70px;
  }

  .calc-total-unit {
    font-size: 1rem;
  }

  .calc-brand {
    padding: 0.8rem 1.2rem;
  }

  .calc-brand-value {
    font-size: 1.1rem;
  }

  .step-content {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .appliances-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .appliance-card {
    padding: 1.5rem 1rem;
    min-height: 160px;
  }
  
  .appliance-icon {
    font-size: 2.5rem;
  }
  
  .quantity-control {
    gap: 0.75rem;
  }
  
  .quantity-control.large {
    gap: 1rem;
  }
  
  .qty-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .quantity-control input {
    width: 60px;
    height: 36px;
    font-size: 1rem;
  }
  
  .brand-grid {
    grid-template-columns: 1fr;
  }
  
  .components-grid {
    grid-template-columns: 1fr;
  }
  
  .system-capacity {
    grid-template-columns: 1fr;
  }
  
  .step-actions {
    flex-direction: column-reverse;
  }
  
  .quote-actions {
    padding: 0;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .btn-call {
    font-size: 1.3rem;
    padding: 1.75rem 2rem;
  }
  
  .total-price {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .total-price .amount {
    font-size: 2.5rem;
  }

  .hero-section h2 {
    font-size: 2rem;
  }

  .quote-container {
    padding: 1.5rem;
  }

  .quote-actions .btn-call {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .step {
    margin-top: 5px; /* Adjusted for small mobile */
  }

  header {
    padding: 1rem 0;
    margin-bottom: 0.3rem;
  }

  header img {
    max-height: 50px;
    margin-bottom: 0.4rem;
  }

  header h1 {
    font-size: 1.6rem;
  }

  .calculator-section {
    margin: 0.6rem 0.3rem;
    padding: 0 0.3rem;
    border-width: 2px;
  }

  .calc-header-section {
    padding: 0.8rem;
    margin: 0 -0.3rem;
  }

  .calc-header-section h3 {
    font-size: 1.1rem;
  }

  .calc-content-section {
    padding: 1.2rem 0;
  }

  .calc-item {
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
  }

  .calc-label {
    font-size: 0.9rem;
  }

  .calc-value {
    font-size: 1.1rem;
    margin: 0 0.4rem;
    min-width: 40px;
    padding: 0.2rem 0.4rem;
  }

  .calc-unit {
    font-size: 0.85rem;
    padding: 0.15rem 0.4rem;
  }

  .calc-total {
    padding: 1rem 1.2rem;
  }

  .calc-total-label {
    font-size: 1rem;
  }

  .calc-total-value {
    font-size: 1.6rem;
    margin: 0 0.8rem;
    min-width: 60px;
    padding: 0.3rem 0.8rem;
  }

  .calc-total-unit {
    font-size: 0.9rem;
  }

  .calc-brand {
    padding: 0.7rem 1rem;
  }

  .calc-brand-label {
    font-size: 0.9rem;
  }

  .calc-brand-value {
    font-size: 1rem;
    padding: 0.2rem 0.8rem;
  }

  .step-content {
    padding: 1rem;
  }
  
  .step-header h2 {
    font-size: 1.5rem;
  }
  
  .hero-section h2 {
    font-size: 1.8rem;
  }
  
  .component-icon {
    font-size: 2rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .appliance-card {
    padding: 1rem;
    min-height: 140px;
  }
  
  .appliance-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .appliance-info {
    margin-bottom: 1rem;
  }
  
  .appliance-info h3 {
    font-size: 1.1rem;
  }
  
  .power-rating {
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
  }

  .quote-container {
    padding: 1rem;
  }

  .btn-call {
    font-size: 1.1rem;
    padding: 1.5rem 1.5rem;
  }

  .total-price .currency {
    font-size: 2rem;
  }

  .total-price .amount {
    font-size: 2rem;
  }
}
