/* ROOT WRAPPER - All styles scoped under this */
.sms-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

/* Single Service Page */
.sms-root .sms-single-service {
  max-width: 1200px;
  margin: 160px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  overflow: visible;
}

.sms-root .sms-main-content {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.sms-root .sms-service-title {
  font-size: 32px;
  margin-bottom: 20px;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sms-root .sms-service-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sms-root .sms-short-description {
  font-size: 17px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.7;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #0073aa;
}

.sms-root .sms-long-description {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
  padding: 25px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sms-root .sms-long-description h2,
.sms-root .sms-long-description h3 {
  margin-top: 25px;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.sms-root .sms-long-description p {
  margin-bottom: 15px;
}

.sms-root .sms-categories {
  margin-top: 25px;
  font-size: 14px;
  color: #888;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.sms-root .sms-categories a {
  color: #0073aa;
  text-decoration: none;
  margin-right: 5px;
  padding: 4px 10px;
  background: #f0f8ff;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 5px;
  transition: all 0.2s;
}

.sms-root .sms-categories a:hover {
  background: #0073aa;
  color: #fff;
}

/* Sidebar Packages */
.sms-root .sms-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.sms-root .sms-packages-box {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid #e8e8e8;
}

.sms-root .sms-package-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.sms-root .sms-tab-button {
  flex: 1;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  text-align: center;
  min-width: 90px;
  color: #666;
}

.sms-root .sms-tab-button:hover {
  color: #0073aa;
  background: #f8f9fa;
  border-radius: 6px 6px 0 0;
}

.sms-root .sms-tab-button.active {
  color: #0073aa;
  border-bottom-color: #0073aa;
  background: transparent;
}

.sms-root .sms-tab-content {
  display: none;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sms-root .sms-tab-content.active {
  display: block;
}

.sms-root .sms-package-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1a1a1a;
  text-align: center;
}

.sms-root .sms-package-price {
  font-size: 22px;
  font-weight: 500;
  color: #0073aa;
  margin-bottom: 15px;
  letter-spacing: -0.3px;
}

.sms-root .sms-package-delivery {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 6px;
  display: inline-block;
}

.sms-root .sms-package-delivery strong {
  color: #0073aa;
}

.sms-root .sms-package-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.sms-root .sms-package-features li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #444;
  position: relative;
  padding-left: 25px;
}

.sms-root .sms-package-features li:last-child {
  border-bottom: none;
}

.sms-root .sms-package-features li:before {
  content: '✓';
  color: #28a745;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 16px;
}

.sms-root .sms-package-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

/* Buttons - UPDATED FOR ELEMENTOR COMPATIBILITY */
.sms-root .sms-btn {
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  border: none;
  font-size: 12px;
}

/* Primary Button (Order Now) */
/* We removed !important from background so Elementor can override it */
.sms-root .sms-btn-primary {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.sms-root .sms-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  color: #fff;
}

/* Secondary Button (Contact Seller) */
/* We removed !important so Elementor can override it */
.sms-root .sms-btn-secondary {
  background: #fff;
  color: #0073aa;
  border: 2px solid #0073aa;
}
.sms-root .sms-btn-secondary:hover {
  background: #0073aa;
  color: #fff;
  transform: translateY(-2px);
}

/* Service Cards Grid - SUPER AGGRESSIVE FIXED */
.sms-root .sms-services-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 25px !important;
  margin-bottom: 40px !important;
  width: 100% !important;
  max-width: 100% !important;
  list-style: none !important;
  padding: 0 !important;
}

.sms-root .sms-service-card {
  background: #fff; /* Removed !important */
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  border: 1px solid #f0f0f0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.sms-root .sms-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.sms-root .sms-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f8f9fa;
  transition: transform 0.3s;
  display: block;
}

.sms-root .sms-service-card:hover .sms-card-image {
  transform: scale(1.05);
}

.sms-root .sms-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sms-root .sms-card-title {
  font-size: 16px;
  margin-bottom: 10px;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.4;
}

.sms-root .sms-card-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
}

.sms-root .sms-card-title a:hover {
  color: #0073aa;
}

.sms-root .sms-card-categories {
  font-size: 11px;
  color: #888;
  margin-bottom: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sms-root .sms-card-description {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
  flex: 1;
}

.sms-root .sms-card-price {
  font-size: 15px;
  font-weight: 700;
  color: #0073aa;
  margin-bottom: 15px;
  padding: 6px 0;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

/* Related Services */
.sms-root .sms-related-services {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.sms-root .sms-related-title {
  font-size: 28px;
  margin-bottom: 35px;
  text-align: center;
  color: #1a1a1a;
  font-weight: 600;
}

/* Archive Page */
.sms-root .sms-archive-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.sms-root .sms-archive-header {
  text-align: center;
  margin-bottom: 40px;
}

.sms-root .sms-archive-title {
  font-size: 36px;
  color: #333;
  margin-bottom: 15px;
}

.sms-root .sms-archive-description {
  font-size: 16px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.sms-root .sms-no-services {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #888;
}

/* Pagination */
.sms-root .navigation.pagination {
  margin-top: 40px;
  text-align: center;
}

.sms-root .navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.sms-root .navigation.pagination .page-numbers {
  padding: 10px 15px;
  background: #f5f5f5;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
}

.sms-root .navigation.pagination .page-numbers:hover,
.sms-root .navigation.pagination .page-numbers.current {
  background: #0073aa;
  color: #fff;
}

/* Popup Modal */
.sms-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.sms-popup-overlay.active {
  display: flex;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sms-popup-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.sms-popup-header {
  padding: 25px 30px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
  color: #fff;
  border-radius: 12px 12px 0 0;
}

.sms-popup-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.sms-popup-close {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.sms-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.sms-popup-body {
  padding: 30px;
}

.sms-form-group {
  margin-bottom: 20px;
}

.sms-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.sms-form-label .required {
  color: #dc3545;
  margin-left: 3px;
}

.sms-form-input,
.sms-form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
  box-sizing: border-box;
}

.sms-form-input:focus,
.sms-form-textarea:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.sms-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.sms-form-info {
  background: #f0f8ff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #0073aa;
}

.sms-form-info-title {
  font-weight: 600;
  color: #0073aa;
  margin-bottom: 5px;
  font-size: 14px;
}

.sms-form-info-text {
  font-size: 13px;
  color: #555;
  margin: 0;
}

.sms-form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.sms-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.sms-form-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.sms-form-message {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}

.sms-form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.sms-form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

.sms-login-notice {
  background: #fff3cd;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #ffc107;
}

.sms-login-notice p {
  margin: 0 0 15px;
  color: #856404;
}

.sms-login-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.sms-login-btn:hover {
  background: #005a87;
  color: #fff;
  transform: translateY(-2px);
}

/* Responsive - IMPROVED */
@media (max-width: 1200px) {
  .sms-root .sms-services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 968px) {
  .sms-root .sms-single-service {
    grid-template-columns: 1fr;
  }

  .sms-root .sms-sidebar {
    position: static;
  }

  .sms-root .sms-main-content {
    padding: 25px;
  }

  .sms-popup-modal {
    max-width: 95%;
  }

  .sms-popup-header {
    padding: 20px;
  }

  .sms-popup-body {
    padding: 20px;
  }

  .sms-root .sms-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .sms-root .sms-package-tabs {
    flex-direction: column;
  }

  .sms-root .sms-tab-button {
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .sms-root .sms-tab-button.active {
    border-left-color: #0073aa;
    border-bottom-color: transparent;
  }

  .sms-root .sms-services-grid {
    grid-template-columns: 1fr !important;
  }

  .sms-root .sms-service-title {
    font-size: 24px;
  }

  .sms-root .sms-package-price {
    font-size: 28px;
  }
}