/* Contact Page Specific Styles */

/* Contact Form Section - Refined Layout with Enhanced Visibility */
.contact-form-section {
  padding: 80px 0;
  background: linear-gradient(135deg, 
    rgba(248, 250, 252, 0.8) 0%, 
    rgba(241, 245, 249, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

/* Add subtle background animation to the section */
.contact-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.02) 0%, transparent 70%);
  animation: sectionFloat 20s ease-in-out infinite;
  z-index: 1;
}

@keyframes sectionFloat {
  0%, 100% { 
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  33% { 
    transform: translateY(-10px) scale(1.01);
    opacity: 0.8;
  }
  66% { 
    transform: translateY(5px) scale(0.99);
    opacity: 0.7;
  }
}

.contact-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-form-wrapper h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.contact-form-wrapper p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Form Styles - Refined and Elegant with Enhanced Visibility */
.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 250, 252, 0.95) 100%);
}

/* Add subtle animated background pattern to form */
.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.02) 0%, transparent 50%);
  border-radius: 16px;
  animation: formFloat 12s ease-in-out infinite;
  z-index: -1;
}

@keyframes formFloat {
  0%, 100% { 
    opacity: 0.3;
    transform: scale(1) rotate(0deg);
  }
  50% { 
    opacity: 0.5;
    transform: scale(1.02) rotate(0.5deg);
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  position: relative;
}

/* Better mobile label visibility */
@media (max-width: 768px) {
  .form-group label {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
    margin-bottom: 10px;
  }
}

.form-group label::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: width 0.3s ease;
}

.form-group:focus-within label::after {
  width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.04),
    inset 0 1px 3px rgba(255, 255, 255, 0.6),
    inset 0 -2px 2px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
  margin: 0;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(79, 70, 229, 0.8);
  outline: none;
  box-shadow: 
    0 0 0 4px rgba(79, 70, 229, 0.12),
    0 6px 20px rgba(79, 70, 229, 0.1),
    inset 0 1px 3px rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(79, 70, 229, 0.05);
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-2px) scale(1.005);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(79, 70, 229, 0.5);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 4px 12px rgba(79, 70, 229, 0.06),
    inset 0 1px 3px rgba(255, 255, 255, 0.6),
    inset 0 -2px 2px rgba(0, 0, 0, 0.03);
  transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(107, 114, 128, 0.6);
  font-style: italic;
  transition: all 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  color: rgba(79, 70, 229, 0.5);
  transform: translateX(2px);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' 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;
  background-size: 16px;
  padding-right: 40px;
}

/* Specific spacing for form row items to prevent overlap */
.form-row .form-group {
  margin-bottom: 0;
  min-width: 0; /* Prevents grid items from overflowing */
}

.form-row .form-group:first-child {
  margin-right: 14px;
}

.form-row .form-group:last-child {
  margin-left: 14px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1.5px solid var(--border-color);
  background: rgba(248, 250, 252, 0.6);
  font-size: 0.9rem;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.02),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(3px);
}

.checkbox-item:hover {
  background: rgba(79, 70, 229, 0.04);
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateY(-1px);
  box-shadow: 
    0 3px 8px rgba(79, 70, 229, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary-color);
}

.form-submit {
  width: 100%;
  margin-top: 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #3d30e6 0%, #9333ea 100%);
}

.form-submit:active {
  transform: translateY(0px);
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.5;
}

