/* ================================
   ENQUIRE MODAL – EXACT DESIGN MATCH
================================ */

/* Modal Overlay */
.enquire-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.75rem;
  overflow-y: auto;
  transition: opacity 0.5s ease;
}

.enquire-modal.hidden {
  display: none;
}

/* Modal Container */
.enquire-modal-content {
  position: relative;
  background: white;
  width: 100%;
  max-width: 56rem;
  max-height: 90vh;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(1);
  transition: all 0.3s ease;
}

/* Close Button */
.enquire-modal-close {
  position: absolute;
  top: 0.4rem !important;
  right: 0.5rem;
  z-index: 20;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  padding: 0.375rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: #374151;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enquire-modal-close:hover {
  background: white;
  color: black;
}

/* Modal Content Wrapper */
.enquire-modal-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* Left Side - Brand Section */
.enquire-modal-left {
  width: 100%;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  color: white;
}

/* Logo Section */
.enquire-modal-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-bottom: 1rem;
}

.enquire-modal-logo {
  width: 18.75rem;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
}

/* Features/Images Section */
.enquire-modal-features {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  /* border: 1px solid red; */
}

.enquire-modal-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  padding-right: 0.5rem;
}

.enquire-modal-feature-item:last-child {
  border-right: none;
  padding-right: 0;
}

.enquire-modal-feature-img {
  width: 6rem;
  height: 3.5rem;
  object-fit: contain;
  object-position: center;
}

/* Right Side - Form Section */
.enquire-modal-form {
  width: 100%;
  background: white;
  padding: 1rem;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Form Group */
.enquire-modal-form-group {
  position: relative;
  width: 100%;
  margin-bottom: 0;
}

/* Form Input */
.enquire-modal-input {
  width: 100%;
  height: 2.75rem;
  border-radius: 0.375rem;
  border: 2px solid;
  background: transparent;
  padding: 1rem 0.75rem 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: #1f2937;
  outline: none;
  transition: all 0.2s ease;
}

.enquire-modal-input::placeholder {
  color: transparent;
}

.enquire-modal-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Form Label - Floating Effect */
.enquire-modal-label {
  position: absolute;
  left: 0.75rem;
  top: -0.625rem;
  z-index: 10;
  padding: 0 0.25rem;
  font-size: 0.75rem;
  background: white;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s ease;
  pointer-events: none;
}

.enquire-modal-input:placeholder-shown ~ .enquire-modal-label {
  top: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
}

.enquire-modal-input:focus ~ .enquire-modal-label {
  top: -0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

/* Error Container */
.enquire-modal-error-space {
  min-height: 18px;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.enquire-modal-error-message {
  color: #ef4444;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}

.enquire-modal-error-message:not(:empty):before {
  content: "⚠";
}

/* Submit Button */
.enquire-modal-submit {
  width: 100%;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: all 0.2s ease;
}

.enquire-modal-submit:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}

.enquire-modal-submit:active {
  transform: scale(0.98);
}

/* ================================
   RESPONSIVE STYLES
================================ */

/* Small Devices (640px and up) */
@media (min-width: 640px) {
  .enquire-modal {
    padding: 1rem;
  }

  .enquire-modal-content {
    border-radius: 0.75rem;
  }

  .enquire-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .enquire-modal-close svg,
  .enquire-modal-close i {
    width: 1.5rem;
    height: 1.5rem;
  }

  .enquire-modal-left {
    padding: 2rem 1.5rem;
  }

  .enquire-modal-logo {
    width: 18rem;
    margin-bottom: 1rem;
  }

  .enquire-modal-features {
    gap: 0.75rem;
  }

  .enquire-modal-feature-img {
    width: 8rem;
    height: 4rem;
  }

  .enquire-modal-feature-item {
    padding-right: 0.75rem;
  }

  .enquire-modal-form {
    padding: 1.5rem;
  }

  .enquire-modal-input {
    height: 3rem;
    font-size: 1rem;
  }

  .enquire-modal-submit {
    font-size: 1rem;
    padding: 0.875rem;
  }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
  .enquire-modal {
    padding: 1.5rem;
  }

  .enquire-modal-logo {
    width: 20rem;
  }

  .enquire-modal-feature-img {
    width: 9rem;
    height: 5rem;
  }
}

/* Large Devices (1024px and up) - Side by Side Layout */
@media (min-width: 1024px) {
  .enquire-modal-wrapper {
    flex-direction: row;
    overflow: hidden;
  }

  .enquire-modal-left {
    width: 45%;
    padding: 2.5rem 2rem;
    min-height: auto;
    border-radius: 0.75rem 0 0 0.75rem;
  }

  .enquire-modal-logo-section {
    margin-bottom: 1.5rem;
  }

  .enquire-modal-logo {
    width: 18rem;
  }

  .enquire-modal-features {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
  }

  .enquire-modal-feature-item {
    flex: 1;
    padding: 0 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .enquire-modal-feature-item:last-child {
    padding-right: 0;
  }

  .enquire-modal-feature-img {
    width: 100%; /* Add this - crucial for equal stretching */
    max-width: 10rem; /* Slightly larger than height allows */
    height: 5rem;
    object-fit: contain;
    object-position: center;
  }

  .enquire-modal-form {
    width: 55%;
    padding: 2rem;
    overflow-y: auto;
    margin: 0;
    border-radius: 0 0.75rem 0.75rem 0;
  }

  /* Center form content vertically on desktop */
  .enquire-modal-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 1023px) {
  .enquire-modal-feature-img {
    width: 100% !important; /* Force equal width usage */
    max-width: 9rem;
    height: 5rem;
    object-fit: contain;
  }

  .enquire-modal-features {
    gap: 0.75rem;
  }

  .enquire-modal-feature-item {
    flex: 1;
    padding: 0 0.5rem;
  }
}

/* Extra Large Devices (1280px and up) */
@media (min-width: 1280px) {
  .enquire-modal-left {
    padding: 3rem 2.5rem;
  }

  .enquire-modal-form {
    padding: 2.5rem 3rem;
  }
}

/* Body scroll lock when modal is open */
body:has(.enquire-modal:not(.hidden)) {
  overflow: hidden;
}

/* Smooth animations */
.enquire-modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .enquire-modal {
    background: rgba(0, 0, 0, 0.8);
  }
}

/* Ensure proper stacking */
.enquire-modal-close {
  z-index: 1001;
}

/* Print styles */
@media print {
  .enquire-modal {
    display: none !important;
  }
}

/* Accessibility: Focus states */
.enquire-modal-input:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.enquire-modal-submit:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.enquire-modal-close:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Loading state for submit button */
.enquire-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.enquire-modal-submit:disabled:hover {
  transform: none;
}
