/* Contact Page Styles */

.contact-section {
  min-height: calc(100vh - 85px);
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.contact-section .container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-header {
  text-align: center;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.contact-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

.contact-info {
  padding: 3rem 2rem;
  background: #f8f9fc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.info-item i {
  font-size: 1.5rem;
  color: #667eea;
  margin-top: 0.2rem;
  min-width: 24px;
}

.info-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.info-item p {
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
}

.contact-form-container {
  padding: 3rem 2rem;
  position: relative;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.required {
  color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-group select {
  cursor: pointer;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

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

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading .spinner {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

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

.success-message {
  display: none;
  text-align: center;
  padding: 2rem;
  background: #d4edda;
  border-radius: 12px;
  border: 2px solid #c3e6cb;
  margin-top: 2rem;
}

.success-message.show {
  display: block;
  animation: slideIn 0.5s ease-out;
}

.success-message i {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 1rem;
}

.success-message h3 {
  color: #155724;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.success-message p {
  color: #155724;
  margin: 0;
  opacity: 0.8;
}

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

.footer-spacer {
  height: 2rem;
}

/* Dark Mode Styles */
body.dark .contact-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark .contact-section .container {
  background: #2c3e50;
  color: white;
}

body.dark .contact-info {
  background: #34495e;
}

body.dark .info-item {
  background: #2c3e50;
  color: white;
}

body.dark .info-item h3 {
  color: white;
}

body.dark .info-item p {
  color: #bdc3c7;
}

body.dark .contact-form-container {
  background: #2c3e50;
}

body.dark .form-group label {
  color: white;
}

body.dark .form-group input,
body.dark .form-group select,
body.dark .form-group textarea {
  background: #34495e;
  border-color: #495057;
  color: white;
}

body.dark .form-group input:focus,
body.dark .form-group select:focus,
body.dark .form-group textarea:focus {
  border-color: #667eea;
  background: #34495e;
}

body.dark .form-group input::placeholder,
body.dark .form-group textarea::placeholder {
  color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .contact-header {
    padding: 2rem 1rem;
  }
  
  .contact-header h1 {
    font-size: 2rem;
  }
  
  .contact-info,
  .contact-form-container {
    padding: 2rem 1rem;
  }
  
  .info-item {
    padding: 1rem;
  }
  
  .contact-section {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-header h1 {
    font-size: 1.75rem;
  }
  
  .contact-header p {
    font-size: 1rem;
  }
  
  .info-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .info-item i {
    margin-top: 0;
  }
}
