/* OVERLAY: use opacity/visibility so we can animate */
.ogds-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99999;       /* much higher than your nav */
  overflow-y: auto; 
}
.ogds-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* PANEL: start off-screen below (translateY) and slide into place */
.ogds-form-panel {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translate(-50%, 100%);
  width: 90%; max-width: 600px;
  background: #fff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
  transition: transform 0.5s ease-in-out;
}
.ogds-overlay.active .ogds-form-panel {
  transform: translate(-50%, 0);
}

/* open button */
.ogds-open-button {
 	font-size: 1.5rem;
	font-family: 'Militech';
    text-transform: uppercase;
	border: solid 2px;
    border-color: var(--gcid-primary-color);
    color: var(--gcid-primary-color);
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 600ms ease;
	background:transparent;
	cursor:pointer;
}
.ogds-open-button:hover {
  background: var(--gcid-primary-color);
	color: #ffffff;
}

/* close */
.ogds-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #333;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    color: white;
}

#ogds-signup-form {
  width: 90%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.ogds-message {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: none;
  font-weight: 500;
}
.ogds-message.error {
  background: #fcebea;
  color: #cc1f1a;
  border: 1px solid #f5c6cb;
}
.ogds-message.success {
  background: #e3fcec;
  color: #1a4d28;
  border: 1px solid #c3e6cb;
}

.ogds-step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.ogds-step-indicator .indicator {
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  border-radius: 50%;
  background: #eee;
  color: #666;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.ogds-step-indicator .indicator.active {
  background: var(--gcid-primary-color);
  color: #fff;
}

.req_field {
  color: red;
  font-size: 1.3rem;
}

#ogds-signup-form .step {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}
#ogds-signup-form .step.active {
  display: block;
}

#ogds-signup-form h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
  text-transform:uppercase;	
}
#ogds-signup-form h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #333;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
}

#ogds-signup-form input[type="text"],
#ogds-signup-form input[type="email"],
#ogds-signup-form input[type="search"] {
  width: 100%;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 1.25rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#ogds-signup-form input:focus {
  border-color: var(--gcid-primary-color);
  box-shadow: 0 0 0 3px rgba(255,111,0,0.2);
  outline: none;
}

/* Keep GDPR and confirm labels simple */
.ogds-confirm label {
  display: block;
  margin: 0.5rem 0;
  font-size: 1rem;
  cursor: pointer;
}

#ogds-signup-form button,
#ogds-signup-form #ogds-submit {
  background: var(--gcid-primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 1rem;
}
#ogds-signup-form button:hover,
#ogds-signup-form #ogds-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

#ogds-summary ul {
  list-style: disc inside;
  margin: 1rem 0;
}
#ogds-summary li {
  margin-bottom: 0.5rem;
  font-size: .9rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .ogds-form-panel {
    bottom: 0;       /* ignore the bottom positioning */
    max-height: calc(100vh - 120px);   /* leave room to scroll */
    overflow-y: auto;   /* scroll panel contents */
  }
  .ogds-overlay.active .ogds-form-panel {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 480px) {
  #ogds-signup-form { padding: 1rem; }
  .ogds-step-indicator .indicator {
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
  }
	.ogds-overlay.active .ogds-form-panel {
	  transform: translate(-50%, 0);
	}	
}


/* -------------------------
   Masterclass “card” styling
   ------------------------- */
.ogds-class-item {
  margin-bottom: 1rem;
}
.ogds-class-item label {
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.ogds-class-item input[type="checkbox"] {
  margin-right: 0.75rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}
.ogds-class-item label:hover {
  border-color: var(--gcid-primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.ogds-class-item input[type="checkbox"]:checked {
  accent-color: var(--gcid-primary-color);
}
.ogds-class-item label em {
    margin-left: 15px;
    font-style: normal;
    color: #666;
    font-weight: 600;
    min-width: fit-content;
    text-align: center;
    font-size: .7rem;
    line-height: 1.2;
    background: #f4ae392b;
    padding: 10px;
    border-radius: 10px;
}

.ogds-class-item label em span {
    color: #333;
    font-size: .9rem;
}

/* Disabled state */
.ogds-class-item input[disabled] + label,
.ogds-class-item input[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Custom radio‐button styling */
.ogds-confirm input[type="radio"] {
  /* enlarge and color the dot */
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  accent-color: var(--gcid-primary-color);
  cursor: pointer;
  transition: transform 0.2s;
}
.ogds-confirm input[type="radio"]:hover {
  transform: scale(1.1);
}
.ogds-confirm label {
  display: flex;
  align-items: center;
  margin: 0.75rem 0;
  font-size: 1rem;
  cursor: pointer;
}

/* GDPR consent checkbox styling */
#ogds-rgpd {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  accent-color: var(--gcid-primary-color);
  cursor: pointer;
  transition: transform 0.2s;
}
#ogds-rgpd:hover {
  transform: scale(1.1);
}
.ogds-rgpd{
	display: flex;
    gap: 3px;
}

.ogds-rgpd p{font-size:.8rem;}

/* And ensure its label aligns nicely */
#ogds-signup-form label[for="ogds-rgpd"] {
  display: flex;
  align-items: center;
  font-size: 1rem;
  cursor: pointer;
  margin: 0.75rem 0;
}

/* make absolutely sure it’s above everything */
.ogds-overlay {
  z-index: 99999999 !important;
}

/* panel itself */
.ogds-form-panel {
  z-index: 100000000 !important;
}