/* ----- Form Elements ----- */


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

/* Input + textarea */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 10px;
  font-size: 1.4rem;
  border: 1px solid #aaa;
  border-radius: var(--box-radius);
  outline: none;
  background: transparent;
}

/* Label starting position */
.form-group label {
  position: absolute;
  left: 10px;
  top: 12px;
  font-size: 16px;
  color: #777;
  transition: 0.2s ease all;
  pointer-events: none;
  background: white;
  padding: 0 4px;
}

/* Float label */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 8px;
  font-size: 12px;
}

.form-button {
  margin-bottom: 2rem;
  font-size: 1.4rem;
  padding:  12px 10px;
  overflow: hidden;
  border:  none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  border-radius: 23px;
}
.form-button-wide {
  width:  100%;
}
.form-button-half {
  width: 46%;
  margin: 1rem 1%;
}

.note {
  font-size: 0.85rem;
  color: #666;
}


/* Personal Messaging Editor */

.message-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid #ddd;
  position: absolute;
  bottom: 0;
  width: 85%;
}

.message-input {
  flex: 1;
  min-height: 38px;
  max-height: calc(1.4em * 9);
  width:  70%;
  resize: none;
  overflow-y: hidden;
  line-height: 1.4;
  padding: 9px 12px;
  border-radius: 18px;
  font: inherit;
  outline: none;
}

.message-input:focus {
  border-color: #888;
}

.compose-icon-button,
.compose-send-button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.compose-send-button {
  font-size: 18px;
}