@charset "UTF-8";

/* ==========================================================================
   Domain Search Module (Updated Text Alignment & Spacing)
   ========================================================================== */

.c-section--domain {
  background-color: #f4f7fa;
  padding-block: 60px;
}

.c-section__intro {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: #555555;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 28px;
}

.c-domain-form {
  /* max-width: 840px; */
  margin-inline: auto;
}

/* --- Search Bar Wrapper --- */
.c-domain-search-bar {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 2px solid #0056b3;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.08);
  margin-bottom: 28px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.c-domain-search-bar:focus-within {
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.18);
  border-color: #003d80;
}

.c-domain-search-bar__prefix {
  background-color: #eef4fc;
  color: #0056b3;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border-right: 1px solid #d0e1f9;
  user-select: none;
}

.c-domain-search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 16px;
  color: #333333;
  background: transparent;
}

.c-domain-search-bar__input::placeholder {
  color: #aaa;
}

.c-domain-search-bar__btn {
  background-color: #0056b3;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  padding: 14px 36px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.c-domain-search-bar__btn:hover {
  background-color: #003d80;
}

/* --- Domain Chips Grid --- */
.c-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 10px;
  justify-content: center;
}

.c-domain-chip {
  position: relative;
  display: flex;
  cursor: pointer;
  user-select: none;
}

.c-domain-chip__input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.c-domain-chip__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #444444;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.c-domain-chip:hover .c-domain-chip__label {
  border-color: #0056b3;
  color: #0056b3;
  background-color: #f0f7ff;
}

.c-domain-chip__input:checked + .c-domain-chip__label {
  background-color: #0056b3;
  color: #ffffff;
  border-color: #0056b3;
  box-shadow: 0 4px 10px rgba(0, 86, 179, 0.25);
}

/* --- Responsive Layout --- */
@media (max-width: 600px) {
  .c-section__intro {
    text-align: left; /* Mobile မှာ ဖတ်ရလွယ်အောင် left ပြန်ထားပေးနိုင်ပါတယ် */
  }

  .c-domain-search-bar {
    border-radius: 12px;
    flex-wrap: wrap;
  }
  
  .c-domain-search-bar__prefix {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .c-domain-search-bar__input {
    padding: 12px 14px;
    font-size: 14px;
  }
  
  .c-domain-search-bar__btn {
    width: 100%;
    padding: 12px;
    border-radius: 0 0 10px 10px;
  }

  .c-domain-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 8px;
  }
}