/* =========================================================
   QUILLIFY — SUBMIT MANUSCRIPT PAGE
   Uses the same variables/classes as the main Quillify style.css.
   ========================================================= */

.submit-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 85px;
  background:
    radial-gradient(circle at 82% 0%, rgba(240,0,200,.15), transparent 28%),
    radial-gradient(circle at 20% 100%, rgba(176,105,255,.07), transparent 30%),
    linear-gradient(135deg, #fff 0%, #fff 54%, #fff7fd 100%);
}

.submit-hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -390px;
  top: -280px;
  border: 1px solid rgba(240,0,200,.10);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(240,0,200,.025),
    0 0 0 70px rgba(240,0,200,.015);
}

.submit-hero-orbit {
  position: absolute;
  border: 1px solid rgba(151,90,190,.08);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-a {
  width: 420px;
  height: 420px;
  left: -280px;
  bottom: -320px;
}

.orbit-b {
  width: 230px;
  height: 230px;
  right: 17%;
  bottom: -180px;
  border-color: rgba(240,0,200,.07);
}

.breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 9px;
  margin-bottom: 55px;
  color: #aaa3af;
  font-size: 12px;
}

.breadcrumb a {
  color: #77727e;
}

.submit-hero-content {
  position: relative;
  z-index: 2;
  max-width: 790px;
}

.submit-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(54px, 7vw, 92px);
}

.submit-hero-content > p:last-child {
  max-width: 690px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

/* Main */
.submission-section {
  padding: 90px 0 110px;
  background:
    radial-gradient(circle at 92% 15%, rgba(240,0,200,.045), transparent 25%),
    #faf9fb;
}

.submission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}

.submission-form {
  min-width: 0;
}

.form-intro,
.form-section,
.side-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 15px 45px rgba(23,21,29,.035);
}

.form-intro {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  align-items: end;
  padding: 32px 34px;
  margin-bottom: 14px;
}

.form-kicker,
.side-kicker {
  color: var(--magenta);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.form-intro h2 {
  margin: 8px 0 0;
  font-size: 27px;
}

.form-intro > p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.form-section {
  margin-bottom: 14px;
  padding: 34px;
}

.form-section-head {
  display: flex;
  gap: 18px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.form-section-head > span {
  flex: 0 0 auto;
  color: var(--magenta);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.form-section-head h3 {
  margin: 0 0 5px;
  font-size: 21px;
}

.form-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-grid {
  display: grid;
  gap: 20px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.form-grid label > span {
  color: #28232d;
  font-size: 12px;
  font-weight: 700;
}

.form-grid label b {
  color: var(--magenta);
}

.form-grid label small {
  color: #99929e;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e4dfe7;
  border-radius: 12px;
  background: #fff;
  color: #17151d;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: .2s ease;
}

input,
select {
  height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
  line-height: 1.7;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(240,0,200,.55);
  box-shadow: 0 0 0 4px rgba(240,0,200,.07);
}

input[type="file"] {
  height: auto;
  padding: 11px 12px;
  cursor: pointer;
}

.author-card {
  margin-bottom: 14px;
  padding: 24px;
  border: 1px solid #ebe6ed;
  border-radius: 18px;
  background: #fdfcfd;
}

.author-card:last-child {
  margin-bottom: 0;
}

.author-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.author-card-head strong {
  font-size: 14px;
}

.author-card-head small {
  color: var(--magenta);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.undertakings {
  display: grid;
  gap: 12px;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px;
  border: 1px solid #ebe6ed;
  border-radius: 14px;
  background: #fdfcfd;
  cursor: pointer;
}

.check-row input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--magenta);
}

.check-row span {
  color: #5e5864;
  font-size: 12px;
  line-height: 1.65;
}

.check-row a {
  color: var(--magenta);
  font-weight: 700;
}

.important-note {
  margin-top: 18px;
  padding: 18px;
  border-left: 3px solid var(--magenta);
  background: #fff6fd;
  border-radius: 0 12px 12px 0;
}

.important-note strong {
  font-size: 12px;
}

.important-note p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}

.submit-button,
.button-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 13px;
  background: #17151d;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(23,21,29,.12);
  transition: .2s ease;
}

.submit-button:hover,
.button-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(23,21,29,.18);
}

.submit-button span {
  color: var(--magenta);
}

.form-submit-row p {
  max-width: 360px;
  margin: 0;
  color: #9b949f;
  font-size: 10px;
  line-height: 1.5;
}

/* Sidebar */
.submission-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 95px;
}

.side-card {
  padding: 25px;
}

.side-card-highlight {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(240,0,200,.15), transparent 38%),
    #fff;
}

.side-card-highlight::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -105px;
  bottom: -125px;
  border: 1px solid rgba(240,0,200,.10);
  border-radius: 50%;
}

.side-card h3 {
  position: relative;
  z-index: 2;
  margin: 10px 0 10px;
  font-size: 22px;
}

.side-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.side-card-highlight a,
.contact-card a {
  display: block;
  position: relative;
  z-index: 2;
  margin-top: 14px;
  color: var(--magenta);
  font-size: 12px;
  font-weight: 800;
}

.timeline {
  margin-top: 22px;
}

.timeline > div {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  padding: 0 0 22px;
}

.timeline > div:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 25px;
  bottom: 0;
  width: 1px;
  background: #e5dfe8;
}

