/* ═══ Product Modal — OwnerFlow Design System ═══ */

/* ── Overlay ── */
.service-of-modal {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(25, 31, 40, 0.55);
   backdrop-filter: blur(4px);
   -webkit-backdrop-filter: blur(4px);
   z-index: 1000;
   overflow-y: auto;
}

/* ── Container ── */
.service-of-modal-content {
   background-color: #fff;
   margin: 60px auto;
   max-width: 960px;
   border-radius: 20px;
   position: relative;
   animation: modalSlideUp 0.3s ease-out;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@keyframes modalSlideUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* ── Header ── */
.service-of-modal-header {
   padding: 28px 36px 24px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
   border-radius: 20px 20px 0 0;
   border-bottom: 1px solid #e5e8eb;
}

.service-of-modal-title {
   display: flex;
   align-items: center;
   gap: 16px;
}

.service-of-icon-wrapper {
   width: 52px;
   height: 52px;
   border-radius: 14px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 22px;
}
.service-of-icon-wrapper.blue {
   background: #e8f3ff;
   color: #3182f6;
}
.service-of-icon-wrapper.purple {
   background: #eeedfc;
   color: #423ae5;
}
.service-of-icon-wrapper.green {
   background: #e6f9f0;
   color: #00c471;
}
.service-of-icon-wrapper.orange {
   background: #fff4e6;
   color: #f59f00;
}
.service-of-icon-wrapper.red {
   background: #ffe8ea;
   color: #f04452;
}
.service-of-icon-wrapper.coral {
   background: #fff0ee;
   color: #ff6f61;
}

.service-of-modal-title h2 {
   font-size: 22px;
   font-weight: 700;
   color: #191f28;
   letter-spacing: -0.3px;
   margin: 0;
}

.service-of-close-button {
   background: rgba(255, 255, 255, 0.7);
   border: 1px solid #e5e8eb;
   width: 40px;
   height: 40px;
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: all 0.2s ease;
}
.service-of-close-button:hover {
   background-color: #fff;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.service-of-close-button i {
   font-size: 18px;
   color: #4e5968;
}

/* ── Body ── */
.service-of-modal-body {
   padding: 32px 36px;
}

/* ── Overview section ── */
.service-of-overview {
   background: #f7f8fa;
   border-radius: 14px;
   padding: 24px 28px;
   margin-bottom: 32px;
   border-left: 4px solid #3182f6;
}
.service-of-overview h3 {
   font-size: 15px;
   font-weight: 700;
   color: #3182f6;
   margin: 0 0 10px 0;
   letter-spacing: -0.2px;
}
.service-of-overview p {
   font-size: 14.5px;
   color: #4e5968;
   line-height: 1.7;
   margin: 0;
}

/* ── Details section ── */
.service-of-details h3 {
   font-size: 17px;
   font-weight: 700;
   color: #191f28;
   margin: 0 0 4px 0;
   letter-spacing: -0.2px;
}

/* ── Grid ── */
.service-of-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 16px;
   margin-top: 20px;
}

/* ── Item cards ── */
.service-of-item {
   padding: 22px 20px;
   background: #fff;
   border: 1px solid #e5e8eb;
   border-radius: 14px;
   transition: all 0.25s ease;
}
.service-of-item:hover {
   transform: translateY(-3px);
   border-color: #3182f6;
   box-shadow: 0 8px 24px rgba(49, 130, 246, 0.1);
}

.service-of-item h4 {
   font-size: 15px;
   font-weight: 700;
   color: #191f28;
   margin: 0 0 12px 0;
   letter-spacing: -0.2px;
}

