/* ===== Flex Utilities ===== */
/* 1. Input Fields */
/* 2. Button Styling */
/* 3. Radio Buttons */
/* 4. Layout Styling */
/* 5. Miscellaneous Styles */
/* 6. Events */
/* 7. Colors text and background */

:root {
  --text-color: #ececec;
}

/* ----------- Input Fields ----------- */
input[type="date"].form-input {
  appearance: none;
  /* removes OS styling on some browsers */
  -webkit-appearance: none;
  /* Safari/iOS */
  -moz-appearance: none;
  /* Firefox */
  background-color: #fff;
  color: #000;
  line-height: 1.2;
}

input[type="date"].form-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  margin-right: 8px;
}

input[type="date"].form-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

input[type="date"].form-input::-webkit-datetime-edit,
input[type="date"].form-input::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  height: 4rem;
  padding: 1.25rem 0.75rem 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.3rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: #86b7fe;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
  position: absolute;
  top: 1.4rem;
  left: 0.75rem;
  background: transparent;
  padding: 0 0.25rem;
  color: #737373;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.2s ease all;
  font-weight: 300;
}

.form-input:focus+.form-label,
.form-input.not-empty+.form-label {
  top: 0.25rem;
  left: 0.5rem;
  font-size: 0.75rem;
}

.form-select {
  display: block;
  width: 100%;
  height: 4rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.3rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 0.5rem 0rem;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 4 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 0L0 2h4L2 0zm0 5L0 3h4L2 5z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 8px 10px;
}

/* ----------- Button Styling ----------- */
.my-btn {
  width: 100%;
  height: 50px;
  display: flex;
  /* Flexbox replaces inline-block */
  align-items: center;
  /* Vertical centering */
  justify-content: center;
  /* Horizontal centering */

  font-weight: 400;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  user-select: none;

  background-color: #0d6efd;
  /* Bootstrap primary */
  border: 1px solid #0d6efd;
  border-radius: 0.3rem;

  padding: 0.375rem 0.75rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.my-btn:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.my-btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.my-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.my-btn-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Glass button */
.glass-btn {
  /* RESET */
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;

  padding: .75rem;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;

  display: inline-block;

  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);

  opacity: 1;
  transform: translateZ(0) scale(1);
  will-change: transform;

  transition:
    transform 300ms ease-in-out,
    background-color 200ms ease;
}


.glass-btn:hover {
  background-color: rgba(31, 105, 255, 0.5) !important;
  transform: scale(1.05);
}

.glass-blue-bg {
  background-color: rgba(0, 85, 255, 0.5) !important;
}

/* ----------- Radio Buttons ----------- */

.radio-container {
  width: 100%;
  display: grid;
  gap: 1rem;
}

.radio-container input[type="radio"] {
  display: none;
}

.radio-container label {
  display: inline-block;
  padding: 1.2rem 1.5rem;
  border: 1px solid #cfcfcf;
  border-radius: 0.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-align: center;
  color: rgb(100, 100, 100);
}

.radio-container label:hover {
  background-color: rgb(240, 240, 240);
}

.radio-blue input[type="radio"]:checked+label {
  background-color: #007bff;
  color: #fff;
}

/* ----------- Layout Styling ----------- */

.flex {
  display: flex;
}

.flex-row {
  flex-direction: row;
  /* Horizontal layout */
}

.flex-col {
  flex-direction: column;
  /* Vertical layout */
}

.flex-grow {
  flex-grow: 1;
}

.flex-shrink {
  flex-shrink: 1;
}

.flex-none {
  flex: none;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

/* Miscellaneous Styles */
.shadow {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

/* Events */
.pointer {
  cursor: pointer;
}

/* Colors text and background */
.bg-gray {
  background-color: #f0f0f0;
}

.text-orange {
  color: #c55c23;
}

.text-gray {
  color: #f0f0f0;
}

.text-dk-gray {
  color: #4f4f4f;
}

/* Custom Animation Loaded ===============================*/

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.bg-image-fade {
  position: relative;
  overflow: hidden;
  background-color: #000;
  /* stays visible immediately */
}

/* image layer */
.bg-image-fade::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: var(--fade-bg, none);
  /* set by JS */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

.bg-image-fade.bg-loaded::before {
  opacity: 1;
}

.bg-image-fade>* {
  position: relative;
  z-index: 1;
}

/* Custom Animation ===============================*/


@media (min-width: 1024px) {
  .container {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
}