* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

:root {
  --brand-red: #c41e3a;
  --brand-yellow: #ffd700;
  --brand-red-dark: #a01729;
  --brand-yellow-light: #fff176;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #f9fafb;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.header {
  background: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e7eb;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 32px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: #111827;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--brand-red);
}

.mobile-menu {
  display: none;
}

/* Main Content */
.main {
  min-height: calc(100vh - 64px);
  padding: 48px 0;
}

.page-header {
  text-align: center;
  margin-bottom: 64px;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.section-divider {
  width: 96px;
  height: 4px;
  background-color: var(--brand-yellow);
  margin: 0 auto 24px;
}

.page-header p {
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 768px;
  margin: 0 auto;
}

/* Contact Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.contact-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  padding: 32px;
}

.contact-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(196, 30, 58, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.contact-details h3 {
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.contact-details p {
  color: #4b5563;
  margin-bottom: 2px;
}

.contact-details .note {
  font-size: 0.875rem;
  color: #6b7280;
}

.business-hours {
  margin-top: 32px;
  padding: 24px;
  background-color: #f9fafb;
  border-radius: 8px;
}

.business-hours h3 {
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.business-hours p {
  color: #4b5563;
  margin-bottom: 4px;
}

/* Contact Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

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

.form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

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

.form-button {
  width: 100%;
  padding: 16px;
  background-color: var(--brand-red);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.form-button:hover {
  background-color: var(--brand-red-dark);
}

.form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
  padding: 32px;
  text-align: center;
}

.success-icon,
.error-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
}

.success-icon {
  background-color: #dcfce7;
  color: #16a34a;
}

.error-icon {
  background-color: #fef2f2;
  color: #dc2626;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.modal-header p {
  color: #4b5563;
  margin-bottom: 0;
}

.modal-footer {
  padding: 0 32px 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 12px 24px;
  background-color: var(--brand-red);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--brand-red-dark);
}

.btn-outline {
  padding: 12px 24px;
  border: 1px solid var(--brand-red);
  color: var(--brand-red);
  background: white;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background-color: var(--brand-red);
  color: white;
}

/* Footer */
.footer {
  background-color: #111827;
  color: white;
  padding: 48px 0;
  margin-top: 64px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}

.footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-description {
  color: #9ca3af;
}

.footer-links h3 {
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 32px;
  text-align: center;
  color: #9ca3af;
}

/* Icons */
.icon-mail::before {
  content: "✉️";
}
.icon-phone::before {
  content: "📞";
}
.icon-map::before {
  content: "📍";
}
.icon-check::before {
  content: "✅";
}
.icon-error::before {
  content: "❌";
}

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .container {
    padding: 0 16px;
  }

  .header-content {
    padding: 0 16px;
  }

  .modal-content {
    width: 95%;
  }

  .modal-header {
    padding: 24px;
  }

  .modal-footer {
    padding: 0 24px 24px;
    flex-direction: column;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 32px 0;
  }

  .page-header h1 {
    font-size: 2rem;
  }

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