/* Contact Page Styles */

/* Override content-wrapper for contact page */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Contact Info Side */
.contact-info-side {
  padding: 0 1rem;
}

.contact-info-side h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .contact-info-side h2 {
    font-size: 1.75rem;
  }
}

.contact-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

/* Contact Details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  flex-shrink: 0;
}

.contact-detail-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-detail-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.contact-detail-content a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-detail-content a:hover {
  color: #fff;
}

/* Contact Social */
.contact-social {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-social h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.contact-social-links {
  display: flex;
  gap: 0.75rem;
}

.contact-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.contact-social-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* Contact Form Side */
.contact-form-side {
  padding: 0 1rem;
}

.contact-form-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .contact-form-card {
    padding: 2.5rem;
  }
}

.contact-form-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.contact-form-card > p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.form-group label .optional {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-group select option {
  background: #1a1a1a;
  color: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

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

.submit-btn .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.submit-btn .spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

.submit-btn .spinner-circle {
  stroke-dasharray: 50;
  stroke-dashoffset: 20;
}

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

/* Form Result Messages */
.form-result {
  margin-top: 1.5rem;
}

.result-success,
.result-error {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.result-success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.result-success svg {
  flex-shrink: 0;
  color: #4ade80;
}

.result-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}

.result-error svg {
  flex-shrink: 0;
  color: #f87171;
}

/* Additional Responsive Fixes */

/* Small mobile screens */
@media (max-width: 480px) {
  .contact-container {
    gap: 1.5rem;
  }

  .contact-info-side,
  .contact-form-side {
    padding: 0 0.5rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

  .contact-form-card h2 {
    font-size: 1.25rem;
  }

  .contact-detail-icon {
    width: 42px;
    height: 42px;
  }

  .contact-detail-icon svg {
    width: 20px;
    height: 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem 0.875rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }

  .contact-social-links a {
    width: 40px;
    height: 40px;
  }
}

/* Fix for content wrapper on contact page */
.content-section .content-wrapper {
  display: block;
}

/* Ensure form inputs don't overflow */
.form-group input,
.form-group select,
.form-group textarea {
  box-sizing: border-box;
  max-width: 100%;
}
