/* Base Styling */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: linear-gradient(to bottom right, #cce4f5, #f0f8ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

h1 {
  text-align: center;
  color: #7BAFD4;
  font-size: 1.8em;
  margin: 20px 0;
}

/* Registration Landing */
.role-select {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

.role-buttons {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.role-button {
  background-color: #7BAFD4;
  color: white;
  padding: 20px 50px;
  font-size: 1.5em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.role-button:hover {
  background-color: #e6f3fb;
  transform: translateY(-4px);
  color: #4b82a6;
}

/* Logo Styling */
.site-header {
  text-align: center;
  padding: 0;
  background-color: white;
}

.logo {
  max-width: 100%;
  width: 440px;
  margin: 0 auto 30px;
  display: block;
}

/* Progress Bar */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.progress-step {
  flex-grow: 1;
  height: 8px;
  background-color: #ccc;
  margin: 0 5px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.progress-step.active::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #7BAFD4;
}

/* Form Styling */
form {
  max-width: 700px;
  margin: auto;
  padding: 20px;
}

fieldset {
  border: none;
  margin-bottom: 25px;
  padding: 0;
}

legend {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

label {
  font-weight: 600;
  margin-top: 12px;
}

input, select, textarea {
  font-size: 1em;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

input[type="submit"],
.btn-next,
.btn-prev {
  background-color: #7BAFD4;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

input[type="submit"]:hover,
.btn-next:hover,
.btn-prev:hover {
  background-color: #639BCD;
}

/* Extra polish */
hr {
  border: none;
  height: 1px;
  background: none;
  margin: 0;
}

@media (max-width: 600px) {
  .role-buttons {
    flex-direction: column;
    gap: 20px;
  }

  .role-button {
    width: 80%;
    padding: 15px 25px;
  }
}

.register-choice-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
}

.register-buttons {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 40px;
}

.register-option {
    background-color: #7BAFD4;
    color: white;
    text-decoration: none;
    padding: 20px 40px;
    font-size: 1.5em;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.register-option:hover {
    background-color: #639BCD;
}

.full-screen-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
  gap: 60px;
  flex-wrap: wrap;
  background-color: #7BAFD4;
}

.role-box {
  display: inline-block;
  padding: 20px 40px;
  background-color: #f8f8f8;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 2.5em;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.2s;
}

.role-box:hover {
  background-color: #e4f0fb;
  transform: scale(1.05) translateY(-3px);
}

main.role-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  font-size: 2.2rem;
  font-weight: 700;  
}

.select-title {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 40px;
  font-weight: 600;
}

.logo-container {
  width: 100%;
  padding: 30px 0 10px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

body {
  opacity: 0;
  animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
    .logo {
        width: 90%;
    }

    .role-box {
        font-size: 1.8rem;
        padding: 20px 30px;
    }

    .role-buttons {
        flex-directions: column;
        gap: 20px;
    }
}

@media (max-width: 760px) {
  .form-step input, .form-step select, .form-step textarea {
    width: 100%;
    font-size: 16px;
  }

  .btn-next, .btn-prev {
    width: 100%;
    margin-top: 10px;
  }

  .container {
    padding: 0 10px;
  }
}

input:invalid.
select:invalid,
textarea:invalid {
  border: 2px solid red;
  background-color: #ffe6e6;
}

input,
select,
textarea {
  margin-bottom: 12px;
  padding: 8px;
}

/* ===== Homepage styles ===== */

.home-page {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom right, #cce4f5, #f0f8ff);
  color: #333;
}

/* Hero */
.home-hero {
  background: #ffffff;
  color: #4b82a6;
  text-align: center;
  padding: 2.2rem 1.5rem 2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 16px 16px;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
}

.home-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.home-hero h1 {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
  color: #4b82a6;
}

.home-tagline {
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
  color: #4b82a6;
}

.home-hero-subtext {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #4b82a6;
}

/* Main layout */
.home-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.home-section {
  margin-bottom: 2.5rem;
}

.home-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.home-section-text {
  max-width: 800px;
  margin: 0.5rem auto 1.5rem;
  text-align: center;
  line-height: 1.5;
}

/* Cards & grids */
.home-highlight {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.75rem 1.25rem 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.home-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.home-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.home-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.25rem 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.home-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.home-card ul {
  padding-left: 1.1rem;
  margin: 0;
}

/* “Photos” section (text blocks you can later swap with real images) */
.home-photos {
  background: #e6f1f9;
  border-radius: 10px;
  padding: 2rem 1.25rem;
}

.home-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.home-photo-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.home-cta-btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  background: #7BAFD4;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #7BAFD4;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease, color 0.1s ease;
}

.home-cta-btn.large {
  padding: 0.9rem 2.3rem;
  font-size: 1.05rem;
}

.home-cta-btn:hover {
  background: #639BCD;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* CTA stripe */
.home-cta-section {
  text-align: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

/* Footer */
.home-footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 1.5rem;
}
