/* Contact Page CSS Module */
.pageContainer {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
  color: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.mainContent {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Loading Container */
.loadingContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.loadingContainer p {
  margin-top: 1rem;
  color: #94a3b8;
  font-size: 1.1rem;
}

/* Header Section */
.headerSection {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 3rem;
}

.headerContent {
  max-width: 600px;
  margin: 0 auto;
}

.greeting {
  margin-top: 25px;
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* Contact Section */
.contactSection {
  margin-bottom: 4rem;
}

.contactGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Form Container */
.formContainer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.formContainer:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.formHeader {
  margin-bottom: 2rem;
}

.formTitle {
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.formDescription {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.5;
}

/* Form Styles */
.contactForm {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.inputGroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
}

.label svg {
  color: #3b82f6;
}

.input,
.textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: none;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input::placeholder,
.textarea::placeholder {
  color: #64748b;
}

.inputError {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.errorText {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.errorText::before {
  content: "⚠";
  font-size: 0.8rem;
}

.textarea {
  min-height: 120px;
  font-family: inherit;
}

.submitButton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  margin-top: 1rem;
}

.submitButton:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.submitButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submitButton.loading {
  pointer-events: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Success and Error Messages */
.successMessage,
.errorMessage {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: slideInDown 0.4s ease-out;
}

.successMessage {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
}

.errorMessage {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

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

/* Info Container */
.infoContainer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.infoContainer:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.infoHeader {
  margin-bottom: 2rem;
}

.infoTitle {
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.infoDescription {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.5;
}

/* Contact Info List */
.contactInfoList {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contactInfoItem {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contactInfoItem:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.contactIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: 12px;
  flex-shrink: 0;
}

.contactIcon svg {
  color: #ffffff;
}

.contactDetails {
  flex: 1;
}

.contactTitle {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.contactValue {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

/* Social Section */
.socialSection {
  margin-bottom: 2.5rem;
}

.socialTitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.socialLinks {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.socialLink {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.socialLink::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--social-color, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.socialLink:hover::before {
  opacity: 1;
}

.socialLink:hover {
  border-color: var(--social-color, #3b82f6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.socialLink svg {
  position: relative;
  z-index: 1;
}

/* Response Time */
.responseTime {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
}

.responseIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  flex-shrink: 0;
}

.responseIcon svg {
  color: #22c55e;
}

.responseText h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #22c55e;
  margin: 0 0 0.25rem 0;
}

.responseText p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .contactGrid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .formRow {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .formContainer,
  .infoContainer {
    padding: 2rem;
  }

  .contactGrid {
    gap: 2rem;
  }

  .socialLinks {
    flex-wrap: wrap;
  }

  .contactInfoItem {
    padding: 1rem;
  }

  .contactIcon {
    width: 44px;
    height: 44px;
  }

  .socialLink {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .headerSection {
    padding: 2rem 0;
    margin-bottom: 3rem;
  }

  .title {
    font-size: 2rem;
  }

  .formContainer,
  .infoContainer {
    padding: 1.5rem;
  }

  .formTitle,
  .infoTitle {
    font-size: 1.5rem;
  }

  .contactGrid {
    gap: 1.5rem;
  }

  .contactInfoList {
    gap: 1rem;
  }

  .contactInfoItem {
    padding: 0.75rem;
  }

  .contactIcon {
    width: 40px;
    height: 40px;
  }

  .socialLink {
    width: 40px;
    height: 40px;
  }

  .submitButton {
    padding: 0.875rem 1.5rem;
  }
}

/* Animation for form elements */
.inputGroup {
  animation: slideInUp 0.6s ease-out;
}

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

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

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

.inputGroup:nth-child(4) {
  animation-delay: 0.4s;
}

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

/* Focus states for accessibility */
.input:focus,
.textarea:focus,
.submitButton:focus,
.contactInfoItem:focus,
.socialLink:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .submitButton:hover,
  .contactInfoItem:hover,
  .socialLink:hover {
    transform: none;
  }

  .inputGroup {
    animation: none;
  }

  .spinner {
    animation: none;
  }

  .successMessage,
  .errorMessage {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .input,
  .textarea {
    border-width: 2px;
  }

  .submitButton {
    border: 2px solid #ffffff;
  }
}
