.matr-master-translate-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.matr-master-translate-form legend {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.matr-master-translate-form .matr-form-group {
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
}


.matr-master-translate-form .matr-form-label {
  font-weight: 800;
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

.matr-swap-language-btn {
  display: block;
  background: none;
  border: 0;
  border-radius: 50%;
  margin: 5px;
  cursor: pointer;
}

.matr-swap-language-btn svg {
  display: block;
  opacity: 0.7;
}

.matr-swap-language-btn:hover {
  background-color: #eee;
}

.matr-master-translate-form .matr-form-control {
  width: 100%;
  resize: vertical;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  color: #555;
  background-color: #fff;
}

.matr-master-translate-form .matr-form-control:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
    0 0 8px rgba(102, 175, 233, 0.6);
}

.matr-master-translate-form .matr-form-control::-webkit-input-placeholder,
.matr-master-translate-form .matr-form-control::-moz-placeholder,
.matr-master-translate-form .matr-form-control::-ms-input-placeholder,
.matr-master-translate-form .matr-form-control::placeholder {
  color: #999;
}

.matr-master-translate-form .matr-form-button {
  background-color: #1a7efb;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.matr-master-translate-form .matr-form-button:hover {
  background-color: #4796f7;
}

.matr-master-translate-form .matr-form-button:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.matr-master-translate-form .matr-form-group-horizontal {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.matr-master-translate-form
  .matr-form-group-horizontal
  .matr-form-group {
  flex: 1;
  margin: 0;
}

.matr-master-translate-form
  .matr-form-group-horizontal
  .matr-form-label {
  margin: 0;
}

.matr-master-translate-form .matr-form-group-horizontal .matr-form-group-horizontal-left {
  justify-content: flex-start;
}

.matr-master-translate-form .matr-form-group-horizontal .matr-form-group-horizontal-right {
  justify-content: flex-end;
}

.matr-popup {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
}

.matr-popup-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.matr-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px 30px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 300px;
  max-width: 80%;
}

.matr-popup-close {
  position: absolute;
  top: 2px;
  right: 2px;
  border: none;
  background: none;
  font-size: 1.5em;
  width: 1.5em;
  height: 1.5em;
  cursor: pointer;
}

.matr-service-selection-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.matr-service-selection-container .matr-service-selection-item {
  display: block;
  padding: 15px 20px;
  background-color: white;
  border: 1px solid rgba(30, 64, 200, 0.3);
  color: #1a7efb;
  text-decoration: none;
  text-align: center;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

.matr-service-selection-container .matr-service-selection-item:hover {
  background-color: #f0f0f0;
  text-decoration: none;
  color: #1a7efb;
}

.matr-service-selection-container
  .matr-service-selection-item.matr-service-selection-item-active,
.matr-service-selection-container
  .matr-service-selection-item.matr-service-selection-item-active:hover {
  background-color: #1a7efb;
  color: white;
  border-color: #1a7efb;
}
