/* Contact Page Styles */

/* Contact Page Hero Override */
.hero-small.contact-hero {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  padding: 7rem 0 5rem;
  position: relative;
}

.hero-small.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  z-index: 0;
}

.hero-small.contact-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-secondary) 0%, transparent 100%);
  z-index: 0;
}

.hero-small.contact-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-small.contact-hero p {
  font-size: 1.3rem;
  max-width: 650px;
  opacity: 0.95;
}

.hero-small.contact-hero .breadcrumb {
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* Contact Page Content */
.contact-page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.contact-intro {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.contact-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-intro p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Contact Options */
.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.contact-option {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.7s ease;
}

.contact-option:hover::before {
  left: 100%;
}

.contact-option:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.8rem auto;
  background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  transition: all 0.4s ease;
  position: relative;
}

.contact-icon::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.5);
  border-right-color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: all 0.4s ease;
  transform: rotate(-45deg);
}

.contact-option:hover .contact-icon {
  transform: scale(1.1) rotate(10deg);
}

.contact-option:hover .contact-icon::after {
  opacity: 1;
  transform: rotate(45deg);
}

.contact-text h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1.05rem;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
  font-size: 1.05rem;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  background: rgba(59, 130, 246, 0.08);
}

.contact-link:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.15);
}

/* Contact Form Section */
.contact-form-section {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 3.5rem;
  margin-bottom: 5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), #8b5cf6, #ec4899);
}

.contact-form-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
  position: relative;
}

.contact-form-section h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.1), transparent);
  border-radius: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1rem;
}

