/**
 * Masterclass feedback, certificate and verification pages.
 * Namespace: .gc
 */

.gc {
  --gc-red: #c41e3a;
  --gc-red-deep: #8a1228;
  --gc-ink: #0f172a;
  --gc-body: #475569;
  --gc-muted: #64748b;
  --gc-line: #e2e8f0;
  --gc-bg: #f6f7fb;
  --gc-gold: #b08d3d;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, system-ui, sans-serif;
  color: var(--gc-body);
  background: var(--gc-bg);
  /* GeneratePress lays #content out as a flex row; without this the main
     element shrinks to its content instead of filling the container. */
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

.gc *,
.gc *::before,
.gc *::after { box-sizing: border-box; }

.gc-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- standalone page (no site header or footer) ---------- */

body.gc-standalone { margin: 0; padding: 0; background: #f6f7fb; }

.gc-brandbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 20px;
  text-align: center;
  line-height: 0;
}

.gc-brandbar img { width: 150px; height: auto; display: inline-block; }

.gc-standfoot {
  background: #f6f7fb;
  text-align: center;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 13px;
  color: #94a3b8;
  padding: 0 20px 34px;
}

/* ---------- hero ---------- */

.gc-hero {
  background: linear-gradient(160deg, #16213e 0%, #1f2b4d 55%, #2a1730 100%);
  color: #fff;
  padding: 56px 0 48px;
  text-align: center;
}

.gc-hero-win {
  background: linear-gradient(160deg, #0f3d2e 0%, #16213e 60%, #2a1730 100%);
}

.gc-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.gc-hero h1 {
  color: #fff;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 14px;
}

.gc-hl { color: #ffc94d; }

.gc-lead {
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
  max-width: 620px;
  margin: 0 auto;
}

.gc-steps {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
}

.gc-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .9);
}

.gc-steps span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffc94d;
  color: #16213e;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}

/* ---------- cards ---------- */

.gc-formsec { padding: 34px 0 70px; }

.gc-card {
  background: #fff;
  border: 1px solid var(--gc-line);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(15, 23, 42, .05);
}

.gc-ftitle {
  font-size: 20px;
  font-weight: 800;
  color: var(--gc-ink);
  margin: 0 0 18px;
  line-height: 1.3;
}

.gc-card h2.gc-ftitle::after { display: none; }

.gc-card > p { margin: 0 0 16px; line-height: 1.65; }

.gc-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff4f4;
  border: 1px solid #f6c9c9;
  color: #8a1228;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.55;
}

.gc-closed h2,
.gc-pendingcard h2,
.gc-verified h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--gc-ink);
  margin: 0 0 12px;
}

.gc-closed h2::after,
.gc-pendingcard h2::after,
.gc-verified h2::after { display: none; }

.gc-pendingcard { border-left: 4px solid #f0b429; }
.gc-verified { border-left: 4px solid #0f9d58; }

/* ---------- form ---------- */

.gc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gc-field { display: block; margin-bottom: 18px; }

.gc-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gc-ink);
  margin-bottom: 7px;
}

.gc-label em {
  font-style: normal;
  font-weight: 500;
  color: var(--gc-muted);
}

.gc-field input,
.gc-field textarea {
  width: 100%;
  border: 1.5px solid var(--gc-line);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--gc-ink);
  background: #fcfdff;
  transition: border-color .15s, box-shadow .15s;
}

.gc-field input:focus,
.gc-field textarea:focus {
  outline: 0;
  border-color: var(--gc-red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, .12);
}

.gc-code input {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  text-align: center;
  font-size: 20px;
  background: #fffdf5;
  border-color: #e8d9a8;
}

/* star rating: rendered right-to-left so hover fills the row */
.gc-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.gc-stars input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gc-stars label {
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  color: #dfe3ea;
  transition: color .12s, transform .12s;
}

.gc-stars label:hover,
.gc-stars label:hover ~ label,
.gc-stars input:checked ~ label { color: #f5b301; }

.gc-stars label:hover { transform: scale(1.12); }

.gc-stars input:focus-visible + label { outline: 2px solid var(--gc-red); border-radius: 4px; }

.gc-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--gc-body);
  margin: 4px 0 22px;
  cursor: pointer;
}

.gc-check input { margin-top: 3px; flex: none; }

/* ---------- buttons ---------- */

.gc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 15px 26px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}

.gc-btn:hover { transform: translateY(-1px); text-decoration: none; }

