/* ==============================================================================
   Cenmark Plastic - Enquiry Modal, WhatsApp Form & Contact Section Styles
   ============================================================================== */

/* Modal Backdrop & Container */
.enquiry-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 28, 48, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.enquiry-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.enquiry-modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(11, 60, 93, 0.35);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.enquiry-modal-overlay.active .enquiry-modal {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.enquiry-modal-header {
  background: linear-gradient(135deg, #0b3c5d 0%, #17527c 100%);
  color: #ffffff;
  padding: 24px 28px 20px;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.enquiry-modal-header h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.enquiry-modal-header p {
  font-size: 0.88rem;
  margin: 0;
  color: #d8e8f5;
  opacity: 0.95;
}

.enquiry-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

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

/* Modal Body */
.enquiry-modal-body {
  padding: 24px 28px 28px;
}

.enquiry-form-group {
  margin-bottom: 16px;
  position: relative;
}

.enquiry-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.enquiry-form-group label span {
  color: #e63946;
}

.enquiry-input-icon-wrap {
  position: relative;
}

.enquiry-input-icon-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c9ba5;
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.enquiry-input-icon-wrap textarea + i {
  top: 18px;
  transform: none;
}

.enquiry-control {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid #dce4ec;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  background-color: #fafcff;
  transition: all 0.25s ease;
  outline: none;
}

.enquiry-control:focus {
  border-color: #0b3c5d;
  background-color: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(11, 60, 93, 0.12);
}

.enquiry-control:focus + i,
.enquiry-input-icon-wrap:focus-within i {
  color: #0b3c5d;
}

textarea.enquiry-control {
  resize: vertical;
  min-height: 80px;
  padding-left: 40px;
}

/* Buttons in Modal */
.enquiry-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.enquiry-btn {
  flex: 1;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.enquiry-btn-submit {
  background: linear-gradient(135deg, #0b3c5d, #17527c);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(11, 60, 93, 0.28);
}

.enquiry-btn-submit:hover {
  background: linear-gradient(135deg, #08293f, #0f3d5e);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 60, 93, 0.35);
  color: #ffffff;
}

.enquiry-btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.enquiry-btn-whatsapp:hover {
  background: #1ebc59;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  color: #ffffff;
}

.enquiry-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* Floating Trigger Button */
.enquiry-floating-trigger {
  position: fixed;
  left: 20px;
  bottom: 30px;
  background: linear-gradient(135deg, #0b3c5d, #1a5f8a);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 10px 25px rgba(11, 60, 93, 0.35);
  cursor: pointer;
  z-index: 9999;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: cenmarkPulse 2.5s infinite;
}

.enquiry-floating-trigger:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 14px 30px rgba(11, 60, 93, 0.45);
  color: #ffffff;
  text-decoration: none;
}

@keyframes cenmarkPulse {
  0% { box-shadow: 0 0 0 0 rgba(11, 60, 93, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(11, 60, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 60, 93, 0); }
}

/* WhatsApp Screen-Centered Modal Overlay */
.whatsapp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 28, 48, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.whatsapp-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-modal-overlay.active .whatsapp-modal-card {
  transform: scale(1) translateY(0);
}

.whatsapp-modal-header {
  background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.whatsapp-header-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.whatsapp-header-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #ffffff;
  flex-shrink: 0;
}

.whatsapp-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.whatsapp-modal-header p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #e0f2fe;
  opacity: 0.95;
}

.whatsapp-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.whatsapp-modal-body {
  padding: 24px 26px 26px;
}

.whatsapp-modal-intro {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Success State Box */
.whatsapp-success-box {
  text-align: center;
  padding: 20px 10px;
  animation: fadeIn 0.4s ease;
}

.whatsapp-success-icon {
  font-size: 4rem;
  color: #22c55e;
  margin-bottom: 16px;
  animation: bounceCheck 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceCheck {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.whatsapp-success-box h4 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.whatsapp-success-box p {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Feedback Alert Banner */
.enquiry-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  margin-bottom: 14px;
  display: none;
  align-items: center;
  gap: 8px;
}

.enquiry-alert.show {
  display: flex;
}

.enquiry-alert.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.enquiry-alert.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==============================================================================
   Homepage Contact Section Styles
   ============================================================================== */
.home-contact-section {
  padding: 85px 0 90px;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  position: relative;
  overflow: hidden;
}

.home-contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0b3c5d, #25D366, #17527c);
}

.home-contact-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.home-contact-subtitle {
  color: #0b3c5d;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 8px;
  background: #e1eef8;
  padding: 4px 14px;
  border-radius: 20px;
}

.home-contact-title {
  font-size: 2.35rem;
  font-weight: 700;
  color: #0b3c5d;
  margin-bottom: 12px;
}

.home-contact-desc {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.6;
}

/* Contact Info Card */
.home-contact-info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 30px;
  box-shadow: 0 15px 35px rgba(11, 60, 93, 0.08);
  height: 100%;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-contact-info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b3c5d;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eef2f6;
}

.home-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.home-info-item:hover {
  background: #f0f7ff;
  transform: translateX(4px);
}

.home-info-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0b3c5d, #17527c);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.home-info-icon.wa {
  background: #25D366;
}

.home-info-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0b3c5d;
  margin: 0 0 3px;
}

.home-info-content p {
  margin: 0;
  font-size: 0.92rem;
  color: #475569;
}

.home-info-content a {
  color: #0b3c5d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.home-info-content a:hover {
  color: #17527c;
  text-decoration: underline;
}

.home-contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #edf2f7;
}

.home-contact-badge-item {
  background: #eef6fc;
  color: #0b3c5d;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Contact Form Card */
.home-contact-form-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 45px rgba(11, 60, 93, 0.1);
  border: 1px solid #e2e8f0;
  position: relative;
}

.home-contact-form-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0b3c5d;
  margin-bottom: 6px;
}

.home-contact-form-card p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .enquiry-modal {
    margin: 10px;
    max-height: 95vh;
  }
  .enquiry-modal-header {
    padding: 20px 20px 16px;
  }
  .enquiry-modal-body {
    padding: 18px 20px 22px;
  }
  .enquiry-btn-row {
    flex-direction: column;
  }
  .home-contact-title {
    font-size: 1.85rem;
  }
  .home-contact-form-card {
    padding: 26px 20px;
  }
  .home-contact-info-card {
    padding: 26px 20px;
  }
  .enquiry-floating-trigger {
    left: 15px;
    bottom: 20px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .whatsapp-quick-popup {
    right: 15px;
    bottom: 90px;
    width: calc(100vw - 30px);
    max-width: 320px;
  }
}
