* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

body,
html {
  width: 100%;
  min-height: 100vh;
  background-color: #0d0c0b;
  color: #fff;
  overflow-x: hidden;
}

/* Background trying to mimic the original */
.background-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url("../Images/Main.jpg") no-repeat center center;
  background-size: cover;
  position: relative;
  padding: 2rem 1rem;
}

/* Pseudo element for the red carpet / stage lights effect (abstracted) */
.background-container::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(
    to top,
    rgba(200, 20, 20, 0.15) 0%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.form-wrapper {
  width: 100%;
  max-width: 600px;
  z-index: 10;
}

.glass-card {
  background: rgba(30, 20, 10, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(255, 200, 100, 0.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
}

/* Custom Scrollbar for the Glass Card */
.glass-card::-webkit-scrollbar {
  width: 8px; /* slim scrollbar */
}

.glass-card::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2); /* dark track */
  border-radius: 10px;
  margin-block: 10px; /* spacing top/bottom inside the card */
}

.glass-card::-webkit-scrollbar-thumb {
  background: rgba(245, 176, 65, 0.5); /* semi-transparent gold */
  border-radius: 10px;
}

.glass-card::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 126, 34, 0.8); /* stronger gold on hover */
}

.card-header h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* slight increase for better spacing */
}

/* Style for the star images inside the header */
.card-header h2 img {
  width: 28px; /* adjust size as needed */
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(
    0 0 8px rgba(245, 176, 65, 0.6)
  ); /* optional: adds a slight glow */
}

.subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.form-stage {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  overflow-y: auto;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.form-stage.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(20px);
}

.form-stage.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.5s ease forwards;
}

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

.input-group {
  width: 100%;
  position: relative;
  padding: 4px; /* added to prevent focus shadow clipping */
}

.suggestion-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.suggestion-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

input,
select {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  border: none;
  background: #ffffff;
  color: #333;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.3s ease;
}

#sug3_desc,
#sug2_desc,
#sug1_desc {
  height: 100px;
}

input::placeholder,
select:invalid {
  color: #a0a0a0;
}

input:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(240, 173, 78, 0.5);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 1em;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  padding: 1.2rem;
  margin-top: 1rem;
  background: #eaaa47;
  background: linear-gradient(135deg, #f5b041 0%, #e67e22 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
  width: 100%;
  padding: 0.8rem;
  margin-top: -0.5rem;
  background: transparent;
  color: #ddd;
  border: none;
  font-size: 1rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-secondary:hover {
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(230, 126, 34, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Loader */
.loader {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid #fff;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

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

.text-center h3 {
  color: #f5b041;
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}

.text-center p {
  font-size: 1.1rem;
}

/* Error states */
.error-msg {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
  text-align: right;
}
input.error,
select.error {
  border: 1px solid #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Responsiveness */
@media (max-width: 600px) {
  .glass-card {
    padding: 2rem 1.5rem;
  }
  .card-header h2 {
    font-size: 1.5rem;
  }
  .subtitle {
    font-size: 0.95rem;
  }
}
