/**
 * GPU Pond Calculator Frontend Styles
 */

/* Loading animation for AI generation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

:root {
  --gpu-primary: #2563eb;
  --gpu-accent: #059669;
  --gpu-button: #1d4ed8;
  --gpu-text: #1f2937;
  --gpu-bg: #ffffff;
  --gpu-border: #e5e7eb;
}

/* Main container */
.gpu-pond-calculator {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  max-width: 1800px;
  margin: 0 auto;
  padding: 20px;
  color: var(--gpu-text);
  background: var(--gpu-bg);
}

/* Loading state */
.gpu-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 18px;
}

/* Step navigation */
.gpu-step-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  padding: 0 20px;
  overflow-x: auto;
}

/* Step 1 - Pond Types Grid Layout */
.pond-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1800px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .pond-types {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .pond-types {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pond-types {
        grid-template-columns: 1fr;
    }
}

.pond-type-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pond-type-card:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.pond-type-card.selected {
    border-color: #10b981;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}

.pond-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.pond-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pond-type-card:hover .pond-image img {
    transform: scale(1.05);
}

.pond-info {
    padding: 24px;
    text-align: left;
}

.pond-type-card h3 {
    font-size: 1.4rem;
    color: #1f2937;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.pond-type-card p {
    color: #6b7280;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
}

.starting-price {
    color: #2563eb;
    font-size: 1.1rem;
    font-weight: 700;
}

.product-count {
    background: lightgreen;
    color: #166534;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.select-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    width: 100%;
    margin-top: auto;
}

.select-btn:hover {
    background: #1d4ed8;
}

.select-btn:active {
    transform: translateY(1px);
}

.gpu-step-nav-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 25px;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.gpu-step-nav-item.active {
  background: var(--gpu-primary);
  color: white;
}

.gpu-step-nav-item.completed {
  background: var(--gpu-accent);
  color: white;
}

.gpu-step-nav-item .step-number {
  background: rgba(255,255,255,0.2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* Step content */
.gpu-step-content {
  margin-bottom: 30px;
}

/* Category count */
.category-count {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
  font-weight: 500;
}

.gpu-step-title {
  text-align: center;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 700;
  color: var(--gpu-primary);
}

.gpu-step-description {
  text-align: center;
  margin-bottom: 30px;
  font-size: 16px;
  color: #6c757d;
  line-height: 1.5;
}

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

@media (max-width: 768px) {
  .gpu-card-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Individual cards */
.gpu-card {
  border: 2px solid var(--gpu-border);
  border-radius: 12px;
  padding: 20px;
  background: white;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gpu-card:hover {
  border-color: var(--gpu-primary);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.gpu-card.selected {
  border-color: var(--gpu-primary);
  background: rgba(37, 99, 235, 0.05);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.gpu-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  background: #f8f9fa;
}

.gpu-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gpu-card-badge.standard {
  background: #e3f2fd;
  color: #1976d2;
}

.gpu-card-badge.premium {
  background: #fce4ec;
  color: #c2185b;
}

.gpu-card-badge.on-display {
  background: #fff3e0;
  color: #f57c00;
}

.gpu-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gpu-text);
  line-height: 1.3;
}

.gpu-card-description {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 15px;
  line-height: 1.4;
}

.gpu-card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--gpu-primary);
  margin-bottom: 10px;
}

/* Multi-select cards for add-ons */
.gpu-card.multi-select {
  border-style: dashed;
}

.gpu-card.multi-select.selected {
  border-style: solid;
}

.gpu-card-checkbox {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gpu-border);
  border-radius: 4px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  transition: all 0.3s ease;
}

.gpu-card.selected .gpu-card-checkbox {
  background: var(--gpu-primary);
  border-color: var(--gpu-primary);
}

.gpu-card.selected .gpu-card-checkbox::after {
  content: '✓';
}

/* Navigation buttons */
.gpu-step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding: 0 20px;
}

.gpu-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.gpu-btn-primary:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.gpu-btn-secondary {
  background: transparent;
  color: var(--gpu-text);
  border: 2px solid var(--gpu-border);
}

.gpu-btn-secondary:hover {
  background: #f8f9fa;
  border-color: var(--gpu-primary);
}

.gpu-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Quote summary */
.gpu-quote-summary {
  background: white;
  border: 1px solid var(--gpu-border);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.gpu-quote-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gpu-primary);
  margin-bottom: 20px;
  text-align: center;
}

