/* Reusable Components - Buttons, cards, forms, etc. */

/* Buttons */
.btn {
  grid-row-gap: 0.25rem;
  flex-direction: column;
  text-decoration: none;
  display: flex;
  overflow: hidden;
}

.btn-primary {
  grid-column-gap: 8px;
  color: #fff;
  background-color: #000;
  border: none;
  border-radius: 10px;
  flex: 0 auto;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  font-family: Noto Sans, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  text-decoration: none;
  display: inline-flex;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #333;
}

.btn-secondary {
  grid-column-gap: 8px;
  color: #000;
  background-color: #fff;
  border: none;
  border-radius: 10px;
  flex: 0 auto;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  font-family: Noto Sans, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 140%;
  text-decoration: none;
  display: inline-flex;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #f5f5f5;
}

.btn-secondary img {
  width: 14.77px;
  height: 16px;
}

.btn-text {
  color: #fff;
  margin-top: 0;
  margin-bottom: 0;
  font-family: Noto Sans, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  text-decoration: none;
}

.btn-secondary .btn-text {
  color: #000;
  font-weight: 700;
}

.w-button {
  color: #fff;
  line-height: inherit;
  cursor: pointer;
  background-color: #3898ec;
  border: 0;
  border-radius: 0;
  padding: 9px 15px;
  text-decoration: none;
  display: inline-block;
}

input.w-button {
  -webkit-appearance: button;
}

/* Cards */
.card {
  border-radius: 24px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  text-decoration: none;
  display: flex;
}

.card-image-wrapper {
  grid-row-gap: 10px;
  background-color: var(--color-yellow);
  border-radius: 30px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  height: 180px;
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
}

.card-image {
  object-fit: cover;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 160px;
  text-decoration: none;
  display: flex;
}

.card-content {
  grid-row-gap: 10px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  padding-top: 24px;
  padding-bottom: 24px;
  text-decoration: none;
  display: flex;
}

.card-title {
  color: #000;
  margin-top: 0;
  margin-bottom: 0;
  font-family: Droid Serif, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 150%;
  text-decoration: none;
}

.card-description {
  color: #000;
  margin-top: 0;
  margin-bottom: 0;
  font-family: Noto Sans, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  text-decoration: none;
}

/* Forms */
.form {
  grid-column-gap: 1.5rem;
  grid-row-gap: 1.5rem;
  flex-direction: column;
  align-items: flex-start;
  display: flex;
}

.w-form {
  margin: 0 0 15px;
}

.w-form-done {
  text-align: center;
  background-color: #ddd;
  padding: 20px;
  display: none;
}

.w-form-fail {
  background-color: #ffdede;
  margin-top: 10px;
  padding: 10px;
  display: none;
}

.w-input {
  color: #333;
  vertical-align: middle;
  background-color: #fff;
  border: 1px solid #ccc;
  width: 100%;
  height: 38px;
  margin-bottom: 10px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.42857;
  display: block;
}

.w-input::placeholder {
  color: #999;
}

.w-input:focus {
  border-color: #3898ec;
  outline: 0;
}

.w-container {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.w-container:before, .w-container:after {
  content: " ";
  grid-area: 1 / 1 / 2 / 2;
  display: table;
}

.w-container:after {
  clear: both;
}

@media screen and (max-width: 991px) {
  .w-container {
    max-width: 728px;
  }
  
  .form {
    justify-content: flex-start;
    align-items: center;
  }
}

@media screen and (max-width: 479px) {
  .w-container {
    max-width: none;
  }
  
  .form {
    width: 100%;
  }
}

/* Additional component utilities */
.relative {
  z-index: 2;
  position: relative;
}

.link {
  color: var(--color-white);
  text-decoration: none;
}

.dropdown-list {
  background-color: #ddd;
}

