/* Ensure dropdown is hidden by default */
.custom-dropdown {
  position: relative;
}

/* Style for the dropdown container */
#dropdown-options {
  display: none;
  position: absolute;
  border: 1px solid #ccc;
  background-color: white;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
}

.dropdown-item {
  padding: 5px;
  cursor: pointer;
  font-size: small;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

/* For the input field */

.dropdown-arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

h1 {
  color: #0056b3;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.contact-container {
  margin-top: 2%;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  border-radius: 10px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info .info {
  display: flex;
  align-items: flex-start; /* aligns icon and text top-to-top */
  gap: 10px;
  margin-bottom: 15px;
  text-align: left;
  word-break: break-all;
}

.contact-info .info span {
  width: 50px;
  height: 50px;
  background-color: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info .info span i {
  font-size: 20px;
  color: #0056b3;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-info h2 {
  color: #0056b3;
  font-size: 16px;
  margin-bottom: 5px;
  display: flex;
  align-items: left;
  gap: 8px;
}

.contact-info p {
  align-items: left;
  font-size: 14px;
  gap: 8px;
  word-break: break-all;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  text-align: left;
}

#product_input,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px;
  border: thin solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

#product_input:focus,
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #e55f3e; /* Your existing focus color */
  box-shadow: 0 0 0 2px rgba(229, 95, 62, 0.2); /* Subtle glow effect */
  background-color: #fff8f6; /* Light background tint */
}

.form-group textarea {
  height: 100px;
}

.form-group .mobile-prefix {
  display: inline-block;
  width: 70px;
  padding: 6px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  text-align: center;
}

/* ISD & Mobile Field Styling */
.isd-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.isd-group select,
.isd-group input[type="tel"] {
  flex: 1 1 48%;
  min-width: 120px;
}

/* Limit dropdown height */
.isd-group select {
  max-height: 200px;
  overflow-y: auto;
}

/* Optional: For better styling of long ISD list in Chrome */
.isd-group select option {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .isd-group {
    flex-direction: column;
    align-items: stretch;
  }

  .isd-group select,
  .isd-group input[type="tel"] {
    width: 100%;
    flex: 1 1 100%;
  }
}

.button-group {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.button-group button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.button-group .submit {
  background-color: #2a5caa;
  color: white;
}

.button-group .cancel {
  background-color: #f05555;
  color: #f8f1f1;
}

.required {
  color: red;
}

.bx i {
  font-size: 18px;
  background-color: #0056b3;
  padding: 20px;
  border-radius: 50%;
  text-align: center;
  justify-items: center;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }
}
