/*! ====== FONT ====== */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap");

/*! ====== CSS VARIABLE ====== */
:root {
  --body--bgcolor: #0e5185;
  --normal-font-color: #fff8f1;
  --second-font-color: rgba(27, 27, 50, 0.8);
  --container-bgcolor: rgba(7, 79, 124, 0.5);
  --submit-color: #1ece61;
}

/*! ====== BASE ====== */
* {
  font-family: "Open Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--body--bgcolor);
  color: var(--normal-font-color);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

/* unndefined */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  background: var(--second-font-color);
  background-image: linear-gradient(
      115deg,
      rgba(32, 107, 165, 0.92),
      rgba(102, 196, 255, 0.5)
    ),
    url(./img/office-bg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* tag */

h1 {
  font-weight: 400;
  line-height: 1.2;
}

p {
  font-size: 1.125rem;
}

h1,
p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

label {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

input,
button,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  border: none;
}

/*! ====== CSS ID ====== */
#survey-form {
  background-color: var(--container-bgcolor);
  padding: 2.5rem 0.625rem;
  border-radius: 0.25rem;
  /* display: flex;
  flex-direction: column; */
}

/*! ====== CSS CLASS ====== */

.container {
  width: 100%;
  margin: 3.125rem auto 0 auto;
}

.header-content {
  display: flex;
  flex-direction: column;
  padding: 0 0.625rem;
  margin-bottom: 1.875rem;
}

.header__title {
  text-align: center;
}

.header__description {
  text-align: center;
}

.form-group {
  margin: 0 auto 1.25rem auto;
  padding: 0.25rem;
  z-index: 10;
}

.form-control {
  width: 100%;
  height: 2.375rem;
  padding: 0.375rem 0.75rem;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-radio,
.input-checkbox {
  display: inline-block;
  margin-right: 0.625rem;
  min-height: 1.25rem;
  min-width: 1.25rem;
}

.input-textarea {
  min-height: 120px;
  width: 100%;
  padding: 0.625rem;
  resize: vertical;
}

.submit-button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--submit-color);
  color: #fff8f1;
  border-radius: 2px;
  cursor: pointer;
}

.submit-button:hover {
  color: #262d35;
}

/*! ====== MEDIA ====== */

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

/*? form */
@media (min-width: 480px) {
  form {
    padding: 2.5rem;
  }
}
