/* Moscow-Pullman Daily News palette — see dnews/creative/BRAND.md */
:root {
  --dn-ink: #232323;          /* body text, matches the wordmark */
  --dn-paper: #ffffff;        /* page background */
  --dn-panel: #f4f7fa;        /* checkout panel background */
  --dn-rule: #d5dee6;         /* panel border, dividers (decorative) */
  --dn-muted: #55606b;        /* status text, order detail */
  --dn-field: #7d8893;        /* input borders */
  --dn-accent: #316a93;       /* CTA, links, focus (dnews.com primary) */
  --dn-accent-dark: #25506e;  /* CTA hover */
  --dn-accent-ring: rgba(49, 106, 147, 0.25);
  --dn-error: #862b2b;        /* error text and borders */
  --dn-error-bg: #fbeaea;
  --dn-error-rule: #e3b5b5;
}

body {
  color: var(--dn-ink);
  background-color: var(--dn-paper);
}

/* 1. The full-height vertical stack */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

*
{
    font-family: 'Neuton', Georgia, 'Times New Roman', serif;
    font-weight: 400;
}

/* 2. The Centering Wrapper */
.container {
  max-width: 600px; /* Adjust based on your design preference */
  margin-left: auto;
  margin-right: auto;
  /*padding: 0 1rem;   /* Prevents content from touching edges on mobile */
  width: 100%;       /* Ensures it doesn't shrink on smaller screens */
  text-align: center; /* Centers text and inline elements */
}

/* 3. Sticky Header (similar to the inspected element) */
.sticky-header {
  /*position: sticky;*/
  top: 0;
  z-index: 100;
  background-color: var(--dn-paper);
  padding-top: 0.75rem; /* logo clear space, see BRAND.md */
  /*border-bottom: 1px solid #eee;*/
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    text-wrap: balance;
    margin-bottom: 0.25rem;
    line-height: 1.2;

}

.subtitle {
    font-size: 1.75rem;
    margin-top: 0.25rem;
    margin-bottom: 35px;

}

.subtitle-note {
    display: block;
    font-size: 1.15rem;
    margin-top: 0.4rem;
    color: var(--dn-muted);
}

.footer {
    font-size: 0.95rem;
    margin-top: 10px;
}

.container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-btn {
  background-color: var(--dn-accent);
  color: white;
  border: none;
  padding: 25px 40px;
  font-size: 26px;
  cursor: pointer;

  text-decoration: none; /* Remove underline from links */
  color: white; /* Ensure text color is white for links */
  display: inline-block; /* Allow padding and other styles to apply to links */

  margin-top: 20px;
}

.cta-btn:hover {
    background-color: var(--dn-accent-dark);
}

.cta-text {
  margin-top: 10px;
  /*font-size: 1.2rem;*/
}

.nowrap {
    white-space: nowrap;
}

ul, ol {
    display: inline-block;
    text-align: left;
}

.two-column {
  display: flex;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.left-column {
  flex: 1;
  font-size: 1.35rem;
  /*margin-left: 75px;*/
}

.left-column .container {
  text-align: left;
}

.right-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.checkout-panel {
  width: 100%;
  max-width: 520px;
  background-color: var(--dn-panel);
  border: 1px solid var(--dn-rule);
  border-radius: 14px;
  padding: 1rem;
  box-sizing: border-box;
  margin-top: 20px;
}

.checkout-status,
.checkout-error {
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: left;
}

.checkout-status {
  color: var(--dn-muted);
}

.checkout-error {
  color: var(--dn-error);
  background-color: var(--dn-error-bg);
  border: 1px solid var(--dn-error-rule);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

/* Order summary */
.order-summary {
  margin-bottom: 1.25rem;
}

.order-summary-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.order-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.order-detail {
  font-size: 0.9rem;
  color: var(--dn-muted);
  margin-bottom: 0.5rem;
}

.order-detail span {
  font-size: 0.9rem;
}

.order-divider {
  border-top: 1px solid var(--dn-rule);
  margin: 0.6rem 0;
}

.order-total {
  font-weight: 700;
}

/* Form elements */
#payment-form {
  display: none;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  margin-top: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: 'Neuton', Georgia, 'Times New Roman', serif;
  border: 1px solid var(--dn-field);
  border-radius: 6px;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--dn-accent);
  box-shadow: 0 0 0 2px var(--dn-accent-ring);
}

.form-input.error {
  border-color: var(--dn-error);
}

.field-error {
  color: var(--dn-error);
  font-size: 0.9rem;
  min-height: 1.2em;
  margin-top: 0.25rem;
}

#payment-element {
  margin-top: 0.5rem;
}

.submit-btn {
  width: 100%;
  margin-top: 1.25rem;
  padding: 14px;
  font-size: 1.15rem;
  font-family: 'Neuton', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: #fff;
  background-color: var(--dn-accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.submit-btn:hover:not(:disabled) {
  background-color: var(--dn-accent-dark);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner[hidden] {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Video section */
.video-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
  text-align: center;
}

.video-section[hidden] {
  display: none;
}

.video-container {
  display: inline-block;
  max-width: 380px;
  cursor: pointer;
}

.video-container--expanded {
  display: block;
  max-width: 100%;
  cursor: default;
}

.video-thumb {
  position: relative;
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.video-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: background 0.2s;
}

.video-thumb:hover .play-overlay {
  background: rgba(0,0,0,0.35);
}

.play-icon {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

.video-cta {
  margin-top: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dn-accent);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .two-column {
    flex-direction: column;
  }

  .right-column {
    width: 100%;
  }

  .title {
    font-size: 1.7rem;
  }

  .subtitle {
    font-size: 1.3rem;
  }

  .subtitle-note {
    font-size: 1.05rem;
  }

  .left-column {
    font-size: 1.1rem;
  }
}
