/* Physics Solutions Style Sheet for unique index.html elements
   Styling for unique elements on home page contained in this file 
   Author: John Griffith
   Date: October 2024 */

/* Two-column form layout */
.time-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  max-width: 900px;
}

/* Each row: label | input */
.field {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  align-items: center;
  column-gap: 0.25rem;
}

.algn {
  text-align: right;
  margin-right: 30%;
}

/* Labels */
.field label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #000;
  text-align: right;
}

/* Inputs */
.field input {
  width: 100%;
  padding: 0.45rem 0.55rem;
  font-size: 0.95rem;
  border: 1px solid #000;
  border-radius: 4px;
  box-sizing: border-box;
  text-align: left;
}

/* Focus state */
.field input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Responsive: stack into one column */
@media (max-width: 700px) {
  .time-form {
    grid-template-columns: 1fr;
  }
}

.col-3 {
  width: 65%;
  float: right;
  text-align: left;
  height: 96px;
}

.ctr-btn {
  clear: both;
  display: block;
  text-align: center;
}

#subForm {
  color: black;
  background-color: coral;
  padding: 0.3rem 0.7rem;
}

input,
textarea {
  color: black;
}

#respForm {
  margin-top: 20px;
}

#alrtUsr {
  text-align: center;
}

/* Set up CSS Styling for medium/tablet size screens */

@media (min-width: 650px) {
  .col-2,
  .col-1 {
    margin-top: 10px;
  }

  .ctr-btn {
    padding-top: 20px;
  }

  textarea {
    margin-top: 16px;
  }

  .algn {
  text-align: right;
  margin-right: 50%;
}
}
