/* Contact Page Specific Styles - Reduced sizes */

/* Contact Hero Section */
.contact-hero {
  min-height: 50vh; /* Reduced from 60vh */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.contact-hero-content {
  text-align: center;
  max-width: 700px; /* Reduced from 800px */
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-hero-content h1 {
  font-size: var(--text-5xl); /* Reduced from 6xl */
  font-weight: 900;
  margin-bottom: var(--space-5); /* Reduced from 6 */
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-hero-content p {
  font-size: var(--text-lg); /* Reduced from xl */
  color: var(--color-gray-300);
  line-height: 1.6;
}

/* Contact Form Section */
.contact-form-section {
  padding: var(--space-16) 0; /* Reduced from 24 */
  background: var(--color-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12); /* Reduced from 16 */
  align-items: start;
}

/* Contact Info */
.contact-info h2 {
  font-size: var(--text-2xl); /* Reduced from 3xl */
  margin-bottom: var(--space-3); /* Reduced from 4 */
  color: var(--color-white);
}

.contact-info > p {
  font-size: var(--text-base); /* Reduced from lg */
  color: var(--color-white);
  margin-bottom: var(--space-6); /* Reduced from 8 */
  line-height: 1.6;
}

.contact-methods {
  margin-bottom: var(--space-8); /* Reduced from 12 */
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3); /* Reduced from 4 */
  margin-bottom: var(--space-4); /* Reduced from 6 */
  padding: var(--space-3); /* Reduced from 4 */
  border-radius: var(--radius-base); /* Reduced from lg */
  transition: all var(--transition-base);
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.05);
}

.method-icon {
  width: 40px; /* Reduced from 50px */
  height: 40px;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg); /* Reduced from xl */
  flex-shrink: 0;
}

.method-content h3 {
  font-size: var(--text-base); /* Reduced from lg */
  margin-bottom: var(--space-1);
  color: var(--color-white);
}

.method-content a,
.method-content span {
  color: var(--color-gray-400);
  transition: color var(--transition-base);
  font-size: var(--text-sm); /* Reduced size */
}

.method-content a:hover {
  color: var(--color-white);
}

.social-connect h3 {
  font-size: var(--text-lg); /* Reduced from xl */
  margin-bottom: var(--space-3); /* Reduced from 4 */
  color: var(--color-white);
}

.social-connect .social-links {
  display: flex;
  gap: var(--space-2); /* Reduced from 3 */
  flex-wrap: wrap;
}

.social-connect .social-links a {
  width: 40px; /* Reduced from 50px */
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base); /* Reduced from lg */
  transition: all var(--transition-base);
}

.social-connect .social-links a:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-container {
  background: var(--color-primary);
  padding: var(--space-6); /* Reduced from 8 */
  border-radius: var(--radius-lg); /* Reduced from xl */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3); /* Reduced from 4 */
  margin-bottom: var(--space-5); /* Reduced from 6 */
}

.form-group {
  margin-bottom: var(--space-5); /* Reduced from 6 */
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--color-white);
  font-size: var(--text-xs); /* Reduced from sm */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3); /* Reduced from 4 */
  background: var(--color-secondary);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-base); /* Reduced from lg */
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: var(--text-sm); /* Reduced from base */
  transition: all var(--transition-base);
}

/* Fix dropdown menu styling */
.form-group select {
  background-color: var(--color-secondary);
  color: var(--color-white);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-group select option {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 8px 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray-500);
}

.form-group small {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-gray-500);
  font-size: var(--text-xs);
}

.error-message {
  display: none;
  color: #ef4444;
  font-size: var(--text-xs); /* Reduced from sm */
  margin-top: var(--space-1);
}

.error-message.show {
  display: block;
}

.form-submit {
  text-align: center;
  margin-top: var(--space-6); /* Reduced from 8 */
}

.submit-btn {
  min-width: 180px; /* Reduced from 200px */
}

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

.form-message {
  margin-top: var(--space-4); /* Reduced from 6 */
  padding: var(--space-3); /* Reduced from 4 */
  border-radius: var(--radius-base); /* Reduced from lg */
  text-align: center;
  font-weight: 500;
  font-size: var(--text-sm); /* Reduced size */
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8); /* Reduced from 12 */
  }

  .contact-info {
    order: 2;
  }

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

@media (max-width: 768px) {
  .contact-hero-content h1 {
    font-size: var(--text-4xl); /* Reduced from 5xl */
  }

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

  .contact-form-container {
    padding: var(--space-4); /* Reduced from 6 */
  }

  .contact-methods {
    margin-bottom: var(--space-6); /* Reduced from 8 */
  }

  .social-connect .social-links {
    justify-content: center;
  }

  .contact-hero {
    min-height: 40vh; /* Further reduced */
  }
}

@media (max-width: 480px) {
  .contact-hero {
    min-height: 35vh; /* Further reduced */
  }

  .contact-hero-content h1 {
    font-size: var(--text-3xl); /* Further reduced */
  }

  .contact-hero-content p {
    font-size: var(--text-base); /* Reduced from lg */
  }

  .contact-form-container {
    padding: var(--space-3); /* Further reduced */
  }

  .method-icon {
    width: 35px; /* Further reduced */
    height: 35px;
    font-size: var(--text-base); /* Reduced */
  }

  .social-connect .social-links a {
    width: 35px; /* Further reduced */
    height: 35px;
    font-size: var(--text-sm); /* Reduced */
  }
}