.gc-btn-primary {
  background: linear-gradient(135deg, #c41e3a, #8a1228);
  color: #fff;
  width: 100%;
  box-shadow: 0 6px 18px rgba(196, 30, 58, .25);
}

.gc-btn-primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(196, 30, 58, .32); }

.gc-btn-ghost {
  background: #fff;
  color: var(--gc-ink);
  border: 1.5px solid var(--gc-line);
}

.gc-btn-ghost:hover { border-color: #c9ced9; color: var(--gc-ink); }

.gc-btn-linkedin {
  background: #0a66c2;
  color: #fff;
  width: 100%;
  box-shadow: 0 6px 18px rgba(10, 102, 194, .25);
}

.gc-btn-linkedin:hover { color: #fff; background: #094f96; }

.gc-btn-small {
  padding: 9px 16px;
  font-size: 14px;
  width: auto;
}

.gc-btnrow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.gc-btnrow .gc-btn { flex: 1 1 220px; width: auto; }

.gc-fine {
  font-size: 13px;
  color: var(--gc-muted);
  line-height: 1.55;
  margin: 14px 0 0;
  text-align: center;
}

/* ---------- certificate ---------- */

.gc-certimg {
  border: 1px solid var(--gc-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  line-height: 0;
}

.gc-certimg img { width: 100%; height: auto; display: block; }

.gc-certmeta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.gc-certmeta div {
  background: #f8fafc;
  border: 1px solid var(--gc-line);
  border-radius: 10px;
  padding: 10px 14px;
}

.gc-certmeta span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gc-muted);
  margin-bottom: 3px;
}

.gc-certmeta b { color: var(--gc-ink); font-size: 15px; }

/* ---------- bonuses ---------- */

.gc-bonusnote p { margin: 0 0 10px; line-height: 1.65; }
.gc-bonusnote p:last-child { margin-bottom: 0; }
.gc-bonusnote .gc-email { word-break: break-all; }

/* ---------- linkedin ---------- */

.gc-copybox { margin-top: 14px; }

.gc-flow {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
}

.gc-flow li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid var(--gc-line);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gc-body);
}

.gc-flow span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0a66c2;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.gc-copybox .gc-btn-small { width: 100%; }

.gc-linkedin .gc-btn-linkedin { margin-top: 14px; }

.gc-linkedin.is-copied .gc-flow li:first-child span { background: #16a34a; }

.gc-linkedin.is-copied .gc-btn-linkedin {
  animation: gc-nudge .45s ease 3;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, .18), 0 8px 22px rgba(10, 102, 194, .35);
}

@keyframes gc-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.gc-copybox textarea {
  width: 100%;
  border: 1.5px solid var(--gc-line);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  color: var(--gc-body);
  background: #f8fafc;
  resize: vertical;
  margin-bottom: 10px;
}

/* ---------- while the class is still running ---------- */

.gc-liveback {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff6f6;
  border: 1.5px solid #f3c4c4;
  border-left: 4px solid var(--gc-red);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.gc-liveback b {
  display: block;
  color: var(--gc-red-deep);
  font-size: 15px;
  margin-bottom: 3px;
}

.gc-liveback span:not(.gc-livedot) {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gc-body);
}

.gc-livedot {
  width: 11px;
  height: 11px;
  flex: none;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--gc-red);
  box-shadow: 0 0 0 0 rgba(196, 30, 58, .55);
  animation: gc-pulse 1.8s infinite;
}

@keyframes gc-pulse {
  70% { box-shadow: 0 0 0 11px rgba(196, 30, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .gc-livedot { animation: none; }
}

.gc-backnow {
  background: linear-gradient(160deg, #16213e, #2a1730);
  border: 0;
  text-align: center;
}

.gc-backnow .gc-ftitle { color: #fff; font-size: 22px; }
.gc-backnow p { color: rgba(255, 255, 255, .82); margin: 0; }

.gc-next { border-top: 3px solid var(--gc-gold); }

@media (max-width: 600px) {
  /* Tightened so the form itself is reachable on the first screen. */
  .gc-hero { padding: 26px 0 22px; }
  .gc-badge { margin-bottom: 12px; padding: 5px 13px; font-size: 12px; }
  .gc-hero h1 { margin-bottom: 10px; }
  .gc-lead { font-size: 15px; line-height: 1.5; }
  .gc-steps { margin-top: 16px; gap: 6px; }
  .gc-steps li { padding: 6px 12px 6px 6px; font-size: 13px; }
  .gc-steps span { width: 20px; height: 20px; font-size: 12px; }
  .gc-formsec { padding: 22px 0 50px; }
  .gc-card { padding: 22px 18px; }
}
