:root {
  --brand-dark: #001f4d;
  --brand-yellow: #fecf07;
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-blue-light: #3b82f6;
}

.contact-section {
  padding: 60px 0;
  background: #f8fafc;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Titles */
.section-title {
  font-family: "Merriweather", serif;
  font-size: 2rem;
  color: var(--brand-dark);
  margin-bottom: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: center;
  justify-content: center;
}

.title-icon {
  font-size: 1.5rem;
}

/* Contact Introduction */
.contact-intro {
  background: white;
  padding: 50px 40px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  text-align: center;
}

.intro-text {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.2rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.highlight-content h3 {
  font-family: "Merriweather", serif;
  color: var(--brand-dark);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.highlight-content p {
  color: #64748b;
  font-family: "Source Sans Pro", sans-serif;
  margin: 0;
  line-height: 1.5;
}

/* Main Contact Layout */
.contact-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

/* Contact Form */
.contact-form-section {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-title {
  font-family: "Merriweather", serif;
  color: var(--brand-dark);
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.form-icon {
  font-size: 1.5rem;
}

.form-subtitle {
  color: #64748b;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Alert Messages */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Source Sans Pro", sans-serif;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.alert-close:hover {
  opacity: 1;
}

/* Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section.full-width {
  grid-column: 1 / -1;
}

.section-subtitle {
  font-family: "Merriweather", serif;
  color: var(--brand-dark);
  font-size: 1.2rem;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-yellow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  color: var(--brand-dark);
  font-size: 0.95rem;
}

.required {
  color: #ef4444;
}

.form-control {
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:invalid {
  border-color: #ef4444;
}

.form-control:invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-help {
  font-size: 0.85rem;
  color: #64748b;
  font-family: "Source Sans Pro", sans-serif;
}

.form-error {
  color: #ef4444;
  font-size: 0.85rem;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 500;
}

/* Checkbox Styling */
.checkbox-group {
  margin-top: 10px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-blue);
}

.checkbox-label {
  font-family: "Source Sans Pro", sans-serif;
  color: #475569;
  line-height: 1.5;
  cursor: pointer;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.btn-submit {
  background: var(--brand-blue);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  justify-content: center;
}

.btn-submit:hover {
  background: var(--brand-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-submit:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.form-note {
  color: #64748b;
  font-size: 0.9rem;
  font-family: "Source Sans Pro", sans-serif;
}

/* Contact Information Sidebar */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-title {
  font-family: "Merriweather", serif;
  color: var(--brand-dark);
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  font-size: 1.3rem;
}

.primary-contact {
  border-left: 4px solid var(--brand-blue);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-content strong {
  color: var(--brand-dark);
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-content span {
  color: #475569;
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.5;
}

.contact-content a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-content a:hover {
  color: var(--brand-blue-dark);
  text-decoration: underline;
}

/* Department Contacts */
.departments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.department-item {
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid var(--brand-yellow);
}

.department-name {
  font-family: "Merriweather", serif;
  color: var(--brand-dark);
  font-size: 1rem;
  margin-bottom: 5px;
}

.department-title {
  color: #64748b;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.department-contact {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 0.85rem;
}

.contact-label {
  font-weight: 600;
  color: var(--brand-dark);
  min-width: 50px;
}

.department-contact a {
  color: var(--brand-blue);
  text-decoration: none;
}

.department-contact a:hover {
  text-decoration: underline;
}

/* Office Hours */
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.hours-item:last-child {
  border-bottom: none;
}

.day {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  color: var(--brand-dark);
}

.time {
  font-family: "Source Sans Pro", sans-serif;
  color: #475569;
}

.hours-note {
  margin-top: 15px;
  padding: 12px;
  background: rgba(254, 207, 7, 0.1);
  border-radius: 6px;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
}

/* Quick Links */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  color: #475569;
  transition: all 0.3s ease;
  font-family: "Source Sans Pro", sans-serif;
}

.quick-link:hover {
  background: rgba(37, 99, 235, 0.05);
  color: var(--brand-blue);
  transform: translateX(5px);
}

.link-icon {
  font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
  background: white;
  padding: 50px 40px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.faq-categories {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.faq-category-btn {
  padding: 10px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  color: #64748b;
}

.faq-category-btn:hover,
.faq-category-btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: white;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 20px;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #e2e8f0;
}

.faq-question h3 {
  font-family: "Source Sans Pro", sans-serif;
  color: var(--brand-dark);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--brand-blue);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 20px;
  color: #475569;
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.6;
}

/* Map Section */
.map-section {
  background: white;
  padding: 50px 40px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.map-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.map-placeholder {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 12px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed #cbd5e1;
}

.map-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.map-icon {
  font-size: 3rem;
  color: var(--brand-blue);
}

.map-content h3 {
  font-family: "Merriweather", serif;
  color: var(--brand-dark);
  margin: 0;
}

.map-content p {
  color: #64748b;
  margin: 0;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.map-link:hover {
  background: var(--brand-blue-dark);
  transform: translateY(-2px);
}

.map-info h3 {
  font-family: "Merriweather", serif;
  color: var(--brand-dark);
  margin-bottom: 20px;
}

.directions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.direction-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.direction-icon {
  font-size: 1.5rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.direction-content strong {
  color: var(--brand-dark);
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.direction-content p {
  color: #475569;
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.5;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: white;
  padding: 50px 40px;
  border-radius: 15px;
  text-align: center;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta-content h2 {
  font-family: "Merriweather", serif;
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-content p {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-cta.primary {
  background: var(--brand-yellow);
  color: var(--brand-dark);
}

.btn-cta.primary:hover {
  background: #e6b800;
  transform: translateY(-2px);
}

.btn-cta.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-cta.secondary:hover {
  background: white;
  color: var(--brand-blue);
}

.cta-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-item {
  text-align: center;
}

.contact-stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: "Merriweather", serif;
  line-height: 1;
  margin-bottom: 5px;
}

.contact-stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  font-family: "Source Sans Pro", sans-serif;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    grid-template-columns: 1fr;
  }

  .cta-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-stats {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .contact-section {
    padding: 40px 0;
  }

  .contact-intro,
  .contact-form-section,
  .faq-section,
  .map-section {
    padding: 30px 20px;
  }

  .cta-section {
    padding: 40px 20px;
  }

  .contact-highlights {
    grid-template-columns: 1fr;
  }

  .highlight-item {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .faq-categories {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-stats {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
    flex-direction: column;
    gap: 10px;
  }

  .form-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 8px;
  }

  .contact-highlights {
    gap: 20px;
  }

  .highlight-item {
    padding: 15px;
  }

  .info-card {
    padding: 20px;
  }

  .btn-submit {
    padding: 12px 20px;
    font-size: 1rem;
  }
}