.form-group label.required::after {
  content: ' *';
  color: #ef4444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group .error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group input.error + .error-message,
.form-group textarea.error + .error-message {
  display: block;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  padding: 1.1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  border: none;
  color: white;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
}

.contact-form .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.contact-form .btn:hover::before {
  left: 100%;
}

.contact-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.contact-form .btn:active {
  transform: translateY(0);
}

/* Form Focus Effects */
.form-group.focused label {
  color: var(--primary-color);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Contact Form Submit Button Loading State */
.contact-form .btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.contact-form .btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Project Pricing */
.project-pricing {
  margin-bottom: 4rem;
  padding: 2rem 0;
  position: relative;
}

.project-pricing h2 {
  font-size: 2.2rem;
  margin-bottom: 3.5rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
  position: relative;
}

.project-pricing h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.pricing-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  transition: left 0.7s ease;
}

.pricing-card:hover::before {
  left: 100%;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
}

.pricing-card.featured .most-popular-badge {
  position: absolute;
  top: 1.2rem;
  right: -2rem;
  transform: rotate(45deg);
  background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
  color: white;
  padding: 0.3rem 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.pricing-header {
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.pricing-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: rgba(99, 102, 241, 0.3);
  border-radius: 2px;
}

.pricing-header h3 {
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  font-weight: 600;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex-grow: 1;
  text-align: left;
}

.pricing-features li {
  padding: 0.7rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.8rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.pricing-note {
  color: var(--text-secondary);
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.pricing-disclaimer {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.8rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.pricing-disclaimer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), #8b5cf6);
  border-radius: 3px 0 0 3px;
}

.pricing-disclaimer strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Contact Success Notification */
.contact-success-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  z-index: 1000;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: slideInSuccess 0.3s ease;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.contact-success-notification::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
  backdrop-filter: blur(5px);
}

@keyframes slideInSuccess {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.success-content i {
  font-size: 3.5rem;
  color: #10b981;
  animation: pulseSuccess 2s infinite;
}

@keyframes pulseSuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.success-content h3 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.success-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.1rem;
}

body.dark-mode .contact-success-notification {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .success-content i {
  color: #34d399;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Contact Page Animations */
.contact-intro {
  animation: fadeInUp 0.8s ease;
}

.contact-option {
  animation: fadeInUp 0.8s ease;
}

.contact-option:nth-child(1) {
  animation-delay: 0.1s;
}

.contact-option:nth-child(2) {
  animation-delay: 0.2s;
}

.contact-option:nth-child(3) {
  animation-delay: 0.3s;
}

.contact-form-section {
  animation: fadeInUp 0.8s ease;
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

.pricing-card {
  animation: fadeInUp 0.8s ease;
}

.pricing-card:nth-child(1) {
  animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
  animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
  animation-delay: 0.3s;
}

.form-group {
  animation: fadeInUp 0.5s ease;
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}

.form-group:nth-child(2) {
  animation-delay: 0.2s;
}

.form-group:nth-child(3) {
  animation-delay: 0.3s;
}

.form-row .form-group:nth-child(1) {
  animation-delay: 0.1s;
}

.form-row .form-group:nth-child(2) {
  animation-delay: 0.2s;
}

.contact-form .btn {
  animation: fadeInUp 0.5s ease;
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

/* Additional Styling for Better Separation Between Sections */
.contact-page-section {
  padding: 2rem 0;
  position: relative;
}

.contact-page-section:not(:last-child) {
  margin-bottom: 2rem;
}

/* Add subtle separators between main sections */
.contact-page-section:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-wrapper {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius);
  padding: 0.5rem;
}

/* For the scrolling animation to pricing cards */
.scroll-to-pricing {
  scroll-behavior: smooth;
}

/* Dark mode adjustments for section separators */
body.dark-mode .contact-page-section:not(:last-child)::after {
  background: linear-gradient(90deg, transparent, #374151, transparent);
}

/* Dark Mode Styles */
body.dark-mode .hero-small.contact-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7e22ce 50%, #be185d 100%);
}

body.dark-mode .hero-small.contact-hero::after {
  background: linear-gradient(to top, var(--bg-secondary) 0%, transparent 100%);
}

body.dark-mode .contact-intro h2 {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .contact-option {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .contact-option:hover {
  border-color: #3b82f6;
}

body.dark-mode .contact-icon {
  background: linear-gradient(135deg, #4f46e5 0%, #7e22ce 100%);
}

body.dark-mode .contact-link {
  background: rgba(59, 130, 246, 0.15);
}

body.dark-mode .contact-link:hover {
  background: rgba(59, 130, 246, 0.25);
}

body.dark-mode .contact-form-section {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .contact-form-section::before {
  background: linear-gradient(90deg, #4f46e5, #7e22ce, #be185d);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

body.dark-mode .contact-form .btn {
  background: linear-gradient(135deg, #4f46e5, #7e22ce);
}

body.dark-mode .pricing-card {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .pricing-card.featured {
  border-color: #4f46e5;
}

body.dark-mode .pricing-card.featured::before {
  background: linear-gradient(90deg, #4f46e5, #7e22ce);
}

body.dark-mode .price {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .pricing-features li {
  border-bottom-color: rgba(79, 70, 229, 0.2);
}

body.dark-mode .pricing-features li::before {
  color: #60a5fa;
}

body.dark-mode .pricing-card.featured .most-popular-badge {
  background: linear-gradient(90deg, #4f46e5, #7e22ce);
}

body.dark-mode .pricing-note {
  border-top-color: #374151;
}

body.dark-mode .pricing-disclaimer {
  background: #111827;
  border-color: #374151;
}

body.dark-mode .pricing-disclaimer::before {
  background: linear-gradient(to bottom, #4f46e5, #7e22ce);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-small.contact-hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-small.contact-hero p {
    font-size: 1.1rem;
  }
  
  .hero-small.contact-hero .breadcrumb {
    margin-bottom: 2rem;
  }
  
  .contact-intro h2 {
    font-size: 2rem;
  }
  
  .contact-intro p {
    font-size: 1.1rem;
  }
  
  .contact-options {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-option {
    padding: 2rem;
  }
  
  .contact-icon {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-form-section {
    padding: 2.5rem 1.5rem;
  }
  
  .contact-form-section h2,
  .project-pricing h2 {
    font-size: 1.8rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pricing-card.featured {
    transform: none;
    margin: 2.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero-small.contact-hero {
    padding: 5rem 0 4rem;
  }
  
  .hero-small.contact-hero h1 {
    font-size: 2rem;
  }
  
  .hero-small.contact-hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .hero-small.contact-hero .breadcrumb {
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
  }
  
  .contact-intro {
    margin-bottom: 3rem;
  }
  
  .contact-intro h2 {
    font-size: 1.7rem;
  }
  
  .contact-intro p {
    font-size: 1rem;
  }
  
  .contact-form-section {
    padding: 1.8rem 1.2rem;
    margin-bottom: 3rem;
  }
  
  .contact-form-section h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  
  .project-pricing h2 {
    font-size: 1.6rem;
    margin-bottom: 3rem;
  }
  
  .pricing-card {
    padding: 1.8rem 1.2rem;
  }
  
  .price {
    font-size: 2rem;
  }
  
  .pricing-card.featured .most-popular-badge {
    top: 0.8rem;
    right: -2.5rem;
    padding: 0.25rem 2rem;
    font-size: 0.7rem;
  }
  
  .pricing-disclaimer {
    padding: 1.2rem;
    font-size: 0.95rem;
  }
  
  .contact-form .btn {
    padding: 1rem;
    font-size: 1rem;
  }
}
