/* Contact page specific styles */

/* Main layout adjustments for index-style header */
main {
  padding-top: 100px; /* Account for fixed header */
}

/* Hero Section */
.contact-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f4c75 100%);
  color: #fff;
  padding: 3rem 0 2rem;
  margin-top: -100px; /* Pull up behind header */
  padding-top: 120px; /* Account for header height */
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #fff;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.95;
  line-height: 1.7;
  margin: 0;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

/* Form Card */
.contact-form-card,
.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  margin: 0 0 0.5rem 0;
  color: var(--primary);
  font-size: 1.75rem;
}

.form-header p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* Form Grid */
.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

/* Form Elements */
label {
  font-weight: 600;
  color: var(--fg);
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 97, 160, 0.1);
}

input.error,
textarea.error,
select.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #0f4c75;
  border-color: #0f4c75;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(18, 97, 160, 0.3);
}

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

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--muted);
  border-color: var(--primary);
}

/* Quick Actions */
.quick-actions {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.quick-actions h3 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.25rem;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .action-buttons {
    grid-template-columns: 1fr 1fr;
  }
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Info Card */
.contact-info-card h2 {
  margin: 0 0 1.5rem 0;
  color: var(--primary);
  font-size: 1.75rem;
}

.info-section {
  margin-bottom: 2rem;
}

.info-section:last-of-type {
  margin-bottom: 1.5rem;
}

.info-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem 0;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.info-section p {
  margin: 0;
  line-height: 1.6;
  color: #374151;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-link span {
  font-weight: 600;
  color: var(--fg);
}

.emergency-note {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.95rem;
  color: #92400e;
  margin: 0;
}

/* Contact Social */
.contact-social {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.contact-social h3 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.social-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  justify-content: center;
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn.twitter:hover {
  border-color: #1da1f2;
  background: #1da1f2;
  color: #fff;
}

.social-btn.instagram:hover {
  border-color: #e4405f;
  background: #e4405f;
  color: #fff;
}

.social-btn.facebook:hover {
  border-color: #4267b2;
  background: #4267b2;
  color: #fff;
}

.social-btn.linkedin:hover {
  border-color: #0077b5;
  background: #0077b5;
  color: #fff;
}

/* Success and Error Messages */
.success-message,
.error-message {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  animation: slideIn 0.3s ease-out;
}

.success-message {
  background: #f0fdf4;
  border: 1px solid #22c55e;
  color: #15803d;
}

.error-message {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #dc2626;
}

.success-content,
.error-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.success-content svg,
.error-content svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.success-content h3,
.error-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
}

.success-content p,
.error-content p {
  margin: 0;
  opacity: 0.9;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

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

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Force visibility on short screens to prevent forms from being hidden */
@media (max-height: 600px) {
  .reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-hero {
    padding: 2rem 0 1.5rem;
    padding-top: 100px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .contact-section {
    padding: 2rem 0;
  }
  
  .contact-form-card,
  .contact-info-card {
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn {
    justify-content: center;
  }
}
