/* General form layout */
form fieldset {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: none !important;
  padding: 25px 30px;
}

/* Section headings */
form legend {
  font-size: 1.2rem;
  font-weight: 600;
  color: #052374;
  margin-bottom: 20px;
}

/* Input fields with 3D look */
form .form-control {
  border: 1px solid #d2d6dc;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

form .form-control:focus {
  border-color: #052374;
  box-shadow: 0 0 0 0.15rem rgba(5, 35, 116, 0.15);
}

/* Error field */
form .is-invalid {
  border-color: #dc3545;
  background-color: #fff0f0;
}

/* Radio group layout */
.form-check-inline {
  margin-right: 20px;
}

form legend {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  position: relative;
  padding-bottom: 6px;
  margin-bottom: 20px;
}

form legend::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 60px;
  background: linear-gradient(to right, #76a9fa, #052374); /* same gradient as heading */
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: width 0.3s ease;
}

form legend:hover::after {
  width: 80px;
}

.styled-heading {
  font-size: 2.2rem;
  font-weight: 800;
  color: #000;
  text-align: center;
  position: relative;
  margin: 0 auto 30px;
  display: inline-block;
}

.styled-heading::after {
  content: '';
  display: block;
  margin: 10px auto 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #76a9fa, #052374); /* light blue to dark blue */
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: width 0.3s ease;
}

.styled-heading:hover::after {
  width: 100px;
}

/* Button styling */
button[type="submit"], #verifyAgent {
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(5, 35, 116, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

button[type="submit"]:hover, #verifyAgent:hover {
  transform: translateY(-1px);
}

#agentStatus {
  font-size: 0.95rem;
}

.g-recaptcha {
  transform: scale(1.05);
}

/* Section toggle effect */
#onshoreFields, #agentFields {
  transition: all 0.3s ease-in-out;
}

legend.legend-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  padding-bottom: 6px;
  margin-bottom: 20px;
  position: relative;
}

legend.legend-icon::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 3px;
  width: 60px;
  background: linear-gradient(to right, #76a9fa, #052374);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: width 0.3s ease;
}

legend.legend-icon:hover::after {
  width: 80px;
}
/* Student registration page background pattern */
.container {
    background: url('../css/images/pattern_orange.jpg') center center / cover no-repeat;
    /* Adjust the path based on your CSS file location */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
}
textarea[readonly] {
  background-color: #e9ecef;
}


/* Agent login panel styling */
.agent-login-panel {
  max-width: 400px;           /* limit width */
  margin: 0 auto 30px;        /* center and add bottom space */
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.agent-login-panel .legend-icon {
  display: flex;
  justify-content: center;    /* center the legend text & icon */
}

.agent-login-panel .login-inner {
  padding: 0 15px;            /* left/right padding */
}

.agent-login-panel .form-label {
  font-weight: 600;
}

.agent-login-panel .btn-primary {
  width: 100%;                /* full width button */
}

.agent-login-panel .small {
  font-size: 0.875rem;
}

.agent-login-panel textarea[readonly] {
  background-color: #e9ecef;
}
/* make the Canadian Information panel opaque white */
#onshoreFields {
  background-color: #fff;
}

/* and its child attended‐school panel, too */
#attendedFields {
  background-color: #fff;
}

/* Agent panel wrapper: two equal flex columns */
/* Ensure panels wrap nicely */
.agent-panel {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Default: two equal columns */
.agent-panel > .col-md-6 {
  flex: 1;
  max-width: none;
}

/* Mobile (<= 767px): stack panels */
@media (max-width: 767.98px) {
  .agent-panel {
    flex-direction: column;
  }
  .agent-panel > .col-md-6 {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}

/* Shared panel styling */
.agent-login-panel,
.agent-register-panel {
  background: #fff;                                             /* opaque white */
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Inner padding */
.agent-login-panel .login-inner,
.agent-register-panel .register-inner {
  padding: 20px 15px;    /* match outer p-4 more closely */
}

/* Legend (heading) centering */
.agent-login-panel .legend-icon,
.agent-register-panel .legend-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Form labels bold */
.agent-login-panel .form-label,
.agent-register-panel .form-label {
  font-weight: 600;
}

/* Full-width buttons */
.agent-login-panel .btn,
.agent-register-panel .btn {
  width: 100%;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(5, 35, 116, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin-top: 0.5rem;
}
.agent-login-panel .btn:hover,
.agent-register-panel .btn:hover {
  transform: translateY(-1px);
}

/* “Forgot Password?” link styling */
.agent-login-panel .small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
}

/* Status message */
#agentStatus {
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

/* Agency-register intro text */
.register-inner .small {
  color: #555;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 1rem;
}
/* Confirmation checkbox container styling */
.confirmation-box {
  background: #fff;                       /* opaque white */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 1.25rem 2.25rem;                  /* match your fieldsets/panels */
  margin-bottom: 1.5rem;                  /* keep your mb-4 spacing */
}

/* Keep the checkbox itself flush */
.confirmation-box .form-check-input {
  margin-top: 0.25rem;
}

/* And ensure the label text wraps nicely */
.confirmation-box .form-check-label {
  margin-left: 0.5rem;
  line-height: 1.4;
}


/* Transparent buttons with border */
.agent-login-panel .btn,
.agent-register-panel .btn,
button[type="submit"] {
  background-color: transparent !important;
  color: #052374;
  border: 2px solid #052374;
  border-radius: 8px;
  width: 100%;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover & focus: solid background + white text */
.agent-login-panel .btn:hover,
.agent-register-panel .btn:hover,
button[type="submit"]:hover,
.agent-login-panel .btn:focus,
.agent-register-panel .btn:focus,
button[type="submit"]:focus {
  background-color: #052374 !important;
  color: #fff !important;
}


/* Active (pressed) state: slightly deeper fill & no lift */
.agent-login-panel .btn:active,
.agent-register-panel .btn:active,
button[type="submit"]:active {
  background-color: rgba(5, 35, 116, 0.15);
  transform: translateY(0);
}
/* Add space below the verified-agent panel */
#verifiedAgentBox {
  margin-bottom: 1.5rem;  /* adjust to taste */
}

.confirmation-box {
  margin-top: 1.5rem;
}
