/* 
 * Enhanced Contact Section Styles
 * Optimized for clear CTAs and improved user experience
 */

.contact-section {
  background-color: var(--background-light);
  padding: 5rem 0;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(26, 54, 93, 0.05) 0%, rgba(26, 54, 93, 0) 100%);
  z-index: 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Contact Info Styling */
.contact-info {
  padding: 2rem;
  background-color: var(--background-light);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-standard);
}

.contact-info:hover {
  box-shadow: var(--shadow-medium);
}

.company-info h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.company-info p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

/* Contact Details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: var(--transition-standard);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
  background-color: var(--accent-color);
}

.contact-text {
  flex-grow: 1;
}

.contact-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-text p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-standard);
}

.contact-text a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Enhanced CTA Buttons */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-standard);
  cursor: pointer;
  font-size: 1.1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.cta-button.primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 6px rgba(26, 54, 93, 0.25);
}

.cta-button.secondary {
  background-color: var(--accent-color);
  color: var(--text-light);
  box-shadow: 0 4px 6px rgba(214, 158, 46, 0.25);
}

.cta-button.primary:hover {
  background-color: #15294a;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(26, 54, 93, 0.3);
}

.cta-button.secondary:hover {
  background-color: #c08e29;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(214, 158, 46, 0.3);
}

.cta-button.cta-large {
  padding: 1.25rem 2rem;
  font-size: 1.2rem;
}

/* Animated CTA effect */
.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
  z-index: -1;
}

.cta-button:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Pre-formatted message indicator */
.preformatted-message {
  font-size: 0.9rem;
  color: var(--text-dark);
  opacity: 0.8;
  margin-top: 0.5rem;
  font-style: italic;
}

.preformatted-message i {
  margin-right: 0.5rem;
}

/* Contact Image */
.contact-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  height: 100%;
  min-height: 400px;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.contact-image:hover img {
  transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-image {
    order: -1;
    max-height: 400px;
  }
  
  .contact-info {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 4rem 0;
  }
  
  .company-info h3 {
    font-size: 1.5rem;
  }
  
  .company-info p {
    font-size: 1rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .contact-text h4 {
    font-size: 1.1rem;
  }
  
  .cta-button {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }
  
  .cta-button.cta-large {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .contact-section {
    padding: 3rem 0;
  }
  
  .contact-info {
    padding: 1.25rem;
  }
  
  .contact-details {
    gap: 1.25rem;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .contact-icon {
    margin-bottom: 0.5rem;
  }
  
  .cta-buttons {
    gap: 0.75rem;
  }
}

/* Accessibility Enhancements */
.cta-button:focus {
  outline: 3px solid rgba(49, 130, 206, 0.5);
  outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .contact-info {
    background-color: var(--background-gray);
  }
  
  .contact-section::before {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  }
}
