/* ======= {PREMIUM CONTACT PAGE ANIMATIONS & POLISH} ======= */

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(163, 5, 2, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(163, 5, 2, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(163, 5, 2, 0);
  }
}

/* Global Premium Utilities */
.animate_fade_up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0; /* Start hidden */
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}

/* CONTACT HERO SECTION (Replacing Common Banner) */
.contact_hero_section {
  position: relative;
  min-height: 550px; /* Increased height to prevent overlap */
  background:
    linear-gradient(
      135deg,
      rgba(14, 18, 59, 0.95) 0%,
      rgba(163, 5, 2, 0.9) 100%
    ),
    url("../images/bg/common-banner-bg.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible; /* Allow overlapped content */
  margin-top: -100px; /* Offset for fixed header */
  padding-top: 140px; /* More padding top */
  padding-bottom: 120px; /* Space for the floating cards */
}

.contact_hero_content h1 {
  font-size: 56px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.contact_hero_content p {
  color: #f0f0f0;
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* BREADCRUMB OVERRIDES FOR DARK HERO */
.contact_hero_content .common_banner_bottom_content {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Fix divider lines color in breadcrumb */
.contact_hero_content .common_divider::before,
.contact_hero_content .common_divider::after {
  background: rgba(255, 255, 255, 0.5) !important;
}

.contact_hero_content .text_home a {
  color: var(--white) !important;
  font-weight: 600;
  text-decoration: none;
}
.contact_hero_content .text_home .icon i {
  color: var(--white);
}

/* HERO FEATURES (Floating Cards) */
.hero_features_wrapper {
  margin-top: -100px; /* Pull up into the hero */
  position: relative;
  z-index: 10;
  margin-bottom: 80px;
}

.hero_feature_card {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: 0.4s all cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-bottom: 4px solid transparent;
  height: 100%;
}

.hero_feature_card:hover {
  transform: translateY(-15px);
  border-bottom-color: var(--primary);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hero_feature_icon {
  width: 70px;
  height: 70px;
  background: rgba(163, 5, 2, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  transition: 0.4s all ease;
}

.hero_feature_card:hover .hero_feature_icon {
  background: var(--primary);
  color: var(--white);
  transform: rotateY(360deg);
}

.hero_feature_card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.hero_feature_card p {
  color: var(--ashh);
  font-size: 14px;
  margin: 0;
}

/* PREMIUM FORM SECTION */
.contact_premium_wrapper {
  padding: 50px 0 100px;
  background: var(--off-white);
  position: relative;
}

/* Left Side - Info & Addresses */
.contact_left_content h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
}

.contact_left_content > p {
  color: var(--ashh);
  margin-bottom: 40px;
  font-size: 16px;
}

.address_cards_stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.address_card_premium {
  background: var(--white);
  padding: 25px;
  border-radius: 15px;
  border-left: 5px solid var(--secondary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s all ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.address_card_premium:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary);
}

.address_card_premium::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: skewX(-20deg) translateX(150%);
  transition: 0.5s;
}

.address_card_premium:hover::after {
  transform: skewX(-20deg) translateX(-250%);
  transition: 0.7s;
}

.ac_header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.ac_icon {
  width: 40px;
  height: 40px;
  background: var(--off-white);
  border-radius: 10px;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.address_card_premium:hover .ac_icon {
  background: var(--primary);
  color: var(--white);
}

.ac_header h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
}

.address_card_premium p {
  color: var(--ashh);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  padding-left: 55px; /* Indent to align with text header */
}

/* Right Side - Form */
.contact_form_box_premium {
  background: var(--white);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  position: relative;
  border-top: 5px solid var(--primary);
}

.contact_form_box_premium h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 30px;
  text-align: center;
}

/* Floating Label Inputs */
.premium_input_group {
  position: relative;
  margin-bottom: 25px;
}

.premium_input_group input,
.premium_input_group textarea,
.premium_input_group select {
  width: 100%;
  padding: 15px 20px;
  padding-left: 50px; /* Space for icon */
  border: 1px solid #eee;
  background: #fdfdfd;
  border-radius: 10px;
  font-size: 15px;
  transition: 0.3s;
  color: var(--secondary);
  outline: none;
}

.premium_input_group textarea {
  height: 140px;
  resize: none;
}

.premium_input_group .icon {
  position: absolute;
  left: 20px;
  top: 18px;
  color: #bbb;
  font-size: 18px;
  transition: 0.3s;
  pointer-events: none;
}

.premium_input_group input:focus,
.premium_input_group textarea:focus,
.premium_input_group select:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 5px 15px rgba(163, 5, 2, 0.08);
}

.premium_input_group input:focus + .icon,
.premium_input_group textarea:focus + .icon,
.premium_input_group select:focus + .icon {
  color: var(--primary);
}

/* Submit Button */
.submit_btn_glow {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.4s all ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.submit_btn_glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--secondary);
  z-index: -1;
  transition: 0.4s all ease;
}

.submit_btn_glow:hover::before {
  width: 100%;
}

.submit_btn_glow:hover {
  box-shadow: 0 10px 25px rgba(20, 19, 59, 0.3);
  transform: translateY(-3px);
  color: var(--white); /* Ensure text stays white */
}

/* ============ [ CHAT BOT STYLES ] ============ */
.chat_bot_trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 26px; /* Chat icon size */
  box-shadow: 0 10px 30px rgba(163, 5, 2, 0.5);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse 2.5s infinite;
  border: none;
  outline: none;
}

.chat_bot_trigger:hover {
  transform: scale(1.1);
  background: var(--secondary);
  box-shadow: 0 15px 40px rgba(20, 19, 59, 0.6);
  color: var(--white);
}

.chat_window_container {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 360px;
  height: 500px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom right;
}

.chat_window_active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chat_header {
  background: linear-gradient(135deg, var(--primary) 0%, #d90a07 100%);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  box-shadow: 0 5px 15px rgba(163, 5, 2, 0.2);
}

.chat_header_info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot_avatar {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
}

.chat_title h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--white);
}

.chat_title span {
  font-size: 12px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat_title span::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  display: block;
}

.close_chat_btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.close_chat_btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

/* Chat Body */
.chat_body {
  flex: 1;
  background: #f9f9f9;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  scroll-behavior: smooth;
}

/* Messages */
.message {
  max-width: 80%;
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 12px;
  position: relative;
  word-wrap: break-word;
  animation: fadeInUp 0.3s ease;
}

.bot_msg {
  align-self: flex-start;
  background: var(--white);
  color: var(--secondary);
  border: 1px solid #eee;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user_msg {
  align-self: flex-end;
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 5px rgba(163, 5, 2, 0.2);
}

/* Quick Options (Chips) */
.chat_options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.chat_chip {
  background: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.chat_chip:hover {
  background: var(--primary);
  color: var(--white);
}

/* Chat Footer */
.chat_footer {
  padding: 15px;
  background: var(--white);
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat_input {
  flex: 1;
  border: 1px solid #eee;
  padding: 10px 15px;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
  background: #fdfdfd;
}

.chat_input:focus {
  border-color: var(--primary);
}

.send_chat_btn {
  background: var(--secondary);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.send_chat_btn:hover {
  background: var(--primary);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 991px) {
  .hero_features_wrapper {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .contact_hero_section {
    padding-bottom: 60px;
  }
  .chat_window_container {
    width: 90%;
    height: 60vh;
    right: 5%;
  }
}
