/* Added blue theme and animations to contact section */
.contact-section {
  padding: calc(var(--spacing-xl) + var(--spacing-lg)) 0;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  position: relative;
  overflow: hidden;
}

/* Added animated particles canvas */
.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
}

.contact-section .container {
  position: relative;
  z-index: 2;
}

.contact-header {
  text-align: center;
  margin-bottom: calc(var(--spacing-xl) + var(--spacing-md));
  animation: fadeInUp 0.8s ease-out;
}

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

.contact-main-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: var(--spacing-md);
  color: #1e3a8a;
  font-weight: 600;
  letter-spacing: -1px;
}

.contact-main-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Added blue theme and enhanced animations to cards */
.contact-card {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
  animation: slideInLeft 0.6s ease-out backwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-card:nth-child(1) {
  animation-delay: 0.1s;
}
.contact-card:nth-child(2) {
  animation-delay: 0.2s;
}
.contact-card:nth-child(3) {
  animation-delay: 0.3s;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: left 0.6s ease;
}

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

.contact-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.15);
}

/* Updated icon wrapper to blue theme */
.card-icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.contact-card:hover .card-icon-wrapper {
  transform: rotate(360deg) scale(1.1);
}

.card-icon {
  width: 35px;
  height: 35px;
  color: var(--color-white);
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: #1e3a8a;
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.contact-card p {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: var(--spacing-xs);
  position: relative;
  z-index: 1;
}

/* Updated label to blue theme */
.card-label {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #dbeafe;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #1e3a8a;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* Added animation to form wrapper */
.contact-form-wrapper {
  background: var(--color-white);
  border-radius: 24px;
  padding: calc(var(--spacing-lg) + var(--spacing-md));
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.1);
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Updated decorative element to blue theme */
.form-decoration {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
}

.contact-form-modern {
  position: relative;
  z-index: 2;
}

.form-title {
  font-size: 2.2rem;
  margin-bottom: var(--spacing-sm);
  color: #1e3a8a;
  font-weight: 600;
}

.form-subtitle {
  font-size: 1rem;
  color: #475569;
  margin-bottom: var(--spacing-lg);
}

.form-row {
  margin-bottom: var(--spacing-md);
}

.form-field {
  position: relative;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 1.3rem 1rem 0.9rem;
  border: none;
  border-bottom: 2px solid #e2e8f0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #1e293b;
  transition: all 0.3s ease;
  outline: none;
}

.form-field label {
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  font-size: 1rem;
  color: #64748b;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label,
.form-field select:focus ~ label,
.form-field select:not([value=""]) ~ label {
  top: 0;
  font-size: 0.75rem;
  color: #2563eb;
  font-weight: 600;
}

/* Updated field border to blue theme */
.form-field .field-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 100%);
  transition: width 0.4s ease;
}

.form-field input:focus ~ .field-border,
.form-field textarea:focus ~ .field-border,
.form-field select:focus ~ .field-border {
  width: 100%;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 1.5rem;
}

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e3a8a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

/* Updated submit button to blue theme with ripple effect */
.submit-btn-modern {
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: var(--color-white);
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: var(--spacing-md);
}

.submit-btn-modern::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 ease, height 0.6s ease;
}

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

.submit-btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-icon {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.submit-btn-modern:hover .btn-icon {
  transform: translateX(5px);
}

.contact-extra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* Updated extra cards to blue theme */
.extra-card {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
  animation: fadeInUp 0.8s ease-out backwards;
}

.extra-card:nth-child(1) {
  animation-delay: 0.4s;
}
.extra-card:nth-child(2) {
  animation-delay: 0.5s;
}
.extra-card:nth-child(3) {
  animation-delay: 0.6s;
}

.extra-card:hover {
  transform: translateY(-5px);
  border-color: #2563eb;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
}

.extra-card h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
  color: #1e3a8a;
  font-weight: 600;
}

.extra-card p {
  font-size: 0.95rem;
  color: #475569;
  margin: 0.3rem 0;
}

@media (max-width: 1024px) {
  .contact-section {
    padding: var(--spacing-lg) 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .contact-extra {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
}

@media (max-width: 768px) {
  .contact-main-title {
    font-size: 2rem;
  }

  .contact-main-subtitle {
    font-size: 1rem;
    padding: 0 var(--spacing-sm);
  }

  .contact-cards {
    gap: var(--spacing-sm);
  }

  .contact-card {
    padding: var(--spacing-md);
  }

  .card-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .card-icon {
    width: 30px;
    height: 30px;
  }

  .contact-card h3 {
    font-size: 1.3rem;
  }

  .contact-card p {
    font-size: 1rem;
  }

  .contact-form-wrapper {
    padding: var(--spacing-md);
    border-radius: 16px;
  }

  .form-title {
    font-size: 1.5rem;
  }

  .form-subtitle {
    font-size: 0.9rem;
  }

  .form-field input,
  .form-field textarea,
  .form-field select {
    padding: 1.2rem 0.8rem 0.8rem;
    font-size: 1rem;
  }

  .form-field label {
    left: 0.8rem;
    font-size: 0.9rem;
  }

  .submit-btn-modern {
    padding: 1.2rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .extra-card {
    padding: var(--spacing-md);
  }

  .extra-card h4 {
    font-size: 1.1rem;
  }

  .extra-card p {
    font-size: 0.9rem;
  }
}
