/* MOdal and form */
.form-container {
  display: grid;
}
.mform {
  display: flex;
  /* justify-content: center; */
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  border-radius: 25px;
  width: 80%;
  max-width: 300px;
  background-color: #fff;
}
.form-item {
  display: flex;
  flex-direction: column;
}
.form-input,
.form-button {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  border: 0;
}
.form-input {
  padding: 1.5rem;
  outline: none;
}
.forminput::placeholder {
  opacity: 0.4;
}
.form-input:focus::placeholder {
  color: #205e43;
  opacity: 0.85;
  outline: none;
}
.form-input:first-of-type {
  position: relative;
}
.form-input:first-of-type::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}
.form-button {
  background: #205e43;
  color: white;
  padding: 1.25em 2.25em;
}

/* Modal Overlay */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  /* min-height: 100vh; */
}

/* Modal Container */
.modal {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 80%;
  width: 80%;
  /* height: 80%; */
  max-height: 80vh;
  position: relative;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  z-index: 10;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background-color: white;
  border-radius: 1px;
}

.close-btn::before {
  transform: rotate(45deg);
}

.close-btn::after {
  transform: rotate(-45deg);
}

/* Modal Content */
.modal-content {
  background-color: white;
  margin: 40px 20px 20px 20px;
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  position: relative;
}

/* Check Icon */
.check-icon {
  width: 64px;
  height: 64px;
  background-color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  position: relative;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.check-icon::after {
  content: "";
  width: 20px;
  height: 12px;
  border: 3px solid white;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  margin-top: -4px;
}

/* Title */
.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Description */
.modal-description {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Decorative Elements */
.modal::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 480px) {
  .modal {
    margin: 20px;
    max-width: 85%;
    width: 85%;
  }

  .modal-content {
    margin: 30px 15px 15px 15px;
    padding: 32px 24px;
  }

  .modal-title {
    font-size: 22px;
  }

  .modal-description {
    font-size: 16px;
  }
}

/* Hide modal by default - remove this class to show */
.modal-overlay.hidden {
  display: none;
}

/* Beta Button */
.modal-button {
  margin-top: 24px;
}

.beta-btn {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  letter-spacing: 0.5px;
}

.beta-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.beta-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media only screen and (min-width: 550px) {
  .mform {
    flex-direction: row;
    max-width: 600px;
    border: 10px solid white;
    border-radius: 2em;
  }
  .form-button {
    border-radius: 3em;
    margin-left: auto;
  }
  .form-item {
    justify-content: center;
    flex: 1 1;
  }
  .form-item:first-of-type {
    right: 0;
    top: 0;
    bottom: 0;
    /* width: 1px; */
    height: initial;
  }
}
