/* ========================================
   SWEV India - Services Page Styles
   ======================================== */

/* ===================== SERVICE DETAIL BLOCKS ===================== */
.services-overview {
  background: white;
}

.service-detail-block {
  max-width: 1200px;
  margin: 0 auto 70px;
  padding: 0;
}

.service-detail-block:last-child {
  margin-bottom: 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-detail-block.reverse .service-detail-grid {
  direction: rtl;
}

.service-detail-block.reverse .service-detail-content {
  direction: ltr;
}

.service-detail-block.reverse .service-detail-image {
  direction: ltr;
}

.service-detail-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-lg);
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-detail-image:hover img {
  transform: scale(1.03);
}

.service-detail-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-detail-tag.commercial { background: var(--accent); }
.service-detail-tag.install { background: #1565c0; }
.service-detail-tag.maintenance { background: #7b1fa2; }

.service-detail-content {
  padding: 10px 0;
}

.service-number {
  font-size: 56px;
  font-weight: 800;
  color: var(--light-green);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  margin-bottom: 10px;
}

.service-detail-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.service-detail-content > p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 24px;
}

.detail-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.detail-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.detail-feature i {
  color: var(--primary);
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.detail-feature strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.detail-feature span {
  font-size: 13px;
  color: var(--text-gray);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--light-green);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.price-label {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
}

.price-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.price-value small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-gray);
}

.install-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: #e3f2fd;
  border-radius: var(--radius-sm);
  border-left: 3px solid #1565c0;
  font-size: 14px;
  color: var(--text-gray);
}

.install-guarantee i {
  color: #1565c0;
  font-size: 20px;
}

.install-guarantee strong {
  color: #1565c0;
}

/* ===================== FULL PROCESS ===================== */
.process-full-section {
  background: var(--off-white);
}

.full-process-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.fp-step {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.fp-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.fp-connector {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: var(--primary);
  font-weight: 700;
  padding: 0 8px;
  margin-top: 30px;
}

.fp-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 12px;
}

.fp-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  background: var(--light-green);
  padding: 3px 10px;
  border-radius: 10px;
  display: inline-block;
}

.fp-step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.fp-step p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 12px;
}

.fp-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

/* ===================== PANELS SECTION ===================== */
.panels-section {
  background: white;
}

.panels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.panel-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 22px;
  border: 2px solid var(--border);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.panel-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.panel-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f0faf3, white 30%);
}

.panel-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.panel-icon {
  width: 65px;
  height: 65px;
  background: var(--light-green);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
  transition: var(--transition);
}

.panel-icon.bifacial { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.panel-icon.poly { background: #e3f2fd; color: #1565c0; }
.panel-icon.thin { background: #fce4ec; color: #c62828; }

.panel-card:hover .panel-icon {
  transform: rotate(10deg);
}

.panel-type {
  display: inline-block;
  background: var(--light-green);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.panel-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.panel-eff {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 12px;
}

.panel-eff strong {
  font-size: 18px;
  color: var(--primary);
}

.panel-card p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.panel-specs {
  display: flex;
  justify-content: space-around;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.spec span {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
}

.spec strong {
  font-size: 14px;
  color: var(--text-dark);
}

/* ===================== CALCULATOR ===================== */
.calc-section {
  background: var(--off-white);
}

.calc-container {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.calc-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.calc-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.calc-input-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.calc-input-wrap input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 25%, #ddd 25%, #ddd 100%);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.calc-input-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(26,122,60,0.4);
}

.slider-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  min-width: 90px;
  text-align: right;
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.calc-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.calc-result-item i {
  font-size: 22px;
}

.calc-result-item span {
  display: block;
  font-size: 11px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.calc-result-item strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.calc-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 450px;
  box-shadow: var(--shadow-md);
}

.calc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .service-detail-block.reverse .service-detail-grid {
    direction: ltr;
  }
  
  .service-detail-image {
    height: 300px;
  }
  
  .panels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calc-container {
    grid-template-columns: 1fr;
  }
  
  .calc-image {
    display: none;
  }
  
  .full-process-grid {
    gap: 16px;
  }
  
  .fp-connector {
    display: none;
  }
  
  .fp-step {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .panels-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-results {
    grid-template-columns: 1fr;
  }
  
  .full-process-grid {
    justify-content: center;
  }
  
  .fp-step {
    min-width: 140px;
  }
}