.gpu-quote-category {
  margin-bottom: 20px;
}

.gpu-quote-category-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gpu-text);
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--gpu-accent);
}

.gpu-quote-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.gpu-quote-item-name {
  font-weight: 500;
  color: var(--gpu-text);
}

.gpu-quote-item-price {
  font-weight: 600;
  color: var(--gpu-primary);
}

.gpu-quote-total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 3px solid var(--gpu-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gpu-quote-total-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--gpu-text);
}

.gpu-quote-total-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--gpu-primary);
}

.gpu-quote-notes {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
}

.gpu-quote-notes ul {
  margin: 0;
  padding-left: 20px;
}

/* Visualization section */
.gpu-visualization {
  background: white;
  border: 1px solid var(--gpu-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.gpu-visualization-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gpu-primary);
  margin-bottom: 15px;
}

.gpu-visualization-description {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 25px;
  line-height: 1.5;
}

.gpu-image-upload {
  border: 2px dashed var(--gpu-border);
  border-radius: 12px;
  padding: 40px 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.gpu-image-upload:hover {
  border-color: var(--gpu-primary);
  background: rgba(37, 99, 235, 0.02);
}

.gpu-image-upload.dragover {
  border-color: var(--gpu-accent);
  background: rgba(5, 150, 105, 0.05);
}

.gpu-upload-icon {
  font-size: 48px;
  color: var(--gpu-border);
  margin-bottom: 15px;
}

.gpu-upload-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--gpu-text);
  margin-bottom: 5px;
}

.gpu-upload-hint {
  font-size: 14px;
  color: #6c757d;
}

.gpu-generated-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin: 20px 0;
}

.gpu-generating {
  padding: 40px 20px;
  text-align: center;
}

.gpu-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--gpu-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

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

/* Action buttons section */
.gpu-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  align-items: center;
}

@media (min-width: 768px) {
  .gpu-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.gpu-btn-large {
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 10px;
  min-width: 200px;
  justify-content: center;
}

/* Before/After comparison responsive */
@media (max-width: 768px) {
    .before-after-comparison > div:first-of-type {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .before-after-comparison h3 {
        font-size: 18px !important;
        margin-bottom: 16px !important;
    }
}

/* Hover effect for clickable after image */
.after-image div:hover img {
    transform: scale(1.02);
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
    #image-modal > div {
        padding: 20px;
    }
    
    #image-modal button {
        top: -30px !important;
        right: 10px !important;
    }
}

/* Responsive design */
@media (max-width: 768px) {
  .gpu-pond-calculator {
    padding: 15px;
  }
  
  .gpu-step-title {
    font-size: 24px;
  }
  
  .gpu-step-description {
    font-size: 14px;
  }
  
  .gpu-card {
    padding: 15px;
  }
  
  .gpu-card-title {
    font-size: 16px;
  }
  
  .gpu-card-price {
    font-size: 18px;
  }
  
  .gpu-step-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  .gpu-btn {
    width: 100%;
    justify-content: center;
  }
  
  .pond-types {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .step-content {
    padding: 30px 20px;
  }
}

/* Styles moved from index.php for standalone pond calculator */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
}

.header {
    background: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e5e7eb;
}

.header h1 {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 5px;
    font-weight: 700;
}

.header p {
    color: #6b7280;
    font-size: 1.1rem;
}

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

