/* UAE Startup Story Submit Press Release page
   (/submit-press-release/, page 992) - clean editorial landing.
   Same family as the Startup Stories and Success Stories
   archives: a cream hero, the site's ink and red accent, short
   headings, thin rules, no shadows, no gradients, no rounded
   cards. Scoped to .uss-pr-page, so other pages are untouched.
   Uses the design-system tokens and the same reduced type scale
   as the two category archives. */

.uss-pr-page {
  width: 100%;
  background: var(--uss-paper);
  color: var(--uss-ink);
  /* Titles and body text a touch smaller than the site default,
     scoped to this page only. */
  --uss-display: clamp(2rem, 4vw, 3rem);
  --uss-h2: clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: 0.875rem;
}

/* Full width: this page template renders inside GeneratePress's
   1200px grid-container, so the page reads narrower than the
   header and the grey body background shows at the sides.
   Break the grid-container out to the full viewport width;
   the inner .uss-container still holds the content to the
   1250px site width, aligned with the header. Same pattern as
   the News and category archive pages. */
body.page-template-template-submit-press-release .site.grid-container {
  max-width: 100%;
}

body.page-template-template-submit-press-release .site-content {
  display: block;
  padding: 0;
}

/* Shared section heading: short H2 with a thin rule. */
.uss-pr-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.uss-pr-head h2 {
  font-size: var(--uss-h2);
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.uss-pr-head-rule {
  flex: 1;
  border-top: 1px solid var(--uss-line);
  transform: translateY(-0.35rem);
}

/* ------------------------------------------------------------------
   Hero: warm cream, big serif title, intro, trust line.
   ------------------------------------------------------------------ */

.uss-pr-hero {
  background: var(--uss-paper-soft);
  border-bottom: 1px solid var(--uss-line);
  padding: 3.5rem 0 3rem;
}

.uss-pr-hero h1 {
  font-size: var(--uss-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 56rem;
}

.uss-pr-intro {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--uss-muted);
  max-width: 45rem;
  margin: 0 0 1rem;
}

.uss-pr-trust {
  font-size: var(--uss-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--uss-muted);
  margin: 0;
}

/* ------------------------------------------------------------------
   How it works: 3 numbered steps, one row.
   ------------------------------------------------------------------ */

.uss-pr-steps {
  padding: 3rem 0;
  border-bottom: 1px solid var(--uss-line);
}

.uss-pr-steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.uss-pr-step-num {
  display: inline-block;
  font-family: var(--uss-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--uss-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.uss-pr-steps-grid h3 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.uss-pr-steps-grid p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--uss-muted);
  margin: 0;
}

/* ------------------------------------------------------------------
   Form: white card with a thin border, holding the Elementor
   Pro form (rendered from library template 3075). The form's
   behaviour is Elementor's; only its appearance is restyled
   here so it matches the site.
   ------------------------------------------------------------------ */

.uss-pr-form-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--uss-line);
}

.uss-pr-form-card {
  border: 1px solid var(--uss-line);
  background: var(--uss-paper);
  padding: 2.5rem;
}

.uss-pr-form-intro {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--uss-muted);
  max-width: 45rem;
  margin: 0 0 1.5rem;
}

/* Elementor form: labels, fields, and button, matched to the
   site. The widget's own settings already set a 1px #DCDCDC
   field border and Inter 14px labels; these rules keep them
   in the design system and cover the button and messages. */
.uss-pr-form-card .elementor-form .elementor-field-group {
  margin-bottom: 1.25rem;
}

.uss-pr-form-card .elementor-form .elementor-field-group label {
  font-family: var(--uss-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--uss-ink);
  margin-bottom: 0.375rem;
}

.uss-pr-form-card .elementor-form .elementor-field {
  font-family: var(--uss-font-body);
  font-size: 0.9375rem;
  color: var(--uss-ink);
  border: 1px solid #dcdcdc;
  border-radius: 0;
  padding: 0.75rem 0.875rem;
  background: var(--uss-paper);
}

.uss-pr-form-card .elementor-form .elementor-field:focus {
  border-color: var(--uss-ink);
  outline: none;
}

.uss-pr-form-card .elementor-form textarea.elementor-field {
  min-height: 7rem;
  line-height: 1.6;
}

.uss-pr-form-card .elementor-form .elementor-field-type-upload .elementor-field {
  padding: 0.625rem 0.875rem;
}

/* Elementor's generated button rule (from the widget's
   button_background_color global) is more specific than a
   plain .uss-pr-form-card rule, so the button keeps Elementor's
   colour unless this selector outranks it. The long ancestor
   chain below beats it without !important. */
body.page-template-template-submit-press-release .uss-pr-page .uss-pr-form-card .elementor-form .elementor-button {
  font-family: var(--uss-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--uss-paper);
  background: var(--uss-ink);
  border: 1px solid var(--uss-ink);
  border-radius: 0;
  padding: 0.875rem 2rem;
  cursor: pointer;
}

body.page-template-template-submit-press-release .uss-pr-page .uss-pr-form-card .elementor-form .elementor-button:hover {
  background: var(--uss-ink-soft);
  color: var(--uss-paper);
}

.uss-pr-form-card .elementor-form .elementor-message {
  font-size: 0.875rem;
  line-height: 1.6;
}

.uss-pr-form-note {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--uss-muted);
  margin: 1.5rem 0 0.5rem;
}

.uss-pr-form-contact {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--uss-muted);
  margin: 0;
}

