/* Contact Page Styles */

.contact-hero {
  margin-bottom: 60px;
  text-align: center;
  animation: slideInUp 0.8s ease;
}

.contact-hero h1 {
  margin-bottom: 16px;
}

.contact-hero .subtitle {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
}

/* Form Layout */
.contact-form-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin: 60px 0;
  align-items: start;
}

.form-container {
  animation: slideInUp 0.8s ease 0.1s backwards;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideInUp 0.6s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.15s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.25s; }
.form-group:nth-child(4) { animation-delay: 0.3s; }
.form-group:nth-child(5) { animation-delay: 0.35s; }
.form-group:nth-child(6) { animation-delay: 0.4s; }
.form-group:nth-child(7) { animation-delay: 0.45s; }
.form-group:nth-child(8) { animation-delay: 0.5s; }
.form-group:nth-child(9) { animation-delay: 0.55s; }
.form-group:nth-child(10) { animation-delay: 0.6s; }

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: none;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: #e2e8f0;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #06b6d4;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

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

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #1e293b;
  color: #e2e8f0;
}

/* Checkbox Group */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #cbd5e1;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 6px;
}

.checkbox-label:hover,
.radio-label:hover {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.checkbox-label input,
.radio-label input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #06b6d4;
}

.checkbox-label input:checked ~ span,
.radio-label input:checked ~ span {
  color: #06b6d4;
  font-weight: 600;
}

/* Radio Group */
.radio-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

/* Form Messages */
.error-message {
  font-size: 12px;
  color: #ef4444;
  display: none;
}

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

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(15, 23, 42, 0.5));
}

.form-message {
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
  margin-top: 16px;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

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

/* Form Action */
.form-action {
  margin-top: 32px;
  text-align: center;
}

.btn-submit {
  margin: 0 auto;
  min-width: 280px;
}

.form-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 12px;
}

/* Contact Info Sidebar */
.contact-info {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 12px;
  padding: 32px;
  height: fit-content;
  animation: slideInUp 0.8s ease 0.2s backwards;
  position: sticky;
  top: 100px;
}

.contact-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
  transition: all 0.3s ease;
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-item:hover {
  padding-left: 8px;
}

.contact-icon {
  font-size: 28px;
  min-width: 40px;
  text-align: center;
}

.contact-item p {
  margin: 0;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  color: #06b6d4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px !important;
}

.contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #06b6d4;
}

.contact-item p {
  color: #94a3b8;
  font-size: 14px;
}

.social-links-inline {
  display: flex;
  gap: 12px;
}

.social-links-inline a {
  font-size: 13px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-form-section {
    grid-template-columns: 1fr;
  }

  .contact-info {
    position: static;
    margin-top: 40px;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    margin-bottom: 40px;
  }

  .contact-hero h1 {
    font-size: 32px;
  }

  .form-group {
    gap: 6px;
  }

  .form-group label {
    font-size: 13px;
  }

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

  .btn-submit {
    min-width: 100%;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: 24px;
  }
}
