/* ==========================================================================
   MAA SARADA MARBLE - AUTO POPPING ENQUIRY FORM MODAL
   Matches the reference enquiry popup design with responsive layout & smooth animation
   ========================================================================== */

.enquiry-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.enquiry-modal-overlay.active {
  display: flex;
}

.enquiry-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.enquiry-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 32px 34px 34px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  z-index: 100000;
  box-sizing: border-box;
  animation: enquiryPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes enquiryPopIn {
  0% {
    opacity: 0;
    transform: scale(0.84) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Overlapping Circular Close Button at Top-Right Corner */
.enquiry-close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  background-color: #1a1a1a;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
  padding: 0;
  outline: none;
  z-index: 100001;
}

.enquiry-close-btn:hover {
  background-color: #000000;
  transform: scale(1.12);
}

.enquiry-close-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(82, 153, 45, 0.6);
}

/* Modal Title */
.enquiry-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 22px 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Form Layout */
.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enquiry-field-group {
  display: flex;
  flex-direction: column;
}

.enquiry-label {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 6px;
  line-height: 1.3;
}

.enquiry-required {
  color: #ef4444;
  margin-left: 2px;
  font-weight: 700;
}

/* Name Row (First / Last side by side) */
.enquiry-name-row {
  display: flex;
  gap: 14px;
  width: 100%;
}

.enquiry-name-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.enquiry-subtext {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 4px;
}

/* Inputs & Dropdown */
.enquiry-input,
.enquiry-select {
  width: 100%;
  padding: 10px 12px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 0.92rem;
  color: #1f2937;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.enquiry-input:hover,
.enquiry-select:hover {
  border-color: #d1d5db;
}

.enquiry-input:focus,
.enquiry-select:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #52992d;
  box-shadow: 0 0 0 3px rgba(82, 153, 45, 0.18);
}

.enquiry-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Submit Button */
.enquiry-submit-row {
  margin-top: 4px;
}

.enquiry-submit-btn {
  background-color: #52992d;
  color: #ffffff;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 26px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.enquiry-submit-btn:hover {
  background-color: #438023;
  box-shadow: 0 4px 12px rgba(82, 153, 45, 0.3);
}

.enquiry-submit-btn:active {
  transform: scale(0.98);
}

/* Success Confirmation State */
.enquiry-success-message {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 18px 20px;
  text-align: center;
  color: #166534;
  font-family: 'Poppins', sans-serif;
  margin-top: 10px;
  animation: enquiryPopIn 0.3s ease forwards;
}

.enquiry-success-message.active {
  display: block;
}

.enquiry-success-message i {
  font-size: 2rem;
  color: #52992d;
  margin-bottom: 8px;
  display: block;
}

.enquiry-success-message h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: #14532d;
}

.enquiry-success-message p {
  font-size: 0.88rem;
  margin: 0;
  color: #166534;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .enquiry-modal-card {
    padding: 24px 18px 20px;
    border-radius: 8px;
    max-height: 88vh;
    max-height: 88dvh;
  }

  .enquiry-close-btn {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .enquiry-modal-title {
    font-size: 1.55rem;
    margin-bottom: 16px;
  }

  .enquiry-name-row {
    flex-direction: column;
    gap: 10px;
  }
}