.uss-pr-form-contact a {
  color: var(--uss-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
   Plans: two cards side by side, Paid highlighted with a black
   top rule and a small flag. No shadows, no gradients.
   ------------------------------------------------------------------ */

.uss-pr-plans {
  padding: 3rem 0;
  border-bottom: 1px solid var(--uss-line);
}

.uss-pr-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  /* Both cards the same height: grid stretches the row, and
     each card is a flex column with its button pinned to the
     bottom (see .uss-pr-plan-cta), so the two buttons sit on
     the same line even when the card copy differs in length. */
  align-items: stretch;
}

.uss-pr-plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--uss-line);
  background: var(--uss-paper);
  padding: 2rem;
}

.uss-pr-plan-paid {
  border-top: 3px solid var(--uss-ink);
}

.uss-pr-plan-flag {
  display: inline-block;
  /* The card is a flex column, so its children stretch to full
     width by default; align-self keeps this badge only as wide
     as its own text instead of a full-width black bar. */
  align-self: flex-start;
  font-family: var(--uss-font-heading);
  font-size: var(--uss-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--uss-paper);
  background: var(--uss-ink);
  padding: 0.25rem 0.625rem;
  margin: 0 0 1rem;
}

.uss-pr-plan h3 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.uss-pr-plan-price {
  font-family: var(--uss-font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--uss-ink);
  margin: 0 0 0.5rem;
}

.uss-pr-plan-meta {
  font-size: 0.8125rem;
  color: var(--uss-muted);
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--uss-line);
}

.uss-pr-plan-features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.uss-pr-plan-features li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--uss-ink-soft);
  padding: 0.375rem 0 0.375rem 1.5rem;
  position: relative;
}

.uss-pr-plan-features li::before {
  position: absolute;
  left: 0;
  top: 0.375rem;
  font-weight: 700;
}

.uss-pr-plan-features .uss-pr-yes::before {
  content: "\2713";
  color: var(--uss-accent);
}

.uss-pr-plan-features .uss-pr-no {
  color: var(--uss-muted);
}

.uss-pr-plan-features .uss-pr-no::before {
  content: "\2013";
  color: var(--uss-muted);
}

.uss-pr-plan-best {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--uss-muted);
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--uss-line);
}

/* Plan buttons: scroll to the form and pre-select the plan.
   Black like the site's other buttons; the Paid card's button
   is the same, the card itself is already highlighted.
   margin-top: auto pins the button to the bottom of the card,
   so both plan buttons sit on the same line (equal-height
   cards, see .uss-pr-plans-grid).
   NOTE: these are <a> links inside .uss-custom, so a plain
   .uss-pr-plan-btn rule loses to the design-system link rules
   (.uss-custom a paints the label ink, invisible on the black
   button; .uss-custom a:hover paints it red). The long selector
   below, with the page-template body class, outranks both, so
   the label stays white at rest and on hover.
   The same specificity trap applies to the <p> wrapper itself:
   .uss-custom p (margin: 0 0 var(--uss-space-4)) beats a plain
   .uss-pr-plan-cta class and resets margin-top to 0, so the
   auto margin never took effect. The wrapper rule below uses
   the same long selector, so margin-top: auto actually applies. */
body.page-template-template-submit-press-release .uss-pr-page .uss-pr-plan-cta {
  margin-top: auto;
  padding-top: 1.25rem;
  margin-bottom: 0;
}

body.page-template-template-submit-press-release .uss-pr-page .uss-pr-plan-cta .uss-pr-plan-btn {
  display: block;
  text-align: center;
  font-family: var(--uss-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--uss-paper);
  background: var(--uss-ink);
  border: 1px solid var(--uss-ink);
  padding: 0.875rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
}

body.page-template-template-submit-press-release .uss-pr-page .uss-pr-plan-cta .uss-pr-plan-btn:hover,
body.page-template-template-submit-press-release .uss-pr-page .uss-pr-plan-cta .uss-pr-plan-btn:focus {
  background: var(--uss-ink-soft);
  color: var(--uss-paper);
  text-decoration: none;
}

/* ------------------------------------------------------------------
   FAQs: native <details> accordion, thin rules, no JS.
   ------------------------------------------------------------------ */

.uss-pr-faq {
  padding: 3rem 0;
}

.uss-pr-faq-list details {
  border-bottom: 1px solid var(--uss-line);
}

.uss-pr-faq-list details:first-child {
  border-top: 1px solid var(--uss-line);
}

.uss-pr-faq-list summary {
  font-family: var(--uss-font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--uss-ink);
  padding: 1.125rem 2rem 1.125rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.uss-pr-faq-list summary::-webkit-details-marker {
  display: none;
}

.uss-pr-faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.125rem;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--uss-accent);
}

.uss-pr-faq-list details[open ] summary::after {
  content: "\2013";
}

.uss-pr-faq-list summary:hover {
  color: var(--uss-accent);
}

.uss-pr-faq-list details p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--uss-muted);
  max-width: 50rem;
  margin: 0;
  padding: 0 2rem 1.25rem 0;
}

/* ------------------------------------------------------------------
   Responsive: stack the steps and the plans, tighten the form
   card padding.
   ------------------------------------------------------------------ */

@media (max-width: 64rem) {
  .uss-pr-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .uss-pr-plans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 48rem) {
  .uss-pr-form-card {
    padding: 1.5rem;
  }

  .uss-pr-plan {
    padding: 1.5rem;
  }

  .uss-pr-head h2 {
    white-space: normal;
  }
}
