body { font-family: Arial, sans-serif; margin: 20px; background-color: #f5f5f5; }
h2 { text-align: center; color: #392766; }
p.legend { text-align: center; color: #666; font-size: 0.9em; margin-bottom: 15px; }

form {
  max-width: 600px; margin: auto; background: #fff; padding: 25px;
  border-radius: 8px; box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  display: flex; flex-direction: column;
}
label { margin-top: 10px; color: #392766; font-weight: bold; }
input, select, button {
  padding: 8px; font-size: 1em; border: 1px solid #ccc; border-radius: 4px;
  margin-top: 5px; margin-bottom: 12px;
}

/* Section headings */
/* Success container */
.success-container {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center; /* Center all content */
}

/* Info box */
.info-box {
  margin-top: 20px;
  padding: 15px;
  background-color: #fff3cd;
  border: 2px solid #ffeeba;
  border-radius: 6px;
  color: #392766;
  font-size: 0.95em;
  text-align: center;
}

/* WhatsApp button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  background-color: #25D366;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
}

/* WhatsApp icon cropped to proper size */
.whatsapp-icon {
  width: 20px;   /* small icon size */
  height: 20px;
  margin-right: 8px;
}

/* CTA button (Go to Home) */
.cta {
  display: inline-block;
  margin-top: 20px;
  background: #392766;   /* brand purple */
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  background: #5a3a99;   /* lighter purple on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* Error message container */
#formMessage.error {
  background-color: #fbeaea;
  border: 2px solid #dc3545;
  color: #721c24;
  padding: 20px;
  border-radius: 6px;
  text-align: center;   /* Center all text */
}

/* Success message image */
#formMessage img {
  display: block;
  margin: 15px auto;    /* Center image horizontally */
  max-width: 200px;
  border: 2px solid #392766;
  border-radius: 8px;
}


/* Overlay styling */
#loadingMessage {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); color: #fff; font-size: 24px; z-index: 9999;
  justify-content: center; align-items: center; flex-direction: column;
  opacity: 0; transition: opacity 0.4s ease;
}
#loadingMessage.show { display: flex; opacity: 1; }

nav {
  background: #392766;
  padding: 10px;
}

nav ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
}

nav ul.menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

nav ul.menu li a:hover,
nav ul.menu li a.active {
  color: #ffd700; /* gold highlight */
}

.postal-address-box {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 8px;
  background-color: #fafafa;
  margin-top: 15px;
}

.address-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.address-col {
  flex: 1 1 45%;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.address-col label {
  font-weight: normal;
  color: #333;
  margin-bottom: 6px;
}

.agreement-section {
  border-top: 2px solid #eee;
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-weight: normal;
  color: #333;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.1);
}

button {
  margin-top: 20px;
  background: #392766; /* brand purple */
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  padding: 12px 24px;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  background: #5a3a99; /* lighter purple on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* pushes footer down */
}

footer {
  background: #392766;
  color: #fff;
  padding: 10px 10px;
  text-align: center;
  margin-top: auto; /* sticky footer */
}

footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

footer .social-icons a svg {
  width: 20px;
  height: 20px;
  fill: #392766;
}

footer .social-icons a:hover {
  background: #ffd700;
  transform: scale(1.1);
}

footer p {
  margin: 0;
  font-size: 0.9em;
}


.page-container {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
  padding: 20px;
}

body.home .page-container {
  margin: 0;
  padding: 0;
  max-width: 100%;
}


.hero {
  margin-bottom: 40px;
}

.features ul {
  list-style: none;
  padding: 0;
}

.features li {
  margin: 10px 0;
  font-size: 1.1em;
}

.contact-info {
  margin: 20px 0;
}

.contact-form {
  margin-top: 20px;
  text-align: left;
}

.card {
  border-radius: 10px;
}

.form-label {
  font-weight: 600;
  color: #2c3e50; /* BLearning brand tone */
  display: block;     /* labels sit above inputs */
  margin-bottom: 0.5rem;
}

textarea.form-control {
  min-height: 200px; /* ensures Communication box is bigger */
}

.btn-primary {
  background-color: #2c3e50; /* BLearning brand color */
  border: none;
}

.card form {
  text-align: left;   /* ensures labels and inputs align left */
}


.form-control {
  width: 100%;        /* inputs stretch full width */
  text-align: left;   /* text typed inside stays left aligned */
}

.page-container h1 {
  margin-top: 0;   /* trims top padding */
  padding-top: 0;       /* ensures no padding is applied */
  margin-bottom: 1rem;  /* keeps a little gap before contact info */
  font-size: 1.75rem;   /* optional: slightly smaller heading */
}

.contact-info {
  margin-bottom: 2rem;   /* space before the form */
  font-size: 1rem;
}

.contact-info p {
  margin: 0;
}

.contact-info span {
  margin: 0 0.5rem;
  color: #888;           /* subtle separator color */
  display: inline-flex;  /* keeps items inline */
  align-items: center;
}



.testimonials-container {
  max-width: 800px;
  margin: 0 auto; /* center the block */
}

.testimonial {
  border-radius: 8px;
  background-color: #f9f9f9;
}

.testimonial p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333;
}

.testimonial .author {
  display: block;
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 0.95rem;
  color: #555;
}



.carousel .card {
  max-width: 700px;
  margin: 0 auto;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.carousel-indicators {
  bottom: -30px; /* moves dots below the card */
}

.carousel-indicators [data-bs-target] {
  background-color: #392766; /* BLearning brand color */
}

.carousel p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333;
}

.carousel span {
  font-style: italic;
  font-size: 0.95rem;
  color: #555;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;   /* smaller width */
  height: 20px;  /* smaller height */
  background-size: 100% 100%; /* ensures icon scales properly */
 filter: invert(40%); /* makes arrows a subtle gray instead of pure white */
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;     /* reduce clickable area so arrows don’t feel oversized */
}
