@use "../../../../styles/abstracts/variables" as *;

.section {
  position: relative;
  padding: 6rem 1.5rem;
  background: linear-gradient(to bottom, #05060a, #0b0d12);
  color: #e5e7eb;
  font-family: $font-onest, sans-serif !important;
}

.wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 3rem;
  backdrop-filter: blur(10px);
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2.5rem;

  h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    @media (max-width: 768px) {
      font-size: 1.6rem;
    }
  }

  p {
    font-size: 0.95rem;
    opacity: 0.75;
  }
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;

  input,
  textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.3s ease;

    &:focus {
      border-color: #ffb703;
    }
  }

  textarea {
    resize: none;
  }

  button {
    margin-top: 0.8rem;
    align-self: flex-start;
    background: linear-gradient(135deg, #ffb703, #f59e0b);
    color: #000;
    padding: 0.8rem 2.2rem;
    border-radius: 999px;
    font-weight: 500;
    transition: all 0.35s ease;
    box-shadow: 0 10px 30px rgba(255,183,3,0.25);
    font-family: "Montserrat", sans-serif;
    cursor: pointer;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 18px 45px rgba(255,183,3,0.45);
    }
  }
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .wrapper {
    padding: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}


.toast {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-size: 0.85rem;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.success {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
}

.error {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
