/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(255, 255, 255);
  z-index: 999;
  display: none;
}

body.modal-open {
  overflow: hidden;
}

/* .modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  display: none;
  width: 800px;
  height: 90%;
  z-index: 1000;
  gap: 30px;
  animation: fadeInQuote 0.3s ease;
} */

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  display: none;
  width: 800px;
  height: 90%;
  z-index: 1000;
  gap: 30px;
  animation: fadeInQuote 0.3s ease;
  flex-wrap: wrap;
}

@keyframes fadeInQuote {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #d40000;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  text-align: center;
  line-height: 30px;
}

.close-btn:hover {
  background: #b30000;
}

/* FORM AND INFO STYLES */
.form-container,
.info-container {
  flex: 1;
  padding: 20px;
}

.info-container {
  border-left: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  font-size: 16px;
  transition: border-bottom 0.3s ease;
  outline: none;
}

input:focus,
textarea:focus {
  border-bottom: 2px solid #d40000;
}

.btn {
  background: #d40000;
  color: white;
  padding: 12px;
  border: none;
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
  margin-top: 12px;
}

.btn:hover {
  background: #b30000;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid #ddd;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  border-radius: 5px;
}

.info-box i {
  font-size: 24px;
  color: #d40000;
}

h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

/* OPEN BUTTON */
.open-btn {
  padding: 12px 24px;
  background: #d40000;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.open-btn:hover {
  background: #b30000;
}

/* Notification Modal Styling */
.notification-modal {
  display: none;
  position: fixed;
  margin-top: 50px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  padding: 16px;
  z-index: 9999;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-size: 16px;
  font-family: Arial, sans-serif;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

.notification-modal.success {
  background-color: #4caf50;
}

.notification-modal.error {
  background-color: #f44336;
}

.notification-content h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.notification-content p {
  margin: 4px 0 0;
}

@media screen and (max-width: 768px) {
  .modal {
    width: 80%;
    height: 80%;
    padding: 16px;
    flex-direction: column;
    gap: 20px;
  }

  .form-container,
  .info-container {
    padding: 0;
    width: 100%;
    border: none;
  }

  .info-text h2,
  .info-text p {
    margin: 0;
    font-size: 1.1rem;
  }

  .info-container {
    margin-top: 20px;
    overflow: auto;
  }

  .close-btn {
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 24px;
  }
}

@media screen and (max-width: 480px) {
  .modal {
    width: 95%;
    padding: 12px;
    gap: 15px;
  }

  h2 {
    font-size: 20px;
  }

  input,
  textarea {
    font-size: 14px;
    padding: 10px;
  }

  .btn {
    font-size: 14px;
    padding: 10px;
  }

  .info-box {
    padding: 10px;
    font-size: 14px;
  }

  .info-box i {
    font-size: 20px;
  }
}

/* SERVICES MODALS */

/* Overlay background */
.service-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(255, 255, 255);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Modal container */
.service-modal {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  width: 1000px;
  max-width: 100%;
  height: 550px;
  gap: 20px;
  overflow: hidden;
  position: relative;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #d40000;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  text-align: center;
  line-height: 30px;
}

.close-btn:hover {
  background: #b30000;
}

/* ✅ Fix scroll issue */
.service-modal {
  overflow-y: auto;
}

.service-carousel-container {
  width: 50%;
  height: 100%;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Main Carousel */
.service-carousel {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
}

.service-carousel-main {
  width: 100%;
  height: 400px;
}

.service-carousel-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Feature Images Carousel */
.service-carousel-features {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  width: 100%;
  white-space: nowrap;
  scroll-behavior: smooth;

  -webkit-overflow-scrolling: touch;
}

.service-carousel-item {
  flex-shrink: 0;
  width: 100px;
  height: 90px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}

.service-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-container {
  width: 50%;
  padding: 20px;
  overflow-y: auto;
  text-align: left;
  max-height: 100%;
}

.text-container h2 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: bold;
}

.text-container p {
  font-size: 18px;
  color: #333;
}

/* Feature list */
.features h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.advantages-list li {
  list-style: none;
}

.advantages-list h4 {
  font-size: 1rem;
  margin-bottom: 2px;
  font-weight: bold;
}

.advantages-list p {
  font-size: 0.8rem;
  color: #666;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .service-modal {
    flex-direction: column;
    width: 90%;
    height: auto;
    max-height: 90vh;
    padding: 15px;
    gap: 15px;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }

  .service-modal-overlay {
    justify-content: center;
    align-items: center;
  }

  .service-carousel-container {
    width: 100%;
    height: auto;
  }

  .service-carousel-main {
    height: 250px;
  }

  .service-carousel-features {
    overflow-x: auto;
  }

  .service-carousel-item {
    width: 80px;
    height: 70px;
  }

  .text-container {
    width: 100%;
    padding: 10px;
    overflow-y: auto;
  }

  .text-container h2 {
    font-size: 20px;
  }

  .text-container p {
    font-size: 16px;
  }

  .advantages-list h4 {
    font-size: 0.9rem;
  }

  .advantages-list p {
    font-size: 0.75rem;
  }
}

/* HARDWARE MODALS */

#hardwareImage {
  width: 55%;
  height: 80vh;
  object-fit: contain;
}

@media screen and (max-width: 768px) {
  #hardwareImage {
    width: 90%;
    height: auto;
    max-height: 60vh;
  }
}

@media screen and (max-width: 480px) {
  #hardwareImage {
    width: 100%;
    height: auto;
    max-height: 50vh;
  }
}
