html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #edfcf8;
  color: #494d4b;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.collab-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.collab-widget-wrap {
  width: 100%;
  margin: 0 0 20px;
  text-align: center;
}

.collab-content {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  clear: both;
  text-align: center;
}

.collab-title {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
  color: #5d6663;
}

.collab-subtitle {
  margin: 0 0 28px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #66706d;
}

.collab-hero-image {
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
  margin: 0 auto 28px;
}

.collab-hero-image-small {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 28px;
}

.collab-info-text {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.55;
  color: #2f3030;
}

.collab-status-badge {
  margin-top: 10px;
  text-align: center;
}

.collab-status-badge a,
.collab-status-badge img {
  display: inline-block;
  vertical-align: middle;
}

.collab-status-badge img {
  max-width: 100%;
  height: auto;
  border: 0;
}

/* Optional safety for widget centering */
.elfsight-app-4ffc5fbe-f55e-4852-93cd-95f50d3ae6da {
  margin-left: auto;
  margin-right: auto;
}

/* -------- Intro / Content blocks -------- */

.collab-intro-block {
  max-width: 760px;
  margin: 0 auto 1.5rem auto;
  text-align: center;
}

.collab-intro-block h2 {
  margin: 0 0 0.8rem 0;
}

.collab-intro-block p {
  margin: 0.6rem 0;
}

.collab-email-display {
  font-size: 1.05rem;
  word-break: break-word;
}

.collab-help-text {
  max-width: 640px;
  margin: 0.8rem auto 0 auto;
}

.collab-pin-panel {
  max-width: 420px;
  margin: 1.5rem auto 2rem auto;
  text-align: center;
}

.collab-pin-panel label {
  display: block;
  margin-bottom: 0.8rem;
}

.collab-button-stack {
  margin-top: 1.4rem;
}

.collab-button-stack input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0.9rem auto;
}

.collab-illustration {
  text-align: center;
  margin-top: 2rem;
}

.collab-illustration img {
  max-width: 100%;
  height: auto;
}

/* -------- General form inputs -------- */

.collab-page input[type="text"],
.collab-page input[type="email"],
.collab-page input[type="password"],
.collab-page input[type="number"] {
  font-size: 16px;
  line-height: 1.3;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid #999;
  border-radius: 6px;
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
}

/* -------- Specific PIN field override -------- */

#PinCodeEntered {
  width: 120px;
  max-width: 120px;
  margin: 0 auto;
  display: block;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
}

/* -------- Optional focus polish -------- */

.collab-page input[type="text"]:focus,
.collab-page input[type="email"]:focus,
.collab-page input[type="password"]:focus,
.collab-page input[type="number"]:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

/* -------- Buttons -------- */

.button1 {
  width: 250px;
  display: inline-block;
  white-space: normal;
  border: none;
  border-radius: 4px;
  padding: 0.9rem 0.8rem;
  margin: 0;
  text-decoration: none;
  background: #02c39a;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
  transition: background 250ms ease-in-out, transform 150ms ease;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.button1:hover {
  background: #02c39a;
}

.button2 {
  width: 250px;
  display: inline-block;
  white-space: normal;
  border: none;
  border-radius: 4px;
  padding: 0.9rem 0.8rem;
  margin: 0;
  text-decoration: none;
  background: #05668d;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
  transition: background 250ms ease-in-out, transform 150ms ease;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.button2:hover {
  background: #02c39a;
}

.button3 {
  width: 250px;
  display: inline-block;
  white-space: normal;
  border: none;
  border-radius: 4px;
  padding: 0.9rem 0.8rem;
  margin: 0;
  text-decoration: none;
  background: #a9bcd0;
  color: #1a1410;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
  transition: background 250ms ease-in-out, transform 150ms ease;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.button3:hover {
  background: #02c39a;
}

.button4 {
  width: 250px;
  display: inline-block;
  white-space: normal;
  border: none;
  border-radius: 4px;
  padding: 0.9rem 0.8rem;
  margin: 0;
  text-decoration: none;
  background: #d62828;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
  transition: background 250ms ease-in-out, transform 150ms ease;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.button4:hover {
  background: #02c39a;
}

/* -------- Responsive -------- */

@media screen and (max-width: 768px) {
  .collab-page {
    padding: 22px 18px 32px;
  }

  .collab-subtitle {
    margin-bottom: 22px;
  }

  .collab-hero-image {
    max-width: 380px;
    margin-bottom: 22px;
  }

  .collab-info-text {
    margin-bottom: 26px;
  }
}

@media screen and (max-width: 480px) {
  .collab-page {
    padding: 18px 14px 28px;
  }

  .collab-title {
    font-size: 1.95rem;
  }

  .collab-subtitle {
    font-size: 0.98rem;
    margin-bottom: 20px;
  }

  .collab-hero-image {
    max-width: 300px;
  }

  .collab-info-text {
    font-size: 0.98rem;
  }

  #PinCodeEntered {
    width: 110px;
    max-width: 110px;
  }
}


@media screen and (max-width: 480px) {

  .collab-page {
    width: 100%;
    max-width: 100%;
    padding: 16px 12px 24px;
  }

  #content,
  .field,
  .collab-intro-block,
  .collab-pin-panel,
  .collab-button-stack,
  .collab-illustration {
    width: 100%;
    max-width: 100%;
  }

  .collab-page h1 {
    font-size: 1.9rem;
    line-height: 1.15;
    margin-bottom: 0.8rem;
  }

  .collab-intro-block h2 {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .collab-intro-block p,
  .collab-help-text,
  .collab-email-display,
  .collab-pin-panel label {
    font-size: 1rem;
    line-height: 1.45;
  }

  .collab-email-display {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .collab-page input[type="text"],
  .collab-page input[type="email"],
  .collab-page input[type="password"],
  .collab-page input[type="number"] {
    max-width: 100%;
    font-size: 16px;
  }

  #PinCodeEntered {
    width: 110px;
    max-width: 110px;
  }

  .button1,
  .button2,
  .button3,
  .button4,
  .collab-button-stack input[type="submit"] {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
  }

  .collab-illustration img,
  #header img {
    width: 100%;
    max-width: 260px;
    height: auto;
  }

  #footer {
    width: 100%;
    font-size: 0.92rem;
    line-height: 1.35;
    padding-left: 8px;
    padding-right: 8px;
  }
}


