/*
 * Film & Culture Market — Cinematography Workshop Registration
 * Developed by Ali Kibirige
 * Email: alikibirige98@gmail.com
 * Contact: +256 754 124551
 */

/* ---------- Theme ---------- */
:root {
  --cream: #fff7f1;
  --paper: #fffdf9;
  --orange: #f7941d;
  --orange-dark: #dc7410;
  --brown: #481f11;
  --ink: #201914;
  --muted: #6d625b;
  --line: #eadbd1;
  --success: #1f7a4d;
  --shadow: 0 24px 70px rgba(72, 31, 17, 0.14);
}

/* ---------- Base styles ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 6% 3%, rgba(247, 148, 29, 0.12), transparent 28%),
    linear-gradient(135deg, #fffaf6 0%, var(--cream) 60%, #fff 100%);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.045;
  background-image:
    linear-gradient(
      30deg,
      var(--brown) 12%,
      transparent 12.5%,
      transparent 87%,
      var(--brown) 87.5%,
      var(--brown)
    ),
    linear-gradient(
      150deg,
      var(--brown) 12%,
      transparent 12.5%,
      transparent 87%,
      var(--brown) 87.5%,
      var(--brown)
    );
  background-size: 90px 156px;
}

/* ---------- Page layout ---------- */
.shell {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.brand-logo {
  display: block;
  width: 235px;
  max-width: 48vw;
  height: 78px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.deadline {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brown);
  font-size: 13px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  grid-template-areas: "story content";
  align-items: start;
  gap: 30px;
}

.story {
  position: sticky;
  top: 22px;
  grid-area: story;
}

.content {
  grid-area: content;
}

/* ---------- Poster and workshop facts ---------- */
.poster-wrap {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.poster-wrap::after {
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
  opacity: 0.16;
}

.poster {
  display: block;
  width: 100%;
  border-radius: 19px;
  aspect-ratio: 882 / 1067;
  object-fit: cover;
}

.quickfacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.fact {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.fact b {
  display: block;
  color: var(--brown);
  font-size: 14px;
}

.fact span {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Content cards ---------- */
.card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.intro {
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  content: "";
}

h1 {
  margin: 16px 0 14px;
  color: var(--brown);
  font-family: "League Spartan", sans-serif;
  font-size: clamp(38px, 5vw, 61px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
}

.notice {
  display: flex;
  gap: 12px;
  margin: 22px 0 0;
  padding: 15px;
  border: 1px solid #ffd8a5;
  border-radius: 18px;
  background: #fff2df;
  color: #6a3b14;
  font-size: 14px;
}

.notice strong {
  display: block;
  color: var(--brown);
}

/* ---------- Registration form ---------- */
.section-title {
  margin: 30px 0 14px;
  color: var(--brown);
  font-family: "League Spartan", sans-serif;
  font-size: 22px;
}

.section-title:first-child {
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--brown);
  font-size: 13px;
  font-weight: 700;
}

.req,
label .req {
  color: var(--orange-dark);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #dfcfc5;
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font: 500 15px "DM Sans", sans-serif;
  transition: 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.13);
}

textarea {
  min-height: 125px;
  resize: vertical;
}

.help {
  color: var(--muted);
  font-size: 12px;
}

.dates {
  display: grid;
  gap: 10px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
}

.check span {
  font-size: 14px;
}

.check b {
  color: var(--brown);
}

.consent {
  margin-top: 22px;
}

.form-actions {
  margin-top: 18px;
}

button {
  width: 100%;
  padding: 17px 20px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 16px 30px rgba(220, 116, 16, 0.25);
  color: #fff;
  cursor: pointer;
  font: 800 16px "DM Sans", sans-serif;
  transition: 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(220, 116, 16, 0.31);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.privacy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.submission-frame {
  display: none;
}

/* ---------- Success message ---------- */
.success {
  display: none;
  padding: 35px 10px;
  text-align: center;
}

.success.show {
  display: block;
}

.success-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: #e3f5eb;
  color: var(--success);
  font-size: 34px;
}

.success h2 {
  margin: 0 0 8px;
  color: var(--brown);
  font-family: "League Spartan", sans-serif;
  font-size: 34px;
}

.success p {
  color: var(--muted);
}

/* ---------- Footer and developer signature ---------- */
footer {
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.developer-signature {
  margin-top: 6px;
}

.developer-signature a {
  color: var(--brown);
  text-decoration: none;
}

.developer-signature a:hover,
.developer-signature a:focus {
  color: var(--orange-dark);
  text-decoration: underline;
}

/* ---------- Responsive layout ---------- */
@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "story";
    gap: 20px;
  }

  .story {
    position: static;
    display: contents;
  }

  .content {
    display: contents;
  }

  .intro-card {
    grid-row: 1;
  }

  .poster-wrap {
    grid-row: 2;
    width: 100%;
    max-width: 620px;
    margin: auto;
  }

  .quickfacts {
    grid-row: 3;
    width: 100%;
    max-width: 620px;
    margin: 16px auto 0;
  }

  .form-card {
    grid-row: 4;
  }

  .card {
    padding: 28px;
  }
}

@media (min-width: 921px) {
  .intro-card,
  .form-card {
    border-radius: 30px;
  }

  .intro-card {
    margin-bottom: 18px;
  }
}

@media (max-width: 600px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    align-items: center;
    margin-bottom: 16px;
  }

  .deadline {
    display: none;
  }

  .brand-logo {
    width: 205px;
    max-width: 72vw;
    height: 70px;
  }

  .layout {
    gap: 16px;
  }

  .quickfacts {
    display: none;
  }

  .card {
    padding: 22px;
    border-radius: 22px;
  }

  .intro-card {
    padding-bottom: 23px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  h1 {
    font-size: 42px;
  }

  .poster-wrap {
    padding: 8px;
    border-radius: 22px;
  }

  .poster {
    border-radius: 15px;
  }
}
