* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
}

.hero-section {
  width: 100%;
  height: 130px;
  background-image: url("../images/contact-us-banner.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
}

.hero-section h1 {
  font-size: clamp(32px, 5vw, 64px);
  color: #2d1810;
  font-weight: bold;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 0 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px clamp(20px, 3vw, 60px);
  background-color: white;
}

.form-section {
  padding: 20px clamp(20px, 4vw, 60px) 20px clamp(20px, 4vw, 60px);
}

.form-section h2 {
  font-size: clamp(20px, 2vw, 24px);
  color: #2d1810;
  margin-bottom: 20px;
  font-weight: 600;
}

.form-section p {
  color: #333;
  margin-bottom: 25px;
  font-size: clamp(14px, 1.5vw, 15px);
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  color: #2d1810;
  font-size: clamp(13px, 1.5vw, 14px);
  font-weight: 600;
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: clamp(10px, 2vw, 12px);
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: clamp(13px, 1.5vw, 14px);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: white;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #e91e63;
  box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #bbb;
  font-size: clamp(13px, 1.5vw, 14px);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23333' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  padding-right: 35px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 200px;
  line-height: 1.5;
}

.required-note {
  color: #666;
  font-size: clamp(12px, 1.5vw, 13px);
  margin-top: 20px;
  margin-bottom: 15px;
  font-style: italic;
}

.submit-btn {
  background-color: #ff1f8e;;
  color: white;
  border: none;
  padding: clamp(12px, 2vw, 14px) 40px;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
}

.submit-btn:hover {
  background-color: #c2185b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.faq-section {
  background-color: #f8f8f8;
  padding: 20px clamp(20px, 4vw, 60px) 20px clamp(20px, 4vw, 60px);
  border-radius: 8px;
}

.faq-section h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  color: #2d1810;
  margin-bottom: 10px;
  font-weight: 600;
}

.faq-category {
  font-size: clamp(16px, 2vw, 18px);
  color: #2d1810;
  font-weight: 600;
  margin-bottom: 25px;
  margin-top: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e91e63;
}

.faq-item {
  margin-bottom: 30px;
  padding: 15px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  color: #2d1810;
  font-size: clamp(13px, 1.5vw, 14px);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.faq-answer {
  color: #333;
  font-size: clamp(12px, 1.5vw, 13px);
  line-height: 1.6;
}

.view-all {
  text-align: center;
  margin-top: 30px;
}

.view-all a {
  color: #2d1810;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(13px, 1.5vw, 14px);
  padding: 10px 24px;
  border: 2px solid #2d1810;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.3s;
}

.view-all a:hover {
  color: #e91e63;
  border-color: #e91e63;
  background-color: rgba(233, 30, 99, 0.05);
}

.category-dropdown {
  position: relative;
  margin-bottom: 25px;
}

.dropdown-header {
  padding: clamp(10px, 2vw, 12px) 35px clamp(10px, 2vw, 12px) 12px;
  border: 2px solid #2d1810;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  color: #2d1810;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  transition: all 0.3s;
}

.dropdown-header:hover {
  border-color: #e91e63;
}

.dropdown-header::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #2d1810;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

.dropdown-header.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  display: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
}

.dropdown-options.active {
  display: block;
}

.dropdown-option {
  padding: clamp(10px, 2vw, 12px);
  cursor: pointer;
  color: #333;
  font-size: clamp(14px, 1.5vw, 15px);
  border-bottom: 1px solid #eee;
  transition: all 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover {
  background-color: #f5f5f5;
  color: #e91e63;
}

.dropdown-option.selected {
  background-color: rgba(233, 30, 99, 0.1);
  color: #e91e63;
  font-weight: 600;
}

/* Enhanced Responsive Breakpoints */
@media (max-width: 1024px) {
  .container {
    gap: 30px;
    padding: 30px 20px;
  }

  .form-section,
  .faq-section {
    padding: 20px;
  }

  .hero-section h1 {
    font-size: clamp(28px, 4vw, 48px);
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 100px;
  }

  .container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px 15px;
  }

  .form-section,
  .faq-section {
    padding: 25px;
  }

  .faq-section {
    margin-top: 20px;
    order: -1;
  }

  .dropdown-header {
    font-size: 15px;
  }

  .form-section h2,
  .faq-section h2 {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 80px;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .container {
    padding: 20px 12px;
    gap: 30px;
  }

  .form-section,
  .faq-section {
    padding: 20px;
  }

  .form-section h2,
  .faq-section h2 {
    font-size: 20px;
  }

  .faq-category {
    font-size: 16px;
  }

  .submit-btn {
    padding: 14px 20px;
    font-size: 15px;
  }

  .faq-item {
    padding: 12px;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 15px 10px;
  }

  .form-section,
  .faq-section {
    padding: 15px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  input[type="text"],
  input[type="email"],
  select,
  textarea {
    padding: 10px;
  }

  .submit-btn {
    padding: 12px 15px;
    font-size: 14px;
  }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    height: 80px;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .container {
    padding: 20px;
    grid-template-columns: 1fr;
  }

  textarea {
    min-height: 80px;
    max-height: 120px;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .submit-btn:hover,
  .view-all a:hover,
  .dropdown-option:hover {
    transform: none;
  }
}

/* High DPI Screens */
@media (min-resolution: 192dpi) {
  .dropdown-header,
  input,
  select,
  textarea {
    border-width: 1.5px;
  }
}

/* Print Styles */
@media print {
  .container {
    grid-template-columns: 1fr;
    padding: 20px;
    background: white !important;
  }

  .form-section,
  .faq-section {
    padding: 20px;
    page-break-inside: avoid;
    background: white !important;
  }

  .submit-btn,
  .view-all a,
  .dropdown-header::after {
    display: none;
  }

  .faq-section {
    border: 1px solid #ccc;
  }

  .faq-item {
    box-shadow: none;
    border: 1px solid #eee;
  }

  .hero-section {
    height: 100px;
    background: none;
  }

  .hero-section::before {
    display: none;
  }

  .hero-section h1 {
    color: black;
    text-shadow: none;
  }
}

/* Extra Large Screens */
@media (min-width: 1600px) {
  .container {
    max-width: 1400px;
    padding: 60px;
  }

  .hero-section {
    height: 160px;
  }

  .hero-section h1 {
    font-size: 72px;
  }
}
