/* Contact Page Specific Styles */

/* Contact Form Section */
.contact-form-section {
  background-color: #f8fafc;
  padding: 5rem 0;
  position: relative;
}

.contact-form-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Left side content (image and text) */
.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.contact-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-text {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.contact-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.contact-text p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.contact-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-features li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #374151;
}

.contact-features li i {
  color: #10b981;
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

/* Right side form */
.contact-form-wrapper {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  position: relative;
}

.contact-form-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
  border-radius: 20px 20px 0 0;
}

.contact-form {
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Section Header Styling */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #10b981;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fafafa;
  color: #374151;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Ensure all form fields have consistent styling with green border */
.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"],
.contact-form .form-group input[type="tel"],
.contact-form .form-group select,
.contact-form .form-group textarea {
  border: 2px solid #10b981 !important;
  background: #fafafa !important;
}

/* Override any existing styles that might be causing inconsistency */
.contact-form-container .form-group input,
.contact-form-container .form-group select,
.contact-form-container .form-group textarea {
  border: 2px solid #10b981 !important;
  background: #fafafa !important;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
  outline: none !important;
  border-color: #047857 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
  background: white !important;
  transform: translateY(-2px);
}

.contact-form .form-group input:hover,
.contact-form .form-group select:hover,
.contact-form .form-group textarea:hover {
  border-color: #059669 !important;
  background: #f9fafb !important;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

/* Form field animations */
.form-group {
  transition: all 0.3s ease;
}

.form-group:focus-within label {
  color: #1e3a8a;
  transform: translateY(-2px);
}

.contact-form .form-group input:valid,
.contact-form .form-group select:valid,
.contact-form .form-group textarea:valid {
  border-color: #059669 !important;
}

.contact-form .form-group input:valid:focus,
.contact-form .form-group select:valid:focus,
.contact-form .form-group textarea:valid:focus {
  border-color: #1e3a8a !important;
}

/* Placeholder styling */
.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: #9ca3af !important;
  font-style: italic;
  transition: color 0.3s ease;
}

.contact-form .form-group input:focus::placeholder,
.contact-form .form-group textarea:focus::placeholder {
  color: #d1d5db !important;
}

/* Submit button styling */
.contact-form button[type="submit"] {
  display: block;
  margin: 2rem auto 0;
  min-width: 200px;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.contact-form button[type="submit"]:active {
  transform: translateY(0);
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-form button[type="submit"] .btn-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-form button[type="submit"].loading .btn-text {
  display: none;
}

.contact-form button[type="submit"].loading .btn-loading {
  display: flex;
}

.contact-form button[type="submit"] .btn-loading i {
  animation: spin 1s linear infinite;
}

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

/* Error Message */
.error-message {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: block;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  background: #fef2f2;
  border-radius: 8px;
  border-left: 3px solid #dc2626;
  animation: slideIn 0.3s ease-out;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
  background: #fefefe !important;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Success */
.form-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #22c55e;
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.2);
  animation: fadeIn 0.5s ease-out;
}

.success-content i {
  color: #22c55e;
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: successPulse 2s ease-in-out infinite;
}

.success-content h3 {
  color: #22c55e;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.success-content p {
  color: #16a34a;
  font-size: 1rem;
  line-height: 1.5;
}

@keyframes successPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

/* Contact Info Section */
.contact-info-section {
  background-color: #f8fafc;
  padding: 5rem 0;
  position: relative;
}

.contact-info-section .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-info-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.contact-info-section .section-subtitle {
  font-size: 1.1rem;
  color: #4b5563;
  position: relative;
  z-index: 1;
}

/* Contact Methods */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  min-height: 280px;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.contact-method::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-method:hover::before {
  opacity: 1;
}

.method-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
  position: relative;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
}

.method-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 100%
  );
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-method:hover .method-icon {
  transform: scale(1.1);
}

.contact-method:hover .method-icon::before {
  opacity: 1;
}

.method-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.method-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-method:hover .method-info h3 {
  color: #1e40af;
}

.method-info p {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.4;
}

.contact-method:hover .method-info p {
  color: #1f2937;
}

.method-info span {
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
  line-height: 1.3;
}

.contact-method:hover .method-info span {
  color: #4b5563;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-form-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 800px;
  }

  .contact-content {
    order: 2;
  }

  .contact-form-wrapper {
    order: 1;
  }
}

@media (max-width: 768px) {
  .contact-form-section {
    padding: 3rem 0;
  }

  .contact-form-container {
    padding: 0 1rem;
    gap: 2rem;
  }

  .contact-image {
    height: 250px;
  }

  .contact-text {
    padding: 2rem;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .contact-form button[type="submit"] {
    width: 100%;
    min-width: auto;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-form-section {
    padding: 2rem 0;
  }

  .contact-form-container {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
  }

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

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

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .error-message {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }
}
