/* ==================== Root Variables (Same as jadarah-hero) ==================== */
:root {
  --primary-color: #E86C4F;
  --secondary-color: #1A2B49;
  --accent-color: #0099CC;
  --success-color: #00CBA9;
  --light-bg: #F8F9FA;
  --white: #FFFFFF;
  --text-dark: #2C3E50;
  --text-light: #6C757D;
}

/* ==================== Global Styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--light-bg);
}

/* ==================== Hero Section ==================== */
.hero-section {
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Decorative Background Hexagons */
.hex-decoration {
  position: absolute;
  opacity: 0.04;
  background: var(--accent-color);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: float 20s infinite ease-in-out;
}

.hex-1 {
  width: 200px;
  height: 230px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.hex-2 {
  width: 150px;
  height: 173px;
  top: 60%;
  left: 10%;
  animation-delay: 5s;
}

.hex-3 {
  width: 180px;
  height: 207px;
  top: 20%;
  right: 8%;
  animation-delay: 3s;
}

.hex-4 {
  width: 120px;
  height: 138px;
  bottom: 10%;
  right: 15%;
  animation-delay: 7s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(5deg); }
  50% { transform: translateY(-50px) rotate(-5deg); }
  75% { transform: translateY(-30px) rotate(3deg); }
}

.hero-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(0, 203, 169, 0.1), rgba(232, 108, 79, 0.1));
  color: var(--primary-color);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 2px solid var(--accent-color);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

.hero-logo {
  height: 70px;
  width: auto;
  margin-bottom: 1.25rem;
}

/* ==================== Selection Bar (Inside Container) ==================== */
.selection-bar-wrapper {
  background: var(--white);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0,0,0,0.05);
  display: none;
  animation: fadeInDown 0.3s ease;
}

.selection-bar-wrapper.visible {
  display: block;
}

@keyframes fadeInDown {
  from { 
    opacity: 0; 
    transform: translateY(-10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.selection-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.selection-count {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
}

.count-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.request-btn {
  background: linear-gradient(135deg, var(--primary-color), #ff8a6b);
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 4px 15px rgba(232, 108, 79, 0.25);
}

.request-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(232, 108, 79, 0.45);
}

/* ==================== Main Content ==================== */
.main-content {
  padding: 2rem 0 3rem;
}

/* ==================== Path Card ==================== */
.path-card {
  background: var(--white);
  border-radius: 20px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.path-card:hover {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.path-card.selected {
  border-color: var(--accent-color);
  box-shadow: 0 10px 35px rgba(0, 153, 204, 0.15);
}

.path-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.path-header:hover {
  background: rgba(0, 153, 204, 0.03);
}

.path-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.path-icon.path-1 {
  background: linear-gradient(135deg, var(--primary-color), #ff8a6b);
  color: var(--white);
}

.path-icon.path-2 {
  background: linear-gradient(135deg, var(--accent-color), #00d4ff);
  color: var(--white);
}

.path-icon.path-3 {
  background: linear-gradient(135deg, var(--success-color), #00e6c3);
  color: var(--white);
}

.path-details h3 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.path-details p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.select-all-btn {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Cairo', sans-serif;
  white-space: nowrap;
}

.select-all-btn:hover,
.select-all-btn.active {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 153, 204, 0.3);
}

.toggle-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.path-card.expanded .toggle-icon {
  transform: rotate(180deg);
  background: var(--accent-color);
  color: var(--white);
}

/* ==================== Services Grid ==================== */
.services-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.path-card.expanded .services-container {
  max-height: 1000px;
}

.services-grid {
  padding: 0 1.5rem 1.5rem;
}

/* ==================== Service Item ==================== */
.service-item {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item:hover::before {
  opacity: 1;
}

.service-item:hover {
  background: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-item.selected {
  background: linear-gradient(135deg, rgba(0, 203, 169, 0.05), rgba(0, 153, 204, 0.05));
  border-color: var(--success-color);
  box-shadow: 0 10px 30px rgba(0, 203, 169, 0.2);
}

.service-item.selected::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--success-color), var(--accent-color));
}

.service-select-area {
  cursor: pointer;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Service Icon */
.service-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  position: relative;
  transition: all 0.3s ease;
  background: var(--white);
  border: 2px solid;
}

.service-icon-wrapper.path-1 {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.service-icon-wrapper.path-2 {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.service-icon-wrapper.path-3 {
  border-color: var(--success-color);
  color: var(--success-color);
}

.service-item:hover .service-icon-wrapper.path-1 {
  background: linear-gradient(135deg, var(--primary-color), #ff8a6b);
  color: var(--white);
}

.service-item:hover .service-icon-wrapper.path-2 {
  background: linear-gradient(135deg, var(--accent-color), #00d4ff);
  color: var(--white);
}

.service-item:hover .service-icon-wrapper.path-3 {
  background: linear-gradient(135deg, var(--success-color), #00e6c3);
  color: var(--white);
}

.service-item:hover .service-icon-wrapper {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-checkbox {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: var(--white);
  z-index: 2;
}

.service-item:hover .service-checkbox {
  border-color: var(--accent-color);
}

.service-item.selected .service-checkbox {
  background: linear-gradient(135deg, var(--success-color), var(--accent-color));
  border-color: var(--success-color);
  box-shadow: 0 4px 12px rgba(0, 203, 169, 0.35);
}

.service-checkbox i {
  color: var(--white);
  font-size: 0.8rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.service-item.selected .service-checkbox i {
  opacity: 1;
  transform: scale(1);
}

.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-content h4 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.service-item:hover .service-content h4 {
  color: var(--primary-color);
}

.service-content p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
}

/* Service Actions */
.service-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Service Info Button */
.service-info-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(0, 153, 204, 0.08), rgba(0, 203, 169, 0.08));
  border: none;
  color: var(--accent-color);
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
}

.service-info-btn:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 153, 204, 0.25);
}

.service-add-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  border: none;
  border-radius: 10px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.service-add-btn:hover {
  background: linear-gradient(135deg, var(--success-color), var(--accent-color));
  color: var(--white);
  transform: scale(1.08);
}

.service-item.selected .service-add-btn {
  background: var(--success-color);
  color: var(--white);
}

/* ==================== Service Details Modal ==================== */
.service-details-modal {
  max-width: 520px;
}

.service-details-header {
  padding: 2rem 2rem 1.5rem;
}

.service-modal-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0  1rem;
  font-size: 1.75rem;
  color: var(--white);
}

.service-detail-section {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.detail-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-color), var(--success-color));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.detail-content h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.detail-content p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.detail-content ul {
  margin: 0;
  padding-right: 1.25rem;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
}

.detail-content li {
  margin-bottom: 0.25rem;
}

.select-service-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-color), var(--success-color));
  color: var(--white);
  border: none;
  padding: 0.9rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  margin-top: 0.5rem;
}

.select-service-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 153, 204, 0.3);
}

.select-service-btn.selected {
  background: var(--success-color);
}
/*
 ==================== Modal Base ==================== */
.modal-overlay {
    display: none;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto !important;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999 !important;
    /* align-items: center; */
    justify-content: center !important;
    padding: 20px !important;
}

.modal-overlay.visible {
  display: flex;
}
.model-body2 {
    padding: 1px 2rem 26px 2rem !important;
}
.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100% !important;
    position: absolute !important;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  padding: 2rem;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.modal-close:hover {
  background: rgba(255,255,255,0.35);
  transform: rotate(90deg);
}

.modal-header h2 {
  color: var(--white);
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-header p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 0.95rem;
}

.modal-body {
  padding: 1.5rem;
}

/* ==================== Form Styles ==================== */
.selected-services-summary {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.selected-services-summary h4 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-tag {
  background: var(--white);
  border: 1px solid rgba(0, 153, 204, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.form-group label .required {
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  background: var(--light-bg);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 153, 204, 0.1);
}

.form-control::placeholder {
  color: #94a3b8;
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), #ff8a6b);
  color: var(--white);
  border: none;
  padding: 0.9rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Cairo', sans-serif;
  margin-top: 1rem;
  box-shadow: 0 6px 20px rgba(232, 108, 79, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232, 108, 79, 0.4);
}

/* ==================== Success State ==================== */
.success-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  display: none;
}

.success-state.visible {
  display: block;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--success-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--white);
  font-size: 2rem;
  box-shadow: 0 12px 35px rgba(0, 203, 169, 0.35);
}

