/* ==============================
   General Reset & Base Styles
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f5f6fa;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==============================
   Container & Layout
============================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  flex: 1 0 auto;
}

/* Banner with logo left and caption right */

.banner {
  display: flex;
  align-items: center;       /* vertically center content */
  justify-content: flex-start; /* left-align everything */
  gap: 20px;                 /* space between logo and text */
  padding: 15px 25px;
  background-color: #ffffff; /* dark blue */
  color: #000;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 10px; /* <-- adds space after banner */
 
}

/* Logo styling */
.logo-banner {
  height: 130px;              /* adjust as needed */
  width: auto;
  display: block;
}

/* Caption styling */
.banner h1 {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
  background: linear-gradient(90deg, #ff4d4d, #ff9933, #33cc33, #3399ff, #9933ff); /* rainbow gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* for some browsers */
  text-align: left;
}


/* Responsive adjustment */
@media (max-width: 768px) {
  .banner {
    flex-direction: column;  /* stack on small screens */
    text-align: center;
  }
  
  .banner h1 {
    font-size: 20px;
  }
}

/* Info sections above and below the main-content */
/* ==============================
   Info Boxes Above/Below Main Content
============================== */
.info-box {
  background: #ffffff;
  border-left: 5px solid #3abd7b;
  padding: 18px 20px;
  margin: 20px 0px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.info-box h2 {
  font-size: 18px;
  color: #004aad;
  margin-bottom: 10px;
}

.info-box p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  text-align: justify;
  text-indent: 2em; 
}
/* Highlight session/topic headings */
.left-panel .info-box.bottom-info .session-topic {
  color: #004aad;       /* dark blue for heading */
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 8px;
  font-size: 16px;
}

/* Highlight topic text */
.left-panel .info-box.bottom-info .session-topic-text {
  /*background-color: #e6f2ff; /* light blue background */
  color: #004aad;           /* dark blue text */
  padding: 4px 8px;
  /*border-left: 4px solid #3abd7b; /* optional accent */
  border-radius: 4px;
  display: inline-block;
  font-size: 15px;
  margin-bottom: 10px;
}

/* ==============================
   Main Content Adjustments
============================== */

/* Left panel: image + bottom info stacked naturally */
.left-panel {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 20px; /* space between image and bottom info */
  position: relative; /* remove sticky */
  
}

/* Poster image */
.left-panel .poster {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Bottom info inside left panel */
.left-panel .info-box.bottom-info {
  margin: 0;
  padding: 16px 18px;
  border-left: 5px solid #3abd7b;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Right panel form */
.right-panel {
  flex: 1 1 55%;
  padding-right: 10px;
  height: auto;
  overflow-y: visible;
}

/* Main content layout */
.main-content {
  display: flex;
  gap: 30px;
  margin-bottom: 30px; /* extra spacing before footer */
}

/* Footer */
footer {
  padding: 30px 20px;
  background-color: #031633;
  color: #fff;
  text-align: center;
  border-radius: 0;
}


/* Bottom info inside left panel */
.left-panel .info-box.bottom-info {
  margin: 0; /* already spaced by gap */
  padding: 16px 18px;
  border-left: 5px solid #3abd7b;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Bottom info box lists */
.left-panel .info-box.bottom-info ul {
  list-style-type: disc; /* bullets */
  padding-left: 20px;
  margin-bottom: 15px;
}

.left-panel .info-box.bottom-info li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Right panel form: natural scroll */
.right-panel {
  flex: 1 1 55%;
  padding-right: 10px;
  height: auto;
  overflow-y: visible;
}




/* Right panel (form) - natural scroll */
.right-panel {
  flex: 1 1 55%;
  padding-right: 10px;
  height: auto;        /* allow content to expand naturally */
  overflow-y: visible; /* remove internal scrolling */
}




/* Optional: scrollbar styling for right-panel */
/*.right-panel::-webkit-scrollbar {
  width: 8px;
}

.right-panel::-webkit-scrollbar-thumb {
  background-color: rgba(0, 74, 173, 0.5);
  border-radius: 4px;
}

.right-panel::-webkit-scrollbar-track {
  background-color: #f0f0f0;
}

*/
/* ==============================
   Form Styles
============================== */
.card {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card b {
  font-size: 18px;
}

/* Form rows */
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-row label {
  font-weight: 600;
  margin-bottom: 5px;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #004aad;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 74, 173, 0.3);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Required asterisk */
.required {
  color: red;
  margin-left: 3px;
}


.title-row {
  text-align: center;
  background-color: #3abd7b; /* dark blue */
  color: #fff;
  padding: 15px 10px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px 8px 0 0; /* rounded top corners */
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Captcha box */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px; 
}

#captcha-question {
    font-size: 24px;       /* increase question font size */
    font-weight: bold;     /* optional: make it bold */
}

#captcha {
    font-size: 20px;       /* increase input font size */
    padding: 5px 10px;     /* optional: add some padding for better appearance */
    width: 80px;           /* optional: adjust width to fit bigger font */
}


.reload-btn {
  padding: 5px 10px;
  background-color: #294738;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reload-btn:hover {
  background-color: #16241d;
}

/* Form actions */
.actions {
  text-align: right;
}

.actions button {
  background-color: #3abd7b;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.actions button:hover {
  background-color: #336b50;
}

/* Message box */
#message {
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
}

/* ==============================
   Responsive
============================== */
@media (max-width: 992px) {
  .main-content {
    flex-direction: column;
    gap: 20px;
    /* Optional: add extra margin at bottom of main content */
    margin-bottom: 30px; /* ensures footer does not overlap content */
  }

  .left-panel,
  .right-panel {
    flex: 1 1 100%;
  }
}

@media (max-width: 576px) {
  .banner h1 {
    font-size: 20px;
  }

  .actions button {
    width: 100%;
  }
}
/* Success and Error Messages */
#message .success {
  background-color: #d4edda;   /* light green */
  color: #155724;              /* dark green text */
  border: 1px solid #c3e6cb;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  animation: fadeIn 0.5s ease-in-out;
}

#message .error {
  background-color: #f8d7da;   /* light red */
  color: #721c24;              /* dark red text */
  border: 1px solid #f5c6cb;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  animation: fadeIn 0.5s ease-in-out;
}

/* Optional fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}