.service-of-icon {
   width: 44px;
   height: 44px;
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 14px;
}
.service-of-icon i {
   font-size: 20px;
}
.service-of-icon.blue {
   background: #e8f3ff;
   color: #3182f6;
}
.service-of-icon.purple {
   background: #eeedfc;
   color: #423ae5;
}
.service-of-icon.green {
   background: #e6f9f0;
   color: #00c471;
}
.service-of-icon.orange {
   background: #fff4e6;
   color: #f59f00;
}
.service-of-icon.red {
   background: #ffe8ea;
   color: #f04452;
}
.service-of-icon.coral {
   background: #fff0ee;
   color: #ff6f61;
}

.service-of-feature-list {
   list-style: none;
   padding: 0;
   margin: 0;
}
.service-of-feature-list li {
   padding: 5px 0;
   color: #4e5968;
   font-size: 13.5px;
   position: relative;
   padding-left: 16px;
   line-height: 1.5;
}
.service-of-feature-list li::before {
   content: '';
   width: 5px;
   height: 5px;
   border-radius: 50%;
   background: #3182f6;
   position: absolute;
   left: 0;
   top: 11px;
}

/* ── Footer ── */
.service-of-modal-footer {
   padding: 20px 36px;
   display: flex;
   justify-content: flex-end;
   gap: 10px;
   background: #fff;
   border-top: 1px solid #e5e8eb;
   border-radius: 0 0 20px 20px;
}

.service-of-primary-button {
   background: #3182f6;
   color: white;
   border: none;
   padding: 12px 24px;
   border-radius: 12px;
   font-size: 15px;
   font-weight: 600;
   display: inline-flex;
   align-items: center;
   gap: 8px;
   cursor: pointer;
   transition: all 0.2s ease;
}
.service-of-primary-button:hover {
   background: #1b64da;
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(49, 130, 246, 0.3);
}

.service-of-secondary-button {
   background: #f7f8fa;
   color: #4e5968;
   border: 1px solid #e5e8eb;
   padding: 12px 24px;
   border-radius: 12px;
   font-size: 15px;
   font-weight: 600;
   display: inline-flex;
   align-items: center;
   gap: 8px;
   cursor: pointer;
   transition: all 0.2s ease;
}
.service-of-secondary-button:hover {
   background: #e8f3ff;
   color: #3182f6;
   border-color: #3182f6;
}

/* ═══ Responsive ═══ */
@media (max-width: 991px) {
   .service-of-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 768px) {
   .service-of-modal {
      padding: 0;
   }

   .service-of-modal-content {
      margin: 0;
      max-width: 100%;
      min-height: 100vh;
      border-radius: 0;
      display: flex;
      flex-direction: column;
   }

   .service-of-modal-header {
      padding: 16px 20px;
      position: sticky;
      top: 0;
      z-index: 10;
      border-radius: 0;
   }

   .service-of-modal-title {
      gap: 12px;
   }

   .service-of-icon-wrapper {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      font-size: 18px;
   }

   .service-of-modal-title h2 {
      font-size: 17px;
   }

   .service-of-close-button {
      width: 34px;
      height: 34px;
      border-radius: 8px;
   }

   .service-of-modal-body {
      padding: 20px 16px;
      flex: 1;
   }

   .service-of-overview {
      padding: 18px 20px;
      margin-bottom: 24px;
   }
   .service-of-overview p {
      font-size: 13.5px;
   }

   .service-of-grid {
      grid-template-columns: 1fr;
      gap: 10px;
   }

   .service-of-item {
      padding: 16px;
      border-radius: 12px;
   }

   .service-of-icon {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      margin-bottom: 10px;
   }
   .service-of-icon i {
      font-size: 17px;
   }

   .service-of-feature-list li {
      font-size: 13px;
      padding: 4px 0 4px 14px;
   }

   .service-of-modal-footer {
      padding: 14px 16px;
      position: sticky;
      bottom: 0;
      background: #fff;
      box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
      border-radius: 0;
   }

   .service-of-primary-button,
   .service-of-secondary-button {
      flex: 1;
      padding: 11px 16px;
      font-size: 14px;
      border-radius: 10px;
      justify-content: center;
   }
}
