/* ============================================
   SERVICES MODAL STYLES
   ============================================ */

/* Modal Container */
.services-modal {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99999 !important;
  padding: 20px !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  transition:
    visibility 0.3s,
    opacity 0.3s !important;
  overflow: visible !important;
}

.services-modal.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.services-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(5px) !important;
  z-index: 9998 !important;
  animation: fadeIn 0.3s ease-out;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Modal Content */
.services-modal-content {
  position: absolute !important;
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 700px;
  width: calc(100% - 80px) !important;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
  z-index: 99999 !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  box-sizing: border-box;
}

/* Close Button */
.services-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
}

.services-modal-close:hover {
  background: #f0f0f0;
  color: #000;
  transform: rotate(90deg);
}

/* Modal Titles */
.services-modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: #015f47;
  margin-bottom: 8px;
  margin-top: 0;
}

.services-modal-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 30px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Service Checkbox */
.service-checkbox {
  position: relative;
  display: block;
  cursor: pointer;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
  user-select: none;
  background: #f9f9f9;
}

.service-checkbox:hover {
  border-color: #4fe3b0;
  background: #f0faf7;
  transform: translateY(-2px);
}

.service-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.service-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #25d366;
  border-color: #25d366;
}

.service-checkbox input[type="checkbox"]:checked + .checkmark::after {
  display: block;
}

.service-checkbox input[type="checkbox"]:checked ~ .service-label {
  color: #015f47;
}

/* Checkmark */
.checkmark {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background: white;
  border: 2px solid #25d366;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Service Label */
.service-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 50px;
  transition: color 0.2s ease;
}

.service-emoji {
  font-size: 24px;
}

.service-name {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

/* Form Actions */
.services-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .services-form-actions {
    flex-direction: column;
  }

  .services-form-actions button {
    width: 100%;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar Styling */
.services-modal-content::-webkit-scrollbar {
  width: 8px;
}

.services-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.services-modal-content::-webkit-scrollbar-thumb {
  background: #25d366;
  border-radius: 10px;
}

.services-modal-content::-webkit-scrollbar-thumb:hover {
  background: #20ba5a;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .services-modal-content {
    padding: 30px 20px;
    border-radius: 16px;
    max-height: 85vh;
    width: calc(100% - 40px) !important;
  }

  .services-modal-title {
    font-size: 1.5rem;
  }

  .services-modal-subtitle {
    font-size: 0.9rem;
  }

  .services-grid {
    gap: 12px;
  }

  .service-checkbox {
    padding: 12px;
  }

  .service-emoji {
    font-size: 20px;
  }

  .service-name {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .services-modal {
    padding: 10px !important;
  }

  .services-modal-content {
    padding: 20px 15px;
    border-radius: 12px;
    max-height: 90vh;
    width: calc(100% - 30px) !important;
    max-width: 100%;
  }

  .services-modal-title {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }

  .services-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .service-checkbox {
    padding: 10px;
    border-radius: 10px;
  }

  .service-label {
    gap: 8px;
    padding-left: 45px;
  }

  .service-emoji {
    font-size: 18px;
  }

  .service-name {
    font-size: 0.9rem;
  }

  .checkmark {
    width: 18px;
    height: 18px;
    left: 12px;
  }

  .checkmark::after {
    left: 2px;
    width: 4px;
    height: 8px;
    border-width: 0 1.5px 1.5px 0;
  }

  .services-modal-close {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 24px;
  }

  .services-form-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .services-form-actions button {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .services-modal-content {
    padding: 15px 12px;
  }

  .services-modal-title {
    font-size: 1.1rem;
  }

  .services-modal-subtitle {
    font-size: 0.8rem;
  }

  .service-checkbox {
    padding: 8px;
  }

  .service-label {
    gap: 6px;
  }

  .service-name {
    font-size: 0.85rem;
  }
}

/* Button Styles for Modal */
.btn {
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.btn-primary {
  background: #25d366;
  color: white;
}

.btn-primary:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  background: #d0d0d0;
  transform: translateY(-2px);
}
