/* Contact Page Styles */

.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

/* Hero Section */
.contact-hero {
  text-align: center;
  padding: 3rem 0 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-icon {
  font-size: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #a1a1aa;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Methods Grid */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.contact-card-icon.email {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.contact-card-icon.support {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.contact-card-icon.help {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
  color: #a78bfa;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.contact-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem;
}

.contact-card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #a1a1aa;
  margin: 0 0 1.5rem;
  flex: 1;
}

.contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.contact-card-link:hover {
  color: #93c5fd;
  gap: 0.75rem;
}

.contact-card-link i {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

.contact-card-link:hover i {
  transform: translateX(4px);
}

.contact-card-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-card-info i {
  font-size: 1.25rem;
  color: #4ade80;
}

.contact-card-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #71717a;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card-note i {
  font-size: 1rem;
  color: #71717a;
}

/* Contact Form Section */
.contact-form-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3.5rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.contact-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-header-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #60a5fa;
}

.form-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.form-subtitle {
  font-size: 1.0625rem;
  color: #a1a1aa;
  margin: 0;
  line-height: 1.6;
}

.form-message {
  padding: 0;
  border-radius: 20px;
  margin-bottom: 2rem;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: scale(0.9) translateY(-10px);
  overflow: hidden;
  position: relative;
}

.form-message-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 2px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.form-message-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e 0%, #10b981 100%);
}

.form-message-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 2px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.form-message-error::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.message-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 2.5rem;
  position: relative;
  z-index: 1;
}

.message-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-message-success .message-icon {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.2));
  border: 2px solid rgba(34, 197, 94, 0.5);
  color: #22c55e;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.form-message-error .message-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.2));
  border: 2px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.message-text {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.form-message-success .message-text {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-message-error .message-text {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.contact-form .form-row {
  margin-bottom: 1.75rem;
  position: relative;
}

.contact-form .form-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #e4e4e7;
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-form .form-row label i {
  font-size: 1rem;
  color: #60a5fa;
}

.contact-form .form-row input[type="text"],
.contact-form .form-row input[type="email"],
.contact-form .form-row textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.contact-form .form-row input[type="text"]:focus,
.contact-form .form-row input[type="email"]:focus,
.contact-form .form-row textarea:focus {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.contact-form .form-row input[type="text"]:hover:not(:focus),
.contact-form .form-row input[type="email"]:hover:not(:focus),
.contact-form .form-row textarea:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form .form-row input[type="text"].error,
.contact-form .form-row input[type="email"].error,
.contact-form .form-row select.error,
.contact-form .form-row textarea.error {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.05);
}

.contact-form .form-row input[type="text"]::placeholder,
.contact-form .form-row input[type="email"]::placeholder,
.contact-form .form-row textarea::placeholder {
  color: #71717a;
}

.select-wrapper {
  position: relative;
}

.contact-form .form-row select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1rem 3rem 1rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.contact-form .form-row select:focus {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.contact-form .form-row select:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form .form-row select.error {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.05);
}

.select-wrapper.error-wrapper select {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.05);
}

.select-arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #a1a1aa;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.contact-form .form-row select:focus + .select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.contact-form .form-row textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  line-height: 1.6;
}

.char-counter {
  text-align: right;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #a1a1aa;
}

.field-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #f87171;
  min-height: 1.25rem;
}

.form-actions {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 1.125rem 2.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  margin-bottom: 1.25rem;
  min-width: 180px;
  overflow: hidden;
}

.btn-submit::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.5s ease;
}

.btn-submit:hover:not(:disabled)::before {
  left: 100%;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn-submit:active:not(:disabled) {
  transform: translateY(-1px);
}

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

.btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.btn-submit:hover:not(:disabled) .btn-icon {
  transform: translateX(4px);
}

.btn-spinner {
  display: none;
  align-items: center;
  justify-content: center;
  animation: spin 1s linear infinite;
}

.btn-spinner i {
  font-size: 1.25rem;
}

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

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #71717a;
  margin: 0;
}

.form-note i {
  font-size: 1rem;
  color: #4ade80;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-page {
    padding: 2rem 1rem 3rem;
  }

  .contact-hero {
    padding: 2rem 0 3rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

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

  .contact-card {
    padding: 1.5rem;
  }

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

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

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

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

  .form-header-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }

  .message-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
  }

  .message-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .message-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .contact-form-section {
    padding: 1.5rem 1rem;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

