/* ============================================================
   Square Enix Collective – Responsive Styles
   (Form pages: formtop.html / confirm.html / complete.html)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

:root {
  --red:      #ed1c24;
  --orange:   #ff9f00;
  --dark:     #1a1a1a;
  --dark2:    #222222;
  --dark3:    #2a2a2a;
  --mid:      #333333;
  --border:   #3a3a3a;
  --text:     #cccccc;
  --white:    #ffffff;
  --font-cond: 'Lexend', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 105.73'><defs><style>.st0, .st1, .st2 { fill: none; } .st0, .st2 { stroke: %23fff; stroke-miterlimit: 10; } .st2 { stroke-linecap: round; } .st3 { display: none; } .st4 { opacity: .05; }</style></defs><rect class='st3' width='100' height='105.73'/><g class='st4'><polygon class='st0' points='50 105.73 100 80.8 100 24.93 100 24.93 50 0 0 24.93 0 80.8 50 105.73'/><polyline class='st2' points='0 24.93 50 49.86 100 24.93'/><line class='st2' x1='50' y1='105.73' x2='50' y2='49.86'/></g><rect class='st1' width='100' height='105.73'/></svg>");
	background-repeat: repeat;
	background-size: 60px 63.44px;
}

a { color: inherit; text-decoration: none; }

/* Sticky footer (desktop only – mobile content is always tall enough) */
@media (min-width: 769px) {
  html, body { height: 100%; }
  body { display: flex; flex-direction: column; }
  body > * { width: 100%; }
  body > main { flex: 1 0 auto; }
  body > .site-footer { flex-shrink: 0; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: none;
  border-radius: 4px;
  line-height: 1.4;
}
.btn-outline {
  background: transparent;
  border: 1px solid #666;
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); }
.btn-skyblue {
  background: #22b8d1;
  color: var(--white);
}
.btn-skyblue:hover { background: #fff; color: #22b8d1; }
.btn-skyblue:disabled { background: #424242; color: #999; opacity: 1; cursor: not-allowed; }
.btn-skyblue:disabled:hover { background: #424242; color: #999; }

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20,20,20,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-logos {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}
.header-logos .logo-se,
.header-logos .logo-col {
  display: flex;
  align-items: center;
}
.header-logos img {
  display: block;
  width: auto;
}
.header-logos .logo-se img {
  height: 19px;
  margin-top: 1px;
}
.header-logos .logo-col img {
  margin-top: 2px;
}

/* ── FOOTER ── */
.site-footer {
  background: #111;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 6px;
}
.footer-copy {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.footer-addr {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
}
.footer-nav a {
  font-size: 14px;
  color: #aaa;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-nav a:hover { color: var(--white); }
.form-footer-nav a {
  font-size: 14px;
  color: #aaa;
  transition: color 0.2s;
  white-space: nowrap;
}
.form-footer-nav a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .header-inner { justify-content: space-between; padding: 0 16px; gap: 10px; }
  .header-logos { gap: 15px; }
  .header-logos .logo-se img { height: 15px; }
  .header-logos .logo-col img { height: 25px; }
  .footer-inner { flex-direction: column; align-items: center; }
  .footer-nav { justify-content: flex-start; }
}

/* ============================================================
   FORMTOP PAGE
   ============================================================ */

.ft-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 64px;
}

/* Hero */
.ft-hero {
  margin-bottom: 48px;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ft-hero-inner { width: 100%; max-width: 768px; }
.ft-page-title {
  font-family: var(--font-cond);
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 24px;
}
.ft-hero-body {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--text);
}

/* Sections */
.ft-section { margin-bottom: 48px; }
.ft-section-title {
  font-family: var(--font-cond);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

/* Form section */
.ft-form-section {
  background: var(--dark3);
  padding: 40px;
  border: 1px solid #2a2a2a;
  text-align: center;
  margin-bottom: 48px;
}
.ft-success {
  background: transparent;
  margin-bottom: 32px;
  color: var(--text);
}
.ft-success b {
  color: #22b8d1;
  font-size: 24px;
  display: block;
  margin-bottom: 0.6rem;
  line-height: 2rem;
}
.ft-error {
  background: transparent;
  margin-bottom: 32px;
  color: var(--text);
}
.ft-error b {
  font-size: 24px;
  display: block;
  margin-bottom: 0.6rem;
  line-height: 2rem;
}
.ft-form-section--complete {
  background: var(--dark3);
  border: 0.4rem solid #22b8d1;
  max-width: 800px;
  margin: 0 auto 48px;
}
.ft-form-section--error {
  background: var(--dark3);
  border: 0.4rem solid #990000;
  max-width: 800px;
  margin: 3em auto;
}
.ft-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
  margin-top: 32px;
}
.ft-col-span-2 { grid-column: span 2; }
.ft-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ft-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.ft-label .ft-required { color: var(--red); }
.ft-input {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  padding: 12px 16px;
  width: 100%;
  color: #e5e2e1;
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ft-input::placeholder { color: #737373; }
select.ft-input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ft-input:focus {
  outline: none;
  border-color: #22b8d1;
  box-shadow: 0 0 0 1px #22b8d1;
}
.ft-input.ft-field-error:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.ft-input optgroup {
  color: #22b8d1;
  font-weight: 700;
  font-style: normal;
  background: #0a0a0a;
}
.ft-input option {
  color: #e5e2e1;
  font-weight: 400;
  background: #0a0a0a;
}

.ft-combo { position: relative; }
.ft-combo-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
}
.ft-combo-option {
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: #e5e2e1;
  cursor: pointer;
}
.ft-combo-option:hover,
.ft-combo-option--active {
  background: #1a1a1a;
  color: #22b8d1;
}

/* Platforms */
.ft-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.ft-platform-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #e5e2e1;
}
.ft-platform-label:hover { color: #fff; }
.ft-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}

/* File upload */
.ft-upload {
  border: 2px dashed #2a2a2a;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  background: rgba(10,10,10,0.5);
  transition: border-color 0.2s;
}
.ft-upload:hover,
.ft-upload.ft-upload--dragover { border-color: #22b8d1; }

/* Shared required-field error state */
.ft-field-error {
  border: 1px solid #ed1c24;
  box-shadow: 0 0 0 1px #ed1c24;
}
.ft-platform-grid.ft-field-error {
  padding: 12px;
  border-radius: 4px;
}
.ft-upload-icon { font-size: 40px; color: #525252; }
.ft-upload-text { font-size: 16px; color: var(--text); text-align: center; }
.ft-upload-text--filled { color: #22b8d1; }
.ft-upload-text--error { color: var(--red); }
.ft-upload-error-text { font-size: 13px; color: var(--red); text-align: center; margin-top: 4px; }
.ft-upload-hint { font-size: 12px; color: #737373; text-align: center; line-height: 1.5; }

/* Privacy */
.ft-privacy-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.ft-privacy-label {
  font-size: 16px;
  line-height: 1.6;
  color: #d4d4d4;
  cursor: pointer;
  text-align: left;
}
.ft-privacy-note {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  margin-top: -4px;
}
.ft-link { color: #ef4444; text-decoration: underline; }
.ft-link:hover { color: #f87171; }

/* Submit row */
.ft-submit-row { display: flex; justify-content: center; padding-top: 16px; }

/* Formtop responsive */
@media (max-width: 768px) {
  .ft-main { padding: 80px 24px 48px; }
  .ft-form-grid { grid-template-columns: 1fr; }
  .ft-col-span-2 { grid-column: span 1; }
  .ft-platform-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-page-title { font-size: 32px; }
  .ft-form-section { padding: 24px; }
  #field-message { min-height: 10rem; }
  .ft-success { font-size: 16px; }
  .ft-success b { font-size: 22px; }
}

/* Confirm page */
.confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
}
.confirm-table th,
.confirm-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  line-height: 1.6;
}
.confirm-table th {
  width: 220px;
  color: #22b8d1;
  font-weight: 600;
  white-space: nowrap;
}
.confirm-table td {
  word-break: break-word;
}
.ft-confirm-error {
  color: var(--red);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1rem;
}
.confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 1rem;
}
@media (max-width: 768px) {
  .confirm-table tr { display: block; margin-bottom: 0; }
  .confirm-table th,
  .confirm-table td { display: block; width: 100%; box-sizing: border-box; border-bottom: none; white-space: normal; }
  .confirm-table th { padding-top: 1rem; padding-right: 0; padding-bottom: 0.25rem; padding-left: 0; }
  .confirm-table td { padding-top: 0.25rem; padding-right: 0; padding-bottom: 1rem; padding-left: 0; border-bottom: 1px solid rgba(255,255,255,0.25); }
  .confirm-actions { flex-direction: column; align-items: stretch; }
  .confirm-actions .btn { text-align: center; box-sizing: border-box; }
}
