:root {
  --primary-color: #007bff;
  --accent-color: #28a745; 
  --background-color: #f8f9fa; 
  --form-bg: #ffffff; 
  --text-color: #343a40; 
  --secondary-text-color: #6c757d;
  --border-color: #ced4da; 
  --focus-border-color: #80bdff;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --font-family-primary: 'Poppins', sans-serif;
  --header-height: 80px; 
  --dark-bg: #343a40; 
  --light-text-color: #e9ecef;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-primary);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Utility Classes */
.btn-primary, .btn-signup {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

.btn-signup {
  background-color: var(--accent-color);
  color: white;
  border: 2px solid var(--accent-color);
}

.btn-signup:hover {
  background-color: #218838;
  border-color: #218838;
  transform: translateY(-2px);
}

/* --- START OF HEADER STYLES --- */
.header {
  background-color: white;
  color: var(--text-color); 
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky; 
  top: 0;
  width: 100%;
  z-index: 1000;
  min-height: var(--header-height);
  display: flex;
  align-items: center; 
  justify-content: center; 
  padding: 0 2rem; 
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px; 
  width: 100%;
  justify-content: center; 
}

.header .logo {
  width: 60px; 
  height: auto;
}

.header h1 {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 600;
  color: var(--primary-color); 
  text-align: center;
}

.back-home-link {
  display: flex; 
  align-items: center;
  margin-right: 1rem; 
}


/* Main Content Wrapper*/
.main-content {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center; 
  padding: 2rem;
  margin-top: var(--header-height);
}

.signup-section {
  background: var(--form-bg);
  padding: 2.5rem; 
  border-radius: 12px;
  box-shadow: 0 8px 25px var(--shadow-color); 
  width: 100%;
  max-width: 550px; 
  text-align: center;
}

/* Form Headings and Description */
.signup-section h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.form-description {
  font-size: 1.05rem;
  color: var(--secondary-text-color);
  margin-bottom: 2rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

/* Form Groups and Inputs */
.signup-form .form-group {
  margin-bottom: 1.5rem;
  text-align: left; 
}

.signup-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus {
  outline: none;
  border-color: var(--focus-border-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); 
}

.signup-form textarea {
  resize: vertical;
}

.hint {
  font-size: 0.85rem;
  color: var(--secondary-text-color);
  margin-top: 0.3rem;
  display: block;
}

/* Buttons */
.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem; 
  gap: 1rem; 
}

.btn-submit, .btn-reset, .btn-primary-back {
  padding: 0.8rem 1.8rem; 
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-submit {
  background-color: var(--accent-color);
  color: white;
}

.btn-submit:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-reset {
  background-color: var(--secondary-color);
  color: white;
}

.btn-reset:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

/* Submitted Output Style */
.form-output {
  background: #e6f7ff;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
  text-align: center;
}

.form-output h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.form-output p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.form-output ul {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 400px;
  margin: 0 auto 1.5rem auto;
}

.form-output li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-color);
}

.form-output li:last-child {
  border-bottom: none; 
}

.form-output strong {
  color: var(--primary-color);
  font-weight: 600;
}

.btn-primary-back {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.btn-primary-back:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background-color: var(--dark-bg);
  color: var(--light-text-color);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.5rem;
  }
  .main-content {
    padding: 1rem;
    margin-top: var(--header-height);
  }
  .signup-section {
    padding: 2rem 1.5rem;
  }
  .signup-section h2 {
    font-size: 1.8rem;
  }
  .form-description {
    font-size: 0.95rem;
  }
  .button-group {
    flex-direction: column;
    gap: 0.8rem;
  }
  .btn-submit, .btn-reset, .btn-primary-back {
    width: 100%;
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }
  .form-output h3 {
    font-size: 1.5rem;
  }
  .form-output p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.3rem;
  }
  .header .logo {
    width: 50px;
  }
  .signup-section {
    padding: 1.5rem 1rem;
  }
  .signup-section h2 {
    font-size: 1.6rem;
  }
  .signup-form label,
  .signup-form input,
  .signup-form select,
  .signup-form textarea,
  .form-output li,
  .form-output p {
    font-size: 0.9rem;
  }
  .hint {
    font-size: 0.75rem;
  }
}