html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

* {
  box-sizing: border-box;
}
/* =========================================================
   SERVICES PAGE – GLOBAL LAYOUT & GRID
   ========================================================= */

/* Page wrapper */
.services-page {
  background: #f7f9fc;
  padding-bottom: 60px;
}

/* =========================================================
   SERVICES HEADER WITH BACKGROUND
   ========================================================= */

.services-header {
  position: relative;
  height: 320px;
  background-image: url("/static/images/background_wallpapers/services_title.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 0; /* NO GAP */
}

.services-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.75)
  );
}

.services-header-content {
  position: relative;
  color: #fff;
  max-width: 900px;
  padding: 0 20px;
}

.services-header-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.services-header-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Tablet */
@media (max-width: 768px) {
  .services-header {
    height: 240px;
  }

  .services-grid {
    margin-top: 30px;
  }

  .services-page {
    padding-bottom: 60px;
  }

  .services-header-content h1 {
    font-size: 2.2rem;
  }

  .services-header-content p {
    font-size: 1rem;
  }
}

/* =========================================================
   SERVICES GRID (AUTO RESPONSIVE)
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 40px 20px;
  max-width: 1400px;   /* ADD THIS */
  margin: 0 auto;      /* CENTER IT */
  margin-top: 40px;
}

/* Large tablets / small laptops 
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}*/

/* Tablets 
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 30px;
  }
}*/

/* Mobile 
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
}*/

/* =========================================================
   SERVICE CARD
   ========================================================= */

.service-card {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.service-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
}

.service-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

/* =========================================================
   GENERIC MODAL (NON VC)
   ========================================================= */

.service-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-box {
  background: #ffffff;
  padding: 30px;
  width: 90%;
  max-width: 520px;
  border-radius: 16px;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 24px;
  cursor: pointer;
}

/* =========================================================
   VISITING CARD – OVERLAY & PANEL SHELL ONLY
   ========================================================= */

.vc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: none;
}

.vc-panel {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  background: #ffffff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
}

.vc-panel.open {
  right: 0;
}

/* Large screens */
@media (min-width: 1600px) {
  .vc-panel {
    width: 460px;
  }
}

/* =========================================================
   GLOBAL SERVICE PANELS LAYOUT
   ========================================================= */

[class$="-panel"] {
  position: fixed;
  top: 0;
  right: -100%;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: #fff;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

@media (max-width: 768px) {
  [class$="-panel"] {
    width: 100%;
    right: -100%;
  }
}

/* =========================================================
   RESPONSIVE VC PANEL WIDTHS
   ========================================================= */

@media (max-width: 640px) {
  .vc-panel {
    width: 100%;
    right: -100%;
    border-radius: 0;
  }

  .services-grid {
    padding: 0 20px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .vc-panel {
    width: 85%;
    right: -85%;
  }
}

@media (min-width: 1600px) {
  .vc-panel {
    width: 460px;
  }
}

/* =========================================================
   VC FORM ELEMENTS (INPUTS, LABELS)
   ========================================================= */

.vc-body label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: #333;
}

.vc-body input[type="text"],
.vc-body input[type="tel"],
.vc-body input[type="email"],
.vc-body input[type="date"],
.vc-body input[type="time"],
.vc-body input[type="number"],
.vc-body textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vc-body input:focus,
.vc-body textarea:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

/* =========================================================
   VC ERROR MESSAGES
   ========================================================= */
.vc-body input.error-input {
  border-color: #d93025;
}

/* =========================================================
   VC RADIO GROUP
   ========================================================= */

.vc-radio {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.vc-radio label {
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}

/* =========================================================
   VC COPIES COUNTER
   ========================================================= */

.vc-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.vc-counter button {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

.vc-counter input {
  width: 70px;
  text-align: center;
}

@media (max-width: 640px) {
  .vc-body {
    padding: 16px;
  }

  .vc-body label {
    font-size: 13px;
  }
}

/* Hide errors by default */
.vc-body .error {
  display: none;
  font-size: 12px;
  color: #d93025;
  margin-top: 4px;
}

/* FORCE HIDE VC ERRORS INITIALLY */
/* ERROR TEXT */
.vc-step .error {
  display: none;
  color: #d93025;
  font-size: 12px;
  margin-top: 4px;
}

/* SHOW ERROR */
.vc-step .error.show {
  display: block;
}

/* ===============================
   VC MODERN TOGGLE BUTTONS
================================= */

.vc-toggle-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.vc-toggle {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.vc-toggle:hover {
  border-color: #2563eb;
}

.vc-toggle.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

body.panel-open {
  overflow: hidden;
}