/* Modern Contact Page Styles - Beautiful & Professional */

/* Body Background */
body {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f5f7ff 100%);
  min-height: 100vh;
}

/* Hero Section with Animated Background */
.contact-hero {
  position: relative;
  padding: 6rem 0 4rem;
  color: #fff;
  text-align: center;
  margin-bottom: 4rem;
  overflow: hidden;
}

.contact-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #fff, transparent);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #fff, transparent);
  bottom: -100px;
  left: -100px;
  animation-delay: 2s;
}

.hero-shape-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #fff, transparent);
  top: 50%;
  left: 50%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInUp 0.6s ease-out;
}

.contact-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contact-hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Container */
.contact-container {
  padding: 0 0 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Contact Information Section */
.contact-info {
  background: #ffffff;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-info-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.contact-info-header h2 {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
  font-weight: 700;
}

.contact-info-header p {
  color: #64748b;
  margin: 0;
  font-size: 0.95rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.contact-info-item:hover {
  transform: translateX(8px);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-right: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4);
}

.contact-info-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.375rem;
  color: #0f172a;
  font-weight: 600;
}

.contact-info-content p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
}

.contact-info-content a {
  color: #6366f1;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-info-content a:hover {
  color: #8b5cf6;
  text-decoration: underline;
}

/* Contact Form Section */
.contact-form-wrapper {
  background: #ffffff;
  padding: 3rem;
}

/* Contact Form Section */
.contact-form-wrapper {
  background: #ffffff;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.form-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.form-header h2 {
  font-size: 1.875rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
  font-weight: 700;
}

.form-header p {
  color: #64748b;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.625rem;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
  font-weight: 500;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-group.error .form-error {
  display: block;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.submit-btn {
  width: 100%;
  padding: 1.125rem 2rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Success Message */
.success-message {
  display: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  animation: slideDown 0.6s ease;
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3);
  margin-bottom: 3rem;
}

.success-message.show {
  display: block;
}

.success-message-icon {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 3.5rem;
  animation: scaleIn 0.6s ease 0.2s both;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-message h3 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.success-message p {
  font-size: 1.125rem;
  opacity: 0.95;
  line-height: 1.6;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alert Styles */
.alert {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: none;
  font-weight: 500;
}

.alert-danger {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.alert i {
  margin-right: 0.5rem;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */

/* Tablet and Below */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-info {
    position: relative;
    top: 0;
  }

  .contact-hero {
    padding: 5rem 0 3.5rem;
    margin-bottom: 3rem;
  }

  .contact-container {
    padding: 0 0 4rem;
  }

  .contact-grid {
    padding: 0 1rem;
  }
}

/* Mobile Landscape and Below */
@media (max-width: 768px) {
  .contact-hero {
    padding: 4rem 0 3rem;
    margin-bottom: 2rem;
  }

  .contact-hero h1 {
    font-size: 2.25rem !important;
    margin-bottom: 0.75rem;
  }

  .contact-hero p {
    font-size: 1rem !important;
    padding: 0 1rem;
  }

  .contact-container {
    padding: 0 0 3rem;
  }

  .contact-grid {
    gap: 2rem;
    padding: 0 0.75rem;
  }

  .contact-info,
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .contact-info-header,
  .form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
  }

  .contact-info-header h2,
  .form-header h2 {
    font-size: 1.5rem;
  }

  .contact-info-header p,
  .form-header p {
    font-size: 0.9rem;
  }

  .contact-info-item {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
  }

  .contact-info-icon {
    width: 52px;
    height: 52px;
    font-size: 1.375rem;
    margin-right: 1rem;
  }

  .contact-info-content h3 {
    font-size: 1rem;
  }

  .contact-info-content p {
    font-size: 0.875rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    border-radius: 10px;
  }

  .form-group textarea {
    min-height: 140px;
  }

  .submit-btn {
    padding: 1rem 1.75rem;
    font-size: 1.05rem;
  }

  .hero-shape-1,
  .hero-shape-2,
  .hero-shape-3 {
    display: none;
  }

  .success-message {
    padding: 2rem 1.5rem;
    border-radius: 18px;
    margin-bottom: 2rem;
  }

  .success-message h3 {
    font-size: 1.75rem;
  }

  .success-message p {
    font-size: 1rem;
  }

  .alert {
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
  }

  /* Map responsive sizing */
  .contact-info-map iframe {
    height: 300px;
  }
}

/* Mobile Portrait */
@media (max-width: 576px) {
  .contact-hero {
    padding: 3rem 0 2rem;
    margin-bottom: 1.5rem;
  }

  .contact-hero h1 {
    font-size: 1.875rem !important;
    margin-bottom: 0.5rem;
  }

  .contact-hero p {
    font-size: 0.9375rem !important;
    padding: 0 0.75rem;
  }

  .contact-container {
    padding: 0 0 2rem;
  }

  .contact-grid {
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .contact-info,
  .contact-form-wrapper {
    padding: 1.5rem 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  }

  .contact-info-header,
  .form-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .contact-info-header h2,
  .form-header h2 {
    font-size: 1.375rem;
  }

  .contact-info-header p,
  .form-header p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .contact-info-item {
    padding: 0.875rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
  }

  .contact-info-item:hover {
    transform: translateX(4px);
  }

  .contact-info-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    margin-right: 0.875rem;
    border-radius: 12px;
  }

  .contact-info-content h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
  }

  .contact-info-content p {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group label {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 10px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .submit-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .success-message {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }

  .success-message-icon {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.625rem;
  }

  .success-message p {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .alert {
    padding: 0.75rem 0.875rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border-radius: 10px;
  }

  /* Map responsive sizing */
  .contact-info-map {
    margin-top: 1.5rem !important;
    border-radius: 10px !important;
  }

  .contact-info-map iframe {
    height: 250px;
  }
}

/* Extra Small Devices */
@media (max-width: 400px) {
  .contact-hero {
    padding: 2.5rem 0 1.75rem;
  }

  .contact-hero h1 {
    font-size: 1.625rem !important;
  }

  .contact-hero p {
    font-size: 0.875rem !important;
  }

  .contact-info,
  .contact-form-wrapper {
    padding: 1.25rem 0.875rem;
  }

  .contact-info-header h2,
  .form-header h2 {
    font-size: 1.25rem;
  }

  .contact-info-icon {
    width: 44px;
    height: 44px;
    font-size: 1.125rem;
  }

  .submit-btn {
    padding: 0.8rem 1.25rem;
    font-size: 0.9375rem;
  }

  .btn-text span {
    font-size: 1rem !important;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Visible Styles */
*:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}