.timeline b {
  position: relative;
  z-index: 2;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid #e5dfe8;
  border-radius: 50%;
  background: #fff;
  color: var(--magenta);
  font-size: 9px;
}

.timeline strong {
  padding-top: 7px;
  font-size: 12px;
}

.timeline p {
  grid-column: 2;
  margin: -2px 0 0;
  font-size: 10px;
  line-height: 1.6;
}

.side-list {
  display: grid;
  gap: 11px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.side-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.side-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--magenta);
  font-weight: 900;
}

.contact-card {
  background: #17151d;
  color: #fff;
  border-color: #17151d;
}

.contact-card p {
  color: rgba(255,255,255,.6);
}

.contact-card a {
  color: #fff;
  word-break: break-word;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* Bottom CTA */
.submit-bottom-cta {
  position: relative;
  overflow: hidden;
  padding: 105px 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(240,0,200,.20), transparent 28%),
    linear-gradient(135deg, #fff, #fff6fd);
}

.submit-bottom-cta::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -330px;
  bottom: -330px;
  border: 1px solid rgba(240,0,200,.10);
  border-radius: 50%;
}

.submit-bottom-cta h2 {
  max-width: 650px;
  margin: 12px 0 30px;
  font-size: clamp(40px, 5vw, 66px);
}

/* Responsive */
.menu-toggle {
  display: none;
}

@media (max-width: 1000px) {
  .submission-layout {
    grid-template-columns: 1fr;
  }

  .submission-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-card-highlight,
  .contact-card {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .submit-hero {
    padding: 55px 0 65px;
  }

  .submission-section {
    padding: 60px 0 80px;
  }

  .submission-layout {
    display: block;
  }

  .form-intro {
    display: block;
  }

  .form-intro > p {
    margin-top: 16px;
  }

  .form-section {
    padding: 24px 18px;
  }

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

  .form-grid label.full {
    grid-column: auto;
  }

  .author-card {
    padding: 18px;
  }

  .author-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .submission-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .form-submit-row {
    display: block;
  }

  .form-submit-row p {
    margin-top: 12px;
  }

  .submit-button {
    width: 100%;
  }

  .breadcrumb {
    margin-bottom: 38px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 20px 50px rgba(23,21,29,.1);
  }

  .nav-links.mobile-open a {
    padding: 13px 0;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
  }
}


/* =========================================================
   FINAL SHARED HEADER — SUBMIT PAGE
   Keeps the submit page header visually identical to the
   Quillify site header while preventing page CSS clashes.
   ========================================================= */
.site-header .nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-left: auto;
  flex: 0 1 auto;
}

.site-header .nav-links > a {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0;
  color: #5f5b66;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: color .2s ease;
}

.site-header .nav-links > a:hover,
.site-header .nav-links > a.active {
  color: #17151d;
}

.site-header .nav-links > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #f000c8;
}

.site-header .nav-links > a {
  position: relative;
}

.site-header .policy-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
}

.site-header .policy-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f5b66;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.site-header .policy-trigger:hover,
.site-header .policy-dropdown.open .policy-trigger {
  color: #17151d;
}

.site-header .policy-arrow {
  font-size: 13px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .2s ease;
}

.site-header .policy-dropdown.open .policy-arrow {
  transform: rotate(180deg);
}

.site-header .policy-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 285px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e8e3eb;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(23,21,29,.12), 0 4px 15px rgba(23,21,29,.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.site-header .policy-menu::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid #e8e3eb;
  border-top: 1px solid #e8e3eb;
  transform: translateX(-50%) rotate(45deg);
}

.site-header .policy-dropdown.open .policy-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.site-header .policy-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  box-sizing: border-box;
  border-radius: 9px;
  color: #4f4a56;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  transition: background .18s ease, color .18s ease, padding-left .18s ease;
}

.site-header .policy-menu a:hover {
  background: #fff0fb;
  color: #ec00c8;
  padding-left: 16px;
}

.site-header .nav-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .site-header .nav { gap: 22px; }
  .site-header .nav-links { gap: 20px; }
  .site-header .nav-links > a,
  .site-header .policy-trigger { font-size: 14px; }
}

@media (max-width: 860px) {
  .site-header .nav { min-height: 68px; }
  .site-header .menu-toggle {
    display: flex;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
  }
  .site-header .menu-toggle span {
    width: 15px;
    height: 1.5px;
    background: var(--ink);
  }
  .site-header .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 20px 55px rgba(23,21,29,.10);
    z-index: 9998;
  }
  .site-header .nav-links.mobile-open { display: flex; }
  .site-header .nav-links > a {
    height: auto;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .site-header .nav-links > a.active::after { display: none; }
  .site-header .nav-links > a:hover { background: var(--soft); }
  .site-header .policy-dropdown {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .site-header .policy-trigger {
    width: 100%;
    height: 46px;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .site-header .policy-menu {
    position: static;
    width: 100%;
    transform: none;
    margin: 0;
    padding: 4px 0 4px 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-header .policy-menu::before { display: none; }
  .site-header .policy-dropdown.open .policy-menu {
    display: flex;
    flex-direction: column;
    transform: none;
  }
  .site-header .policy-menu a { min-height: 40px; font-size: 13px; }
  .site-header .nav-cta { display: none; }
}

@media (max-width: 620px) {
  .site-header .brand img { max-width: 118px; }
}
