/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* ---------------- Global Styles ---------------- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9fafc;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

/* ---------------- Layout Wrapper ---------------- */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------------- Header / Hero Section ---------------- */
header {
  background: linear-gradient(135deg, #2a2a72, #009ffd);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

header p {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* ---------------- Main Content ---------------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Background Section */
.section-bg {
  background: url('images/background.jpg') no-repeat center center / cover;
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
}

/* Card Overlay */
.card {
  background: rgba(255, 255, 255, 0.92);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  max-width: 700px;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: #009ffd;
  color: white;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,159,253,0.3);
  margin-top: 1.5rem;
}

.btn:hover {
  background: #007bbd;
  box-shadow: 0 6px 14px rgba(0,159,253,0.4);
}

/* ---------------- Footer ---------------- */
footer {
  padding: 2rem;
  background-color: #2a2a72;
  color: white;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------------- Question Popup ---------------- */
#question-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-family: 'Poppins', sans-serif;
  z-index: 1000;
}

#open-btn {
  background: linear-gradient(135deg, #2a2a72, #009ffd);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#open-btn:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Popup form styling */
#popup-form {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 320px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: slideIn 0.3s ease forwards;
  font-family: 'Poppins', sans-serif;
}

/* Slide-in animation */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Inputs and textarea */
#popup-form input,
#popup-form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#popup-form textarea {
  resize: vertical;
  min-height: 60px;
}

/* Buttons container */
#popup-form .form-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Submit button */
#popup-form button[type="submit"] {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  flex: 1;
  margin-right: 5px;
  transition: 0.3s ease;
}

#popup-form button[type="submit"]:hover {
  background-color: #218838;
}

/* Close button */
#popup-form #close-btn {
  background: transparent;
  color: #333;
  border: none;
  cursor: pointer;
  font-size: 18px;
}
