/* ===========================
   TAC Membership – Base Styles
   Custom colours/fonts are applied
   via inline <style> from the Style Builder.
   =========================== */

.tac-fade-overlay {
  position: relative;
  height: 120px;
  margin-bottom: -120px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  z-index: 1;
  pointer-events: none;
}

.tac-locked-message {
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.tac-gate-heading {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.tac-gate-text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

#tac-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tac-locked-message input[type="email"],
.tac-locked-message input[type="text"] {
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.tac-locked-message input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.tac-gate-button {
  margin-top: 0.3rem;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  width: 100%;
}

.tac-gate-button:hover {
  background: #333;
}

.tac-gate-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tac-gate-error {
  color: #d63638;
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.2em;
}

@media screen and (max-width: 600px) {
  .tac-locked-message {
    padding: 1.5rem 1.25rem;
  }
}

/* Container structure */
#tac-content-area {
  position: relative;
}

.tac-gate-wrap {
  overflow: hidden;
}

.tac-full-content {
  /* Starts hidden; JS reveals with animation */
}

/* ===========================
   Block-level Gate (front end)
   =========================== */

.tac-block-gate {
  position: relative;
  margin: 1.5rem 0;
}

.tac-block-gate-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #d93d78;
  background: #fef2f7;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.tac-block-gate-form-wrap {
  overflow: hidden;
}

.tac-block-locked-message {
  /* Inherits .tac-locked-message styles */
}

.tac-block-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tac-block-locked-message input[type="email"],
.tac-block-locked-message input[type="text"] {
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.tac-block-locked-message input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.tac-block-gate-error {
  color: #d63638;
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.2em;
}

.tac-block-gate-content {
  /* Starts hidden; JS reveals with animation */
}
