/* Root + base */
:root {
  --brand: #004aad;
  --btn: #0077ff;
  --btn-hover: #0056b3;
  --card-title: #1a237e;
  --text: #374151;
  --muted: #444;
  --price: #00b894;
  --success: #388e3c;
  --shadow-lg: 0 6px 32px 0 #b3c6e0cc;
  --shadow-sm: 0 2px 12px #0077ff33;
  --shadow-img: 0 8px 24px rgba(0, 0, 0, 0.18); /* stronger than before */
  /* border similar to service.css card images */
  --image-border: #f1f5f9;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

/* Back button */
.back-btn {
  display: inline-block;
  margin: 32px auto 18px auto;
  background: var(--btn);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 32px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
}
.back-btn:hover,
.back-btn:focus {
  background: var(--btn-hover);
  color: #fff;
  transform: scale(1.05);
}

/* Card */
.service-detail-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  width: 80%;
  max-width: 1100px;
  margin: 0 auto 32px auto;
  padding: 32px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* BIGGER image + border + shadow (no class needed; uses your existing <img ... />) */
.service-detail-card img {
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 18px;
  background: #fff;             /* white background like cards */
  border: 4px solid var(--image-border); /* light border like service.css */
  box-shadow: var(--shadow-img);          /* stronger, softer spread */
  width: inherit;
}

/* Title */
.service-detail-card h1 {
  color: var(--card-title);
  margin: 10px 0 8px 0;
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
}

.service-price {
  color: #fff;
  background: var(--price);
  border-radius: 8px;
  padding: 7px 22px;
  font-size: 1.1rem;
  margin: 12px 0 18px 0;
  font-weight: 600;
  box-shadow: 0 2px 8px #00b89433;
}

.service-status {
  font-size: 1rem;
  color: var(--success);
  margin-bottom: 16px;
  font-weight: 500;
}

.service-desc {
  color: var(--text);
  font-size: 1.08rem;
  margin-bottom: 18px;
  text-align: center;
  line-height: 1.6;
}

.error-message {
  color: #e74c3c;
  font-size: 1.2em;
  text-align: center;
  margin: 30px 0;
}

/* Feature section */
.feature-section {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 38px;
}

.feature-icon {
  background: var(--brand);
  border-radius: 14px;
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  color: #fff;
  font-size: 2.3rem;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

.feature-text {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .service-detail-card { width: 90%; }
  /* Tablet image size (still larger than original, but balanced) */
  .service-detail-card img {
    width: 180px;
    height: 180px;
    border-width: 4px;
  }
}

@media (max-width: 600px) {
  .service-detail-card {
    padding: 18px 6vw;
    width: 96%;
    max-width: 99vw;
  }
  .service-detail-card h1 { font-size: 1.25rem; }

  /* Mobile image size (bigger than your old 100px, but fits nicely) */
  .service-detail-card img {
    width: 160px;         
    height: 160px;         
    border-width: 3px;
  }

  .service-price {
    font-size: 1rem;
    padding: 6px 14px;
  }

  .feature-item {
    gap: 18px;
    margin-bottom: 28px;
  }
  .feature-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
  }
  .feature-icon i { font-size: 1.8rem; }
  .feature-title { font-size: 1.1rem; }
  .feature-text { font-size: 0.98rem; }
}

@media (max-width: 400px) {
  .service-detail-card { padding: 10px 2vw; }
}