.form-note a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-note a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Quick Contact Sidebar - Refined */
.quick-contact {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.quick-contact h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.contact-method {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}

.contact-method:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-method:first-child {
  padding-top: 0;
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 50%;
  color: var(--white);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

/* Phone Contact Icon - White Theme */
.contact-method:first-child .contact-icon {
  background: #ffffff;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

/* Email Contact Icon - Blue Theme  */
.contact-method:nth-child(2) .contact-icon {
  background: #3b82f6;
  color: #ffffff;
}

/* Chat Contact Icon - Green Theme */
.contact-method:nth-child(3) .contact-icon {
  background: #10b981;
  color: #ffffff;
}

/* Schedule Contact Icon - Purple Theme */
.contact-method:nth-child(4) .contact-icon {
  background: #8b5cf6;
  color: #ffffff;
}

.contact-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-info p {
  margin-bottom: 3px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.availability {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Professional Chat Button - Refined */
.contact-method .btn {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(79, 70, 229, 0.2);
}

.contact-method .btn:hover {
  background: linear-gradient(135deg, #3d30e6 0%, #9333ea 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.contact-method .btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  box-shadow: 0 3px 12px rgba(79, 70, 229, 0.1);
}

.contact-method .btn-secondary:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.contact-info a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.contact-info a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: width 0.3s ease;
}

.contact-info a:hover::after {
  width: 100%;
}

/* FAQ Section - Centered and Elegant */
.contact-faq {
  padding: 100px 0;
  background: var(--light-bg);
}

.contact-faq .section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.contact-faq .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.faq-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Trust Section - Centered Grid */
.trust-section {
  padding: 100px 0;
  background: var(--white);
}

.trust-section .section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.trust-section .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.trust-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.trust-item {
  text-align: center;
  padding: 32px 24px;
  border-radius: 16px;
  background: var(--white);
  border: 2px solid var(--border-color);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.trust-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.trust-item:hover::before {
  opacity: 0.05;
}

.trust-item:hover {
  border-color: transparent;
  background: var(--white);
  box-shadow: 
    0 0 30px rgba(79, 70, 229, 0.2),
    0 0 60px rgba(124, 58, 237, 0.1),
    inset 0 0 0 2px rgba(79, 70, 229, 0.3);
  transform: translateY(-8px);
}

.trust-item::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    rgba(79, 70, 229, 0.6) 0%, 
    rgba(124, 58, 237, 0.6) 25%,
    rgba(79, 70, 229, 0.6) 50%,
    rgba(124, 58, 237, 0.6) 75%,
    rgba(79, 70, 229, 0.6) 100%);
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -2;
  animation: glow-rotate 3s linear infinite;
}

.trust-item:hover::after {
  opacity: 1;
}

@keyframes glow-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.trust-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 50%;
  color: var(--white);
}

.trust-icon svg {
  width: 32px;
  height: 32px;
}

.trust-item h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.trust-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Final CTA Section */
.final-contact-cta {
  padding: 80px 0;
  background: var(--primary-color);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Design - Enhanced */
@media (max-width: 968px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-form-wrapper h2 {
    font-size: 2rem;
  }
  
  .contact-form {
    padding: 28px;
  }
  
  .quick-contact {
    position: static;
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .contact-hero .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-row .form-group:first-child,
  .form-row .form-group:last-child {
    margin-left: 0;
    margin-right: 0;
  }
  
  .contact-form {
    padding: 30px 24px;
  }
  
  .contact-form-wrapper {
    padding: 30px 24px;
  }
  
  .contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
  }
  
  .contact-form-wrapper p {
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.6;
  }
  
  /* Enhanced mobile form styling */
  .form-group {
    margin-bottom: 28px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }
  
  .form-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .checkbox-item {
    font-size: 0.85rem;
  }
  
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .quick-contact {
    padding: 24px;
  }
  
  .quick-contact h3 {
    font-size: 1.25rem;
  }
  
  .contact-method {
    gap: 12px;
    padding: 16px 0;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
  
  .contact-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Remove/Hide Locations Section */
.locations-section {
  display: none;
}

/* Global Link Styling for Contact Page */
.contact-form-section a,
.contact-faq a,
.trust-section a,
.final-contact-cta a:not(.btn) {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.contact-form-section a:hover,
.contact-faq a:hover,
.trust-section a:hover,
.final-contact-cta a:not(.btn):hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.contact-form-section a::after,
.contact-faq a::after,
.trust-section a::after,
.final-contact-cta a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: width 0.3s ease;
}

.contact-form-section a:hover::after,
.contact-faq a:hover::after,
.trust-section a:hover::after,
.final-contact-cta a:not(.btn):hover::after {
  width: 100%;
}

/* FAQ Section - Centered and Elegant */
.contact-faq {
  padding: 100px 0;
  background: var(--light-bg);
}

.contact-faq .section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.contact-faq .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.faq-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Trust Section - Centered Grid */
.trust-section {
  padding: 100px 0;
  background: var(--white);
}

.trust-section .section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.trust-section .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.trust-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.trust-item h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.trust-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Final CTA Section */
.final-contact-cta {
  padding: 80px 0;
  background: var(--primary-color);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}