/* ========================================
   CONTACT PAGE - MODERN PROFESSIONAL STYLES
   ======================================== */

/* Enhanced Hero Section */
.page-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #e31e24 0%, #c0191f 50%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero .section-title {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.page-hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease;
}

/* Contact Wrapper */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 50px;
  position: relative;
}

/* Section Background Animations */
#contact-form {
  position: relative;
  overflow: hidden;
}

#contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(120deg, rgba(227, 30, 36, 0.04) 0%, transparent 50%),
    linear-gradient(240deg, rgba(227, 30, 36, 0.03) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: meshGradient 18s ease infinite;
  z-index: 0;
  pointer-events: none;
}

#contact-form::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(227, 30, 36, 0.05) 90deg,
    transparent 180deg,
    rgba(227, 30, 36, 0.03) 270deg,
    transparent 360deg
  );
  border-radius: 50%;
  animation: rotateConic 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

#contact-form > * {
  position: relative;
  z-index: 1;
}

/* Contact Info Section */
.contact-info-section {
  opacity: 0;
  transform: translateX(-30px);
}

.contact-info-section.animate {
  opacity: 1;
  transform: translateX(0);
}

.contact-info-section h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}

.contact-info-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 40px;
  background: linear-gradient(135deg, #e31e24, #ff4757);
  border-radius: 3px;
}

.contact-info-section p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 40px;
}

/* Contact Cards */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-card {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  padding: 30px;
  border-radius: 20px;
  border: 2px solid transparent;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 25px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-20px);
}

.contact-card.animate {
  opacity: 1;
  transform: translateX(0);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(135deg, #e31e24, #ff4757);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.contact-card:hover::before {
  transform: scaleY(1);
}

.contact-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover::after {
  opacity: 1;
}

.contact-card:hover {
  transform: translateX(10px) translateY(-5px);
  box-shadow: 0 15px 40px rgba(227, 30, 36, 0.2);
  border-color: #e31e24;
}

.contact-card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.1), rgba(255, 71, 87, 0.1));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e31e24;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(227, 30, 36, 0.2);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.contact-card:hover .contact-card-icon {
  transform: rotate(10deg) scale(1.15);
  background: linear-gradient(135deg, #e31e24, #ff4757);
  color: #fff;
  box-shadow: 0 10px 25px rgba(227, 30, 36, 0.4);
}

.contact-card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.contact-card-content h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-card-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.contact-card-content a {
  color: #555;
  transition: color 0.3s ease;
}

.contact-card-content a:hover {
  color: #e31e24;
}

/* Contact Form Section */
.contact-form-section {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateX(30px);
  position: relative;
  overflow: hidden;
}

.contact-form-section.animate {
  opacity: 1;
  transform: translateX(0);
}

.contact-form-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #e31e24, #ff4757, #e31e24);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.contact-form-section:hover {
  box-shadow: 0 15px 40px rgba(227, 30, 36, 0.15);
  border-color: #e31e24;
}

.contact-form-section h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.contact-form-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #e31e24, #ff4757);
  border-radius: 2px;
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a1a;
  font-family: "Montserrat", sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fafafa;
  color: #1a1a1a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e31e24;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);
  transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
  font-family: "Poppins", sans-serif;
}

.form-submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.form-submit-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.form-submit-btn:hover::before {
  width: 300px;
  height: 300px;
}

.form-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(227, 30, 36, 0.4);
}

/* Success Message */
.success-message {
  display: none;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid #28a745;
  color: #155724;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
  opacity: 0;
  transform: translateY(-10px);
}

.success-message.show {
  display: block;
  animation: successSlideIn 0.5s ease forwards;
}

@keyframes successSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-message i {
  font-size: 1.5rem;
  margin-right: 10px;
  color: #28a745;
}

/* Map Section */
.map-section {
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.map-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(227, 30, 36, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(227, 30, 36, 0.04) 0%, transparent 50%);
  animation: floatShapes 20s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.map-section > * {
  position: relative;
  z-index: 1;
}

.map-section .heading-wrapper {
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(30px);
}

.map-section .heading-wrapper.animate {
  opacity: 1;
  transform: translateY(0);
}

.map-container {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 3px solid #e31e24;
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.4s ease;
}

.map-container.animate {
  opacity: 1;
  transform: scale(1);
}

.map-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.05), transparent);
  z-index: 1;
  pointer-events: none;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: relative;
  z-index: 0;
}

/* Section Headings */
.heading-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.heading-wrapper h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.8rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.heading-wrapper h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #e31e24, #ff4757);
  border-radius: 2px;
}

/* Breadcrumb Styling */
.breadcrumb {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb i {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.9);
}

/* Form Validation Styles */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: #28a745;
}

/* Loading State */
.form-submit-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.form-submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 991px) {
  .page-hero .section-title {
    font-size: 2.5rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .contact-info-section {
    transform: translateY(30px);
  }
  
  .contact-info-section.animate {
    transform: translateY(0);
  }
  
  .contact-form-section {
    transform: translateY(30px);
  }
  
  .contact-form-section.animate {
    transform: translateY(0);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  
  .page-hero .section-title {
    font-size: 2rem;
  }
  
  .contact-form-section {
    padding: 30px 25px;
  }
  
  .contact-card {
    padding: 25px 20px;
  }
  
  .contact-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .heading-wrapper h2 {
    font-size: 2rem;
  }
  
  .map-container {
    height: 350px;
  }
  
  .contact-info-section h3 {
    font-size: 1.8rem;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Background Animation Keyframes */
@keyframes meshGradient {
  0%, 100% {
    background-position: 0% 50%, 100% 50%;
  }
  50% {
    background-position: 100% 50%, 0% 50%;
  }
}

@keyframes rotateConic {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes floatShapes {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  33% {
    transform: translate(20px, -20px) scale(1.05);
    opacity: 0.9;
  }
  66% {
    transform: translate(-15px, 15px) scale(0.95);
    opacity: 0.95;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  #contact-form::before,
  #contact-form::after,
  .map-section::before {
    animation: none !important;
    opacity: 0.3;
  }
}
