:root {
  --primary-color: #0540F2; 
  --primary-color-dark: #141bc3;
  --text-color: #333;
  --background-color: rgba(17, 24, 189, 0.9);
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
}

.inner-modal {
  width: 100%;
  max-width: 90rem;
  background: linear-gradient(var(--background-color), var(--background-color)),
    url("../images/modal-form-bg.jpeg") center/cover;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
  position: relative;
  border-radius: 1rem;
}

.content {
  max-width: 100%;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.steps {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

.steps li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  opacity: 0.9;
}

.quote {
  font-size: 1rem;
  opacity: 0.9;
}

.form-container {
  width: 100%;
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

ol {
  padding: 0;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 2px solid #e1e1e1;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-bottom-color: var(--primary-color);
}

.phone-input {
  display: flex;
  align-items: center;
}

.phone-prefix {
  color: var(--text-color);
  margin-right: 0.5rem;
  font-size: 1rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  margin-top: 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: var(--primary-color-dark);
}

.close-modal {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
}

.close-line {
  position: absolute;
  width: 1.5rem;
  height: 0.1875rem;
  background-color: white;
  transition: all 0.3s ease;
}

.top {
  transform: rotate(45deg);
}

.bottom {
  transform: rotate(-45deg);
}

.alert-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  right: 0;
  top: 0;
  overflow: auto;
}

.alert-modal-content {
  background-color: #fefefe;
  margin: 2rem auto;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
}

#alert-message {
  font-size: 1rem;
  color: var(--text-color);
}

i {
  color: var(--primary-color);
  margin-right: 0.625rem;
  font-size: 1.125rem;
}

.form-group {
  margin-bottom: 1rem;
}

@media screen and (min-width: 500px) {
  .modal {
    padding: 2rem;
  }
  .inner-modal {
    flex-direction: column;
    max-width: 50rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .description,
  .steps li,
  .quote {
    font-size: 1.125rem;
  }

  ol {
    padding: 0;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .submit-btn {
    margin-top: 12px;
  }

}

@media screen and (min-width: 768px) {

  .form-container {
    max-width: 90%;
    padding: 2rem;
  }

  .content {
    max-width: 90%;
    margin-bottom: 30px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .description,
  .steps li,
  .quote {
    font-size: 1.125rem;
  }
  .form-group {
    margin-bottom: 1rem;
  }

}

@media screen and (min-width: 1024px) {
  .modal {
    padding: 2.5rem;
  }

  .inner-modal {
    padding: 3.5rem;
    justify-content: space-between;
  }

  h1 {
    font-size: 2.8rem;
  }

  .form-container {
    max-width: 45%;
    padding: 2.5rem;
  }

  .inner-modal {
    flex-direction: row;
    max-width: 90rem;
  }

  .content {
    max-width: 45%;
  }

  ol {
    margin-left: 40px;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

}

@media screen and (min-width: 1500px) {
  .close-modal {
    top: -2.5rem;
    right: -2.5rem;
  }
}