.app-status {
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
    font-weight: 500;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.step-indicator {
    background: #f8fafc;
    padding: 20px 40px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.step-number {
    background: #2563eb;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-info h3 {
    color: #1f2937;
    margin-bottom: 5px;
}

.step-info p {
    color: #6b7280;
    font-size: 0.9rem;
}

.progress-bar {
    flex: 1;
    max-width: 200px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 4px;
    width: 20%;
    transition: width 0.3s ease;
}

.step-content {
    padding: 40px;
}

.step-title {
    text-align: center;
    margin-bottom: 40px;
}

.step-title h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.step-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
}

.pond-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

@media (max-width: 1200px) {
    .pond-types {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .pond-types {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 16px;
    }
}

.pond-type-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.pond-type-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pond-type-card.selected {
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.pond-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.pond-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pond-type-card:hover .pond-image img {
    transform: scale(1.05);
}

.pond-info {
    padding: 24px;
    text-align: left;
}

.pond-type-card h3 {
    font-size: 1.4rem;
    color: #1f2937;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.pond-type-card p {
    color: #6b7280;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-top: 12px;
}

.starting-price {
    color: #2563eb;
    font-size: 1rem;
    font-weight: 600;
}

.product-count {
    background: #22c55e;
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
}

.select-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
    margin-top: auto;
}

.select-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

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

.data-stats {
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
}

.data-stats h4 {
    color: #065f46;
    margin-bottom: 10px;
}

.data-stats p {
    color: #047857;
    font-size: 0.9rem;
}

.next-steps {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin-top: 30px;
}

.next-steps h4 {
    color: #92400e;
    margin-bottom: 10px;
}

.next-steps ul {
    color: #a16207;
    margin-left: 20px;
}

.next-steps li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .pond-types {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-content {
        padding: 30px 20px;
    }
    
    .step-indicator {
        padding: 15px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}

/* Step 4: Plant Package Styling */
.plant-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.plant-package-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.plant-package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plant-package-card.selected {
    border: 3px solid #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.package-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.plant-package-card:hover .package-image img {
    transform: scale(1.05);
}

.package-selection {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.package-radio {
    width: 24px;
    height: 24px;
    accent-color: #2563eb;
    cursor: pointer;
    transform: scale(1.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.package-info {
    padding: 24px;
}

.package-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.package-description {
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    min-height: 48px;
}

.package-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-price {
    font-weight: 600;
    color: #2563eb;
    font-size: 1.2rem;
}

.package-badge {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Step 4 responsive adjustments */
@media (max-width: 768px) {
    .plant-options {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
    
    .package-image {
        height: 180px;
    }
    
    .package-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .plant-options {
        grid-template-columns: 1fr;
    }
    
    .package-image {
        height: 160px;
    }
}

/* Step 5: Polished Two-Column Quote & Visualization */
.quote-visualization-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 30px 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Quote Summary Card */
.quote-summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.quote-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.quote-header h3 {
    margin: 0 0 16px 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.total-display {
    text-align: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
}

.total-amount {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.total-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quote Breakdown */
.quote-breakdown {
    margin-bottom: 24px;
}

.quote-section-header {
    font-weight: 700;
    color: #334155;
    margin: 24px 0 16px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    position: relative;
    padding-left: 12px;
}

.quote-section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #2563eb;
    border-radius: 2px;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.quote-item:hover {
    background: rgba(37, 99, 235, 0.03);
    margin: 0 -16px;
    padding: 16px 16px;
    border-radius: 8px;
}

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

.item-details h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.item-category {
    margin: 0 0 6px 0;
    font-size: 0.75rem;
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-description {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.item-price {
    font-weight: 700;
    color: #059669;
    font-size: 1.1rem;
    white-space: nowrap;
}

.addon-item {
    margin-left: 16px;
    padding-left: 16px;
    border-left: 2px solid #e2e8f0;
    position: relative;
}

.addon-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #2563eb;
    border-radius: 50%;
}

.quote-footer {
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.warranty-note {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

/* Visualization Card */
.visualization-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.visualization-header {
    margin-bottom: 28px;
    text-align: center;
}

.visualization-header h3 {
    margin: 0 0 12px 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
}

.visualization-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Upload Area */
.image-upload-area {
    margin-bottom: 24px;
}

.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #2563eb;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.upload-icon {
    margin-bottom: 16px;
    color: #64748b;
    transition: color 0.3s ease;
}

.upload-zone:hover .upload-icon {
    color: #2563eb;
}

.upload-zone h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}

.upload-zone p {
    margin: 0 0 12px 0;
    color: #64748b;
    font-size: 0.95rem;
}

.file-specs {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

/* AI Processing */
.ai-processing-area {
    text-align: center;
}

.generation-status {
    padding: 48px 24px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

.generation-status h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}

.generation-status p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* Generated Result */
.generated-result {
    text-align: center;
}

.result-image {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.result-image img {
    width: 100%;
    height: auto;
    display: block;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.download-btn,
.regenerate-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.download-btn {
    background: #059669;
    color: white;
}

.download-btn:hover {
    background: #047857;
    transform: translateY(-1px);
}

.regenerate-btn {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.regenerate-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

/* AI Generation Area */
.ai-generation-area {
    margin-top: 24px;
}

.generation-status {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

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

.generation-status h4 {
    margin: 0 0 8px 0;
    color: #111827;
}

.generation-status p {
    margin: 0;
    color: #6b7280;
}

.generated-result {
    text-align: center;
}

.generated-result img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.download-btn,
.regenerate-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.download-btn {
    background: #059669;
    color: white;
}

.download-btn:hover {
    background: #047857;
}

.regenerate-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.regenerate-btn:hover {
    background: #e5e7eb;
}

.error-message {
    text-align: center;
    padding: 30px;
    color: #dc2626;
}

.error-message h4 {
    margin: 0 0 8px 0;
    color: #dc2626;
}

.retry-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 16px;
}

.retry-btn:hover {
    background: #b91c1c;
}

/* Final Actions */
.final-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.consultation-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.consultation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Responsive Design for Two-Column Step 5 */
@media (max-width: 1200px) {
    .quote-visualization-grid {
        max-width: 1000px;
        gap: 24px;
    }
    
    .quote-summary-card,
    .visualization-card {
        padding: 28px;
    }
    
    .total-amount {
        font-size: 2rem;
    }
}

@media (max-width: 968px) {
    .quote-visualization-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 600px;
    }
    
    .quote-summary-card,
    .visualization-card {
        padding: 24px;
    }
    
    .upload-zone {
        padding: 40px 20px;
    }
    
    .final-actions {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .quote-visualization-grid {
        margin: 20px auto;
        gap: 20px;
    }
    
    .quote-summary-card,
    .visualization-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .quote-header h3,
    .visualization-header h3 {
        font-size: 1.4rem;
    }
    
    .total-amount {
        font-size: 1.8rem;
    }
    
    .quote-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 14px 0;
    }
    
    .quote-item:hover {
        margin: 0 -12px;
        padding: 14px 12px;
    }
    
    .item-price {
        font-size: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .download-btn,
    .regenerate-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quote-summary-card,
    .visualization-card {
        padding: 16px;
    }
    
    .upload-zone {
        padding: 32px 16px;
    }
    
    .addon-item {
        margin-left: 0;
        padding-left: 12px;
    }
    
    .total-display {
        padding: 16px;
    }
}

/* Accessibility */
.gpu-card:focus {
  outline: 3px solid var(--gpu-primary);
  outline-offset: 2px;
}

.gpu-btn:focus {
  outline: 3px solid var(--gpu-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .gpu-card,
  .gpu-btn,
  .gpu-card-checkbox,
  .gpu-image-upload {
    transition: none;
  }
  
  .gpu-spinner {
    animation: none;
  }
}