.success-state h3 {
  color: var(--secondary-color);
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.success-state p {
  color: var(--text-light);
  margin: 0 0 1.25rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.close-success-btn {
  background: var(--light-bg);
  color: var(--secondary-color);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.close-success-btn:hover {
  background: var(--secondary-color);
  color: var(--white);
}

/* ==================== Footer ==================== */
.page-footer {
  background: var(--secondary-color);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 1.5rem;
}

.page-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* ==================== Responsive Styles ==================== */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 60px 0 30px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-container {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 50px 0 25px;
  }
  
  .hero-title {
    font-size: 1.65rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .hero-logo {
    height: 55px;
  }
  
  .path-header {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  
  .path-info {
    width: 100%;
  }
  
  .path-actions {
    width: 100%;
    justify-content: space-between !important;
  }
  
  .path-icon {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }
  
  .path-details h3 {
    font-size: 1.05rem;
  }
  
  .services-grid {
    padding: 0 1rem 1rem;
  }
  
  .selection-bar-wrapper {
    padding: 0.85rem 1rem;
  }
  
  .selection-bar-inner {
    justify-content: center;
    text-align: center;
  }
  
  .modal-content {
    border-radius: 18px;
    margin: 0.5rem;
  }
  
  .modal-header {
    padding: 1.5rem;
  }
  
  .modal-body {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .hero-container {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
  }
  
  .hero-title {
    font-size: 1.4rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  .hero-logo {
    height: 45px;
  }
  
  .path-header {
    padding: 0.85rem;
  }
  
  .path-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  
  .path-details h3 {
    font-size: 0.95rem;
  }
  
  .path-details p {
    font-size: 0.8rem;
  }
  
  .select-all-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
  }
  
  .services-grid {
    padding: 0 0.85rem 0.85rem;
  }
  
  .service-item {
    padding: 0.85rem;
  }
  
  .service-content h4 {
    font-size: 0.9rem;
  }
  
  .service-content p {
    font-size: 0.8rem;
  }
  
  .service-info-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
}
