/* Contact Us Page Styles */

.contact-us-main {
  min-height: 100vh;
  background: #1a1a1a;
  overflow: hidden;
}

/* Hero Section */
.contact-us-hero {
  position: relative;
  overflow: hidden;
}

.contact-form-section .decor-rectangle {
  top: 120px;
  left: calc(50% + 200px);
  opacity: 0.3;
}

/* Form Section */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  color: #1a1a1a;
  font-size: 16px;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(26, 26, 26, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: #dc2626;
  border-bottom-width: 2px;
}

/* Select Styling */
.form-group .form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 12px;
  padding-right: 20px;
  cursor: pointer;
}

.form-group .form-select.is-placeholder {
  color: rgba(26, 26, 26, 0.5);
  opacity: 0.5;
}

.form-group .form-select:not(.is-placeholder) {
  color: #1a1a1a;
  opacity: 0.5;
}

/* Email Validation */
.form-group.has-error input {
  border-bottom-color: #dc2626;
  border-bottom-width: 2px;
}

.form-group.has-success input {
  border-bottom-color: #10b981;
  border-bottom-width: 2px;
}

.error-message {
  color: #dc2626;
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

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

.form-submit {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* Contact Info Column */
.contact-info-column {
  display: flex;
  align-items: center;
}

.contact-info-card {
  background: white;
  padding: 40px 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  font-weight: 700;
  color: #dc2626;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.info-value {
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.6;
}

.incident-heading {
  font-weight: 700;
  color: #dc2626;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.incident-description {
  line-height: 1.8;
}

.incident-box {
  background: white;
  border: 1px solid rgba(162, 173, 195, 0.5);
  border-radius: 10px;
  overflow: hidden;
  max-width: 400px;
}

.incident-box .decor-rectangle {
  right: -277px;
  bottom: -43px;
  transform: matrix(0.92, 0.39, -0.58, 0.82, 0, 0);
  opacity: 0.3;
}

.incident-box-heading {
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

.incident-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: #dc2626;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.incident-phone:hover {
  opacity: 0.8;
}

.phone-icon {
  color: #dc2626;
  width: 24px;
  height: 24px;
}

.incident-button {
  text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .incident-phone {
    font-size: 20px;
  }
}

.form-column {
  max-width: 580px;
}

/* Custom Select Styles */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-search {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  padding-bottom: 12px;
  transition: border-color 0.3s ease;
}

.custom-select-search:focus-within {
  border-bottom-color: #dc2626;
  border-bottom-width: 2px;
  padding-bottom: 11px;
}

.custom-select-input {
  width: 100%;
  border: none;
  background: transparent;
  color: #1a1a1a;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  padding-right: 8px;
}

.custom-select-input::placeholder {
  color: rgba(26, 26, 26, 0.5);
  opacity: 1;
}

.custom-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.custom-select-dropdown.show {
  display: block;
}

.custom-select-option {
  padding: 12px 16px;
  cursor: pointer;
  color: #1a1a1a;
  font-size: 15px;
  transition: background-color 0.2s ease;
}

.custom-select-option:hover {
  background-color: #f5f5f5;
}

.custom-select-option.selected {
  background-color: #fee2e2;
  color: #dc2626;
  font-weight: 500;
}

.custom-select-option.hidden {
  display: none;
}

/* Scrollbar for dropdown */
.custom-select-dropdown::-webkit-scrollbar {
  width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(220, 38, 38, 0.3);
  border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(220, 38, 38, 0.5);
}

.form-select,
.custom-select-input {
  appearance: none;
  cursor: pointer;
  padding-right: 24px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 20px;
  color: #1a1a1a;
  opacity: 1;
}

/* Override for enquiring-about-search and environment-search to always show arrow icon (not search icon) */
input#enquiring-about-search,
input#enquiring-about-search:focus,
input#enquiring-about-search:focus-visible,
input#environment-search,
input#environment-search:focus,
input#environment-search:focus-visible {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
  background-size: 20px !important;
}

.custom-select-search {
  border-bottom: none;
}

.custom-select-search:focus-within {
  border-bottom: none;
}

.custom-select-input:focus {
  border-bottom: none;
}

.form-error.show {
  display: block;
  opacity: 1;
}
.form-error {
  display: none;
  color: #DC2626;
  font-size: 14px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Target country input by data attribute (không cần biết ID cụ thể) */
input[data-field-name="country"],
input[name="country"] {
  border-bottom: none;
}

/* Hoặc target custom-select-input trong country field */
.custom-select-wrapper[data-field-name="country"] .custom-select-input,
.custom-select-wrapper[data-field-name="country"] .custom-select-search {
  border-bottom: none;
}

.custom-select-wrapper[data-field-name="country"] .custom-select-search:focus-within {
  border-bottom: none;
}