/* ============================================================
   Primeshare File Share — Important Service Notice
   styles.css
   ============================================================ */

/* ---------- Brand tokens ---------- */
:root {
  --brand-blue: #315BEF;
  --brand-navy: #102A56;
  --bg-light: #F4F7FF;
  --white: #FFFFFF;
  --green: #079455;
  --purple: #6938EF;
  --orange: #F79009;
  --text: #1D2939;
  --muted: #667085;
  --border: #D0D5DD;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 86, .06), 0 1px 3px rgba(16, 42, 86, .08);
  --shadow-md: 0 8px 24px rgba(16, 42, 86, .10);
  --shadow-lg: 0 20px 48px rgba(16, 42, 86, .18);
  --maxw: 1140px;
  --font: "Inter", Arial, Helvetica, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { line-height: 1.25; color: var(--brand-navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

a { color: var(--brand-blue); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

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

.section { padding: 48px 0; }

.section-title { text-align: center; margin-bottom: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .08s ease;
}
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand-blue); color: #fff; }
.btn-primary:hover { background: #254BC7; }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #05733F; }

.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: #532bc0; }

.btn-outline { background: transparent; color: var(--brand-blue); border-color: var(--brand-blue); }
.btn-outline:hover { background: rgba(49, 91, 239, .08); }

.btn-ghost { background: transparent; color: var(--brand-navy); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-light); }

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

/* Visible focus indicators */
:focus-visible {
  outline: 3px solid rgba(49, 91, 239, .55);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 40px; width: auto; }
.brand-sub {
  font-weight: 600;
  color: var(--muted);
  font-size: .95rem;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.notice-badge {
  background: #FFF4E5;
  color: #B54708;
  border: 1px solid #FEDF89;
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
  padding: 56px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 10px;
}
.hero-text { color: var(--muted); font-size: 1.08rem; max-width: 42ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-illustration svg { width: 100%; max-width: 340px; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(49,91,239,.25)); }

/* ---------- Paid notice panel ---------- */
.panel {
  display: flex;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #fff, var(--bg-light));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.panel-body { min-width: 0; }
.panel-body p:last-child { margin-bottom: 0; }

.calendar-visual {
  flex: 0 0 auto;
  width: 130px;
  height: 130px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid var(--brand-blue);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.calendar-visual .cal-top {
  position: absolute; top: 0; left: 0; right: 0; height: 26px;
  background: var(--brand-blue);
}
.calendar-visual .cal-top::before,
.calendar-visual .cal-top::after {
  content: ""; position: absolute; top: -8px; width: 8px; height: 18px;
  background: var(--brand-navy); border-radius: 4px;
}
.calendar-visual .cal-top::before { left: 30px; }
.calendar-visual .cal-top::after { right: 30px; }
.calendar-visual .cal-num {
  font-size: 3rem; font-weight: 800; color: var(--brand-navy);
  margin-top: 22px; line-height: 1;
}
.calendar-visual .cal-label {
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: .8rem; color: var(--brand-blue);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card .btn-block { margin-top: auto; }

.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-blue   { border-top-color: var(--brand-blue); }
.card-blue   .card-icon { background: rgba(49,91,239,.12); color: var(--brand-blue); }
.card-green  { border-top-color: var(--green); }
.card-green  .card-icon { background: rgba(7,148,85,.12); color: var(--green); }
.card-purple { border-top-color: var(--purple); }
.card-purple .card-icon { background: rgba(105,56,239,.12); color: var(--purple); }

.price { font-size: 2rem; font-weight: 800; color: var(--brand-navy); margin: 8px 0 4px; }
.card-note { font-size: .85rem; color: var(--muted); }
.payment-note { font-style: italic; }
.card-contact { font-weight: 600; }
.card-contact a { word-break: break-word; }

/* ---------- Important info ---------- */
.info-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 28px;
}
.info-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.info-mark { color: var(--orange); display: inline-flex; }
.info-head h2 { margin: 0; }
.info-list { margin: 0; padding-left: 22px; color: var(--text); }
.info-list li { margin-bottom: 8px; }
.info-list li:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-navy);
  color: #cdd7ea;
  margin-top: 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 20px;
  flex-wrap: wrap;
}
.footer-logo { height: 38px; width: auto; filter: brightness(0) invert(1); }
.tagline { margin: 10px 0 0; font-weight: 600; letter-spacing: .04em; color: #fff; }
.footer-meta { text-align: right; }
.footer-meta a { color: #fff; }
.footer-links { display: flex; gap: 8px; justify-content: flex-end; margin: 6px 0; }
.copyright { font-size: .85rem; color: #93a3c4; margin: 0; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(16, 42, 86, .55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }

.modal {
  background: #fff;
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin: auto;
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff; border-radius: var(--radius) var(--radius) 0 0;
}
.modal-title { margin: 0; font-size: 1.3rem; }
.modal-close {
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); padding: 8px; border-radius: 8px;
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg-light); color: var(--text); }
.modal-body { padding: 24px; }

.form-warning {
  background: #FFF4E5;
  color: #B54708;
  border: 1px solid #FEDF89;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 600;
  font-size: .92rem;
}
.context-notice {
  background: #EAF0FF;
  border: 1px solid #C6D6FF;
  color: var(--brand-navy);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .92rem;
}

/* ---------- "How to request" instructions ---------- */
.how-intro { margin-top: 4px; }
.how-list {
  margin: 0 0 16px;
  padding-left: 22px;
}
.how-list li { margin-bottom: 8px; }
#emailBtn { margin-top: 8px; }

/* ---------- Form ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.req { color: #D92D20; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  min-height: 44px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input[readonly] { background: var(--bg-light); color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-blue); }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #D92D20; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 0 0 16px;
}
fieldset legend { font-weight: 700; padding: 0 6px; color: var(--brand-navy); }

.checkbox-field {
  display: flex; align-items: flex-start; gap: 10px;
}
.checkbox-field input { width: auto; min-height: auto; margin-top: 4px; flex: 0 0 auto; }
.checkbox-field label { font-weight: 400; margin: 0; font-size: .9rem; }

/* Honeypot — hidden from real users but present in DOM */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-status { min-height: 1.2em; font-weight: 600; font-size: .92rem; margin: 4px 0 12px; }
.form-status.error { color: #D92D20; }
.form-status.ok { color: var(--green); }

.modal-actions { margin-top: 8px; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  border-top-color: #fff;
  display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Success panel ---------- */
.success-panel { text-align: center; padding: 20px 8px; }
.success-icon { color: var(--green); margin-bottom: 8px; }
.success-panel h3 { color: var(--green); }
.success-panel p { color: var(--muted); max-width: 44ch; margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-illustration { order: -1; }
  .panel { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 36px 0; }
  .header-contact { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-meta { text-align: left; }
  .footer-links { justify-content: flex-start; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }

  /* Modal becomes a near full-screen panel */
  .modal-overlay { padding: 0; align-items: stretch; }
  .modal { max-width: 100%; min-height: 100%; border-radius: 0; margin: 0; }
  .modal-header { border-radius: 0; }
}

@media (max-width: 360px) {
  body { font-size: 15px; }
  .container { padding: 0 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
