/* ==================================================
   QUOTE FLOW
   ================================================== */

/* Quote Hero Section */
.quote-hero {
  background: linear-gradient(135deg, rgb(10 16 101) 0%, rgb(20 28 129) 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.quote-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.quote-hero .container {
  position: relative;
  z-index: 1;
}

.quote-hero-image {
  text-align: center;
  font-size: 180px;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
}

/* Progress Indicator */
.quote-progress {
  background: white;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 500px;
  margin: 0 auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.progress-step.active {
  color: var(--brand-primary);
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #6c757d;
  transition: all 0.3s ease;
  position: relative;
}

.progress-step.active .step-circle {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(2, 22, 141, 0.3);
}

.progress-step.completed .step-circle {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: white;
}

.progress-step .step-number {
  display: block;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
}

.progress-step.active .step-number {
  color: #fff;
}

.step-check {
  display: none;
  font-size: 0.8rem;
}

.progress-step.completed .step-number {
  display: none;
}

.progress-step.completed .step-check {
  display: block;
}

.step-label {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6c757d;
  text-align: center;
  white-space: nowrap;
}

.progress-step.active .step-label {
  color: var(--brand-primary);
  font-weight: 600;
}

.progress-step.completed .step-label {
  color: var(--brand-secondary);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: #dee2e6;
  margin: 0 8px;
  position: relative;
  top: -24px;
  transition: all 0.3s ease;
  min-width: 30px;
}

.progress-step.completed ~ .progress-line {
  background: var(--brand-secondary);
}

/* Form Layout */
.quote-form-card {
  background: white;
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header {
  border-bottom: 2px solid #f8f9fa;
  padding-bottom: 20px;
}

.form-control-lg,
.form-select-lg {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 14px 18px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control-lg:focus,
.form-select-lg:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 0.2rem rgba(0, 180, 216, 0.15);
}

.form-label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-text {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 4px;
}

/* Quote-specific back button so it is unaffected by global .btn:hover styles */
.quote-back-btn {
  color: #495057;
  background-color: #fff;
  border-color: #ced4da;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.quote-back-btn:hover,
.quote-back-btn:focus {
  color: #212529 !important;
  background-color: #f8f9fa !important;
  border-color: #adb5bd !important;
  box-shadow: none;
}

.guarantee-banner {
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #00a8c8 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.guarantee-banner i {
  font-size: 1.3rem;
  vertical-align: middle;
}

/* Quote Service Selection */
.service-selection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.size-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.size-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.size-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-card-content {
  border: 3px solid #e9ecef;
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  transition: all 0.3s ease;
  background: white;
  height: 100%;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.size-card:hover .size-card-content {
  border-color: var(--brand-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgb(255 193 7 / 14%);
}

.size-card input[type="radio"]:checked ~ .size-card-content {
    border-color: #ffc107;
    border-width: 3px;
    background: linear-gradient(135deg, #ffc10721 0%, #ffc10717 100%);
    color: inherit;
    box-shadow: 0 6px 24px rgb(255 193 7 / 40%);
}

.size-icon {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand-primary);
  transition: all 0.3s ease;
}

.size-card input[type="radio"]:checked ~ .size-card-content .size-icon {
  color: #000;
}

.size-icon i {
  font-size: 1.8rem;
}

.size-label {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
  font-weight: 600;
}

.size-card input[type="radio"]:checked ~ .size-card-content .size-label {
  color: #495057;
  font-weight: 700;
}

.service-card {
  position: relative;
  cursor: pointer;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 28px 32px;
  transition: all 0.3s ease;
  background: white;
  height: 100%;
}

.service-card input[type="radio"],
.service-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-card-content {
  display: contents;
}

/*.service-card:hover {
  border-color: #00a326;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 163, 38, 0.12);
}*/

.service-card:has(input[type="radio"]:checked),
.service-card:has(input[type="checkbox"]:checked) {
  border-color: var(--brand-accent);
  border-width: 3px;
  color: inherit;
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3.5rem;
  color: #070d59;
  transition: all 0.3s ease;
  line-height: 1;
  display: flex;
  /*align-items: center;
  justify-content: center;*/
}

.service-icon i {
  display: block;
}


.service-info {
  text-align: left;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand-primary);
  line-height: 1.3;
}

.service-description {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

.service-card:has(input:checked) .service-description,
.service-card input[type="radio"]:checked ~ .service-card-content .service-description,
.service-card input[type="checkbox"]:checked ~ .service-card-content .service-description {
  color: #495057;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #495057;
}

.service-features li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.service-features i {
  font-size: 0.75rem;
  color: #00a326;
  flex-shrink: 0;
}


.service-action {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-btn {
  background: linear-gradient(0deg,rgba(247, 179, 28, 1) 0%, rgba(251, 207, 23, 1) 100%);
  color: #000000;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-card-btn:hover {
  background: linear-gradient(0deg, rgb(255 192 53) 0%, rgb(228 186 8) 100%);
  /*transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 22, 141, 0.3);*/
}


/* Upload Area */
.upload-area {
  border: 3px dashed #e9ecef;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #f8f9fa;
}

.upload-area:hover {
  border-color: var(--brand-secondary);
  background: rgba(0, 180, 216, 0.05);
}

.upload-area.dragover {
  border-color: var(--brand-primary);
  background: rgba(7, 13, 89, 0.05);
}

.upload-prompt {
  pointer-events: none;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.photo-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.photo-preview-remove:hover {
  background: #dc3545;
  transform: scale(1.1);
}

.trust-badge {
  padding: 20px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
}

.btn-primary:hover {
  background: #0096b4;
  border-color: #0096b4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.3);
}

.btn-primary:disabled {
  background-color: #ccc;
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.btn-outline-secondary {
  border: none;
  background: transparent;
  color: #999;
  font-weight: 400;
  padding: 10px 0;
}

.btn-outline-secondary:hover {
  color: #666;
  text-decoration: underline;
  transform: none;
  background: transparent;
  border: none;
}

.btn-group .btn {
  padding: 12px 20px;
}

.btn-check:checked + .btn-outline-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* Loading State */
.form-step.loading {
  opacity: 0.6;
  pointer-events: none;
}

.form-step.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--brand-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 3D Shower Viewer */
.shower-3d-section {
  margin-top: 30px;
  margin-bottom: 30px;
}

#shower3DContainer {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#shower3DContainer:empty::before {
  content: 'Loading 3D viewer...';
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 500;
}

#shower3DContainer canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.shower-3d-header {
  background: white;
  padding: 15px 20px;
  border-radius: 12px 12px 0 0;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 0;
}

.shower-3d-header h5 {
  margin: 0;
  font-weight: 600;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.shower-3d-controls {
  margin-top: 15px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shower-3d-controls p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.shower-3d-info {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.shower-3d-info-item {
  display: flex;
  flex-direction: column;
}

.shower-3d-info-item label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 4px;
}

.shower-3d-info-item span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-primary);
}

/* Finish Level Cards */
.finish-card {
  position: relative;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.finish-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.finish-card-content {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.finish-card input[type="radio"]:checked + .finish-card-content {
  border-color: var(--brand-primary);
  background: rgba(7, 13, 89, 0.05);
  box-shadow: 0 4px 12px rgba(7, 13, 89, 0.15);
}

.finish-card:hover .finish-card-content {
  border-color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.finish-icon {
  font-size: 2.5rem;
  color: var(--brand-primary);
  margin-bottom: 12px;
  line-height: 1;
}

.finish-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.finish-description {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
}

/* Compact Progress Indicator */
.quote-progress-compact {
  display: none;
  justify-content: center;
  padding: 15px 0;
  margin-bottom: 20px;
}

.progress-steps-compact {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
}

.progress-step-compact {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: #e0e0e0 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.progress-step-compact.active,
.progress-step-compact.completed {
  background-color: var(--brand-accent) !important;
}

.progress-step-compact.active {
  transform: scale(1.2) !important;
}

/* Quote Summary */
body.quote-summary-page {
  background: #f8f9fa;
}

.quote-card {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 36px;
  margin: 0 auto;
}

.quote-title {
  color: #070D59;
  letter-spacing: 0.5px;
}

.quote-date {
  font-size: 1em;
}

.quote-inclusions {
  font-size: 1.05em;
}

.quote-inclusion-item {
  list-style-type: disc;
  margin-left: 1.2em;
}

.breakdown-btn {
  font-size: 0.95em;
  color: #888;
  text-decoration: underline dotted;
}

.breakdown-arrow {
  transition: transform 0.2s;
}

.breakdown-item {
  text-align: center;
  padding: 12px;
  border-color: #f8f9fa;
}

.breakdown-item-title,
.breakdown-item-price {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.breakdown-item-title {
  color: #6c757d;
}

.breakdown-item-price {
  font-weight: 700;
}

.quote-totals hr {
  border-color: #f8f9fa;
}

.quote-totals {
  border-radius: 16px;
}

#pricingBreakdown .list-group {
  border-radius: 12px;
  overflow: hidden;
}

.quote-label {
  font-weight: 600;
  color: #070D59;
}

.quote-value {
  color: #222;
}

.estimate-summary {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 18px;
}

.estimate-total {
  font-size: 2rem;
  color: #00B4D8;
  font-weight: 700;
}

.estimate-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #e9ecef;
}

.estimate-line-item:last-child {
  border-bottom: none;
}

.quote-icon {
  color: #00B4D8;
  font-size: 2.2rem;
  margin-right: 10px;
}

.d-flex.justify-content-between .btn.btn-accent {
    order: 2;
}
/* Responsive */
@media (max-width: 768px) {
  .progress-steps {
    max-width: 100%;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .step-circle {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .progress-line {
    margin: 0 4px;
    min-width: 20px;
  }

  .quote-hero {
    padding: 60px 0 40px;
  }

  .quote-hero h1 {
    font-size: 2rem;
  }

  .quote-hero-image {
    font-size: 100px;
    margin-top: 30px;
  }

  .quote-form-card {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: white;
  }

  .step-header {
    text-align: center;
    border-bottom: none;
    padding-bottom: 15px;
  }

  .step-header h2 {
    font-size: 1.25rem !important;
  }

  .step-header p {
    font-size: 0.875rem;
  }

  .quote-progress {
    padding: 20px 15px;
  }

  .step-circle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .step-label {
    font-size: 0.75rem;
  }

  .progress-line {
    margin: 0 5px;
    top: -25px;
  }

  .service-selection-grid {
    grid-template-columns: 1fr;
  }

  .size-selection-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-lg {
    width: 100%;
  }

  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 10px;
  }

  .d-flex.justify-content-between .btn {
    width: 100%;
    order: 1;
  }

  .d-flex.justify-content-between .btn-outline-secondary {
    order: 2;
  }

  .service-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
    padding: 24px;
  }

  .service-info {
    /*text-align: center;*/
  }

  .service-action {
    width: 100%;
  }

  .service-card-btn {
    width: 100%;
    justify-content: center;
  }

  #shower3DContainer {
    height: 400px;
  }

  .shower-3d-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .finish-card-content {
    padding: 16px;
  }

  .finish-icon {
    font-size: 2rem;
  }

  .finish-title {
    font-size: 1rem;
  }

  .quote-progress-compact {
    top: 15px !important;
    right: 15px !important;
  }

  .progress-step-compact {
    width: 10px !important;
    height: 10px !important;
  }

  body.quote-summary-page {
    background: #fff;
  }

  .quote-card {
    max-width: 100vw;
    width: 100%;
    padding: 20px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }
}

@media (max-width: 576px) {
  .progress-steps {
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .progress-line {
    margin: 0 4px;
    min-width: 20px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .step-label {
    font-size: 0.65rem;
    margin-top: 6px;
  }

  .quote-progress {
    padding: 15px 20px;
  }
}
