/* ============================================
   Tex Software — Open Bar Check-In
   CONEXPO 2026 | Allē Lounge 66
   ============================================ */

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

:root {
  --red: #b50201;
  --black: #000000;
  --white: #ffffff;
  --gold: #d4a847;
  --yellow: #ffcc02;
  --bg: #080b14;
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.12);
  --text-muted: rgba(255, 255, 255, 0.5);
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Brand Bar ---- */

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  background: var(--black);
  border-top: 3px solid var(--gold);
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  color: var(--white);
}

.brand-plus {
  color: var(--gold);
  font-size: 13px;
}

.brand-right {
  color: var(--text-muted);
  letter-spacing: 0.2em;
}

/* ---- Main Layout ---- */

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100% - 39px);
}

/* ---- Hero Panel ---- */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-right: 1px dashed rgba(212, 168, 71, 0.25);
}

.hero-content {
  max-width: 480px;
}

/* Eyebrow badges */
.eyebrow-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.eyebrow-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.eyebrow-gold {
  border-color: var(--gold);
  color: var(--gold);
}

/* Tex signature bars */
.bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bars-top {
  margin-bottom: 12px;
}

.bars-top .bar:nth-child(1) { width: 50%; height: 2px; background: var(--gold); }
.bars-top .bar:nth-child(2) { width: 75%; height: 3px; background: var(--gold); }
.bars-top .bar:nth-child(3) { width: 100%; height: 4px; background: var(--gold); }

.bars-bottom {
  margin-top: 20px;
  margin-bottom: 20px;
}

.bars-bottom .bar:nth-child(1) { width: 100%; height: 4px; background: var(--gold); }
.bars-bottom .bar:nth-child(2) { width: 75%; height: 3px; background: var(--gold); }
.bars-bottom .bar:nth-child(3) { width: 50%; height: 2px; background: var(--gold); }

/* Headline */
h1 {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.headline-white {
  display: block;
  font-size: 76px;
  color: var(--white);
}

.headline-gold {
  display: block;
  font-size: 60px;
  color: var(--gold);
}

/* Venue info */
.venue-block {
  margin-bottom: 0;
}

.venue-name {
  font-family: 'Cairo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 2px;
}

.venue-address {
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.venue-datetime {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

/* Hosted by */
.hosted-by {
  padding-top: 20px;
  border-top: 1px dashed rgba(212, 168, 71, 0.25);
}

.hosted-label {
  display: block;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hosted-names {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.hosted-plus {
  color: var(--gold);
  font-size: 18px;
}

/* ---- Form Panel ---- */

.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.form-wrapper {
  width: 100%;
  max-width: 440px;
}

.form-title {
  font-family: 'Cairo', sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Form structure */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

/* Labels */
label {
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* Inputs */
input, select {
  width: 100%;
  padding: 13px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 0;
  color: var(--white);
  font-family: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, background 0.2s;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.09);
}

input.invalid, select.invalid {
  border-color: var(--red);
  background: rgba(181, 2, 1, 0.08);
}

/* Select placeholder state */
select:required:invalid {
  color: rgba(255, 255, 255, 0.2);
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select option {
  background: #1a1e2e;
  color: var(--white);
}

/* Submit button */
button[type="submit"] {
  width: 100%;
  padding: 16px;
  margin-top: 6px;
  background: var(--yellow);
  border: none;
  border-radius: 0;
  color: var(--black);
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background: #ffd83d;
}

button[type="submit"]:active {
  background: #e6b800;
}

button[type="submit"]:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
}

/* ---- Error Message ---- */

.error-msg {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(181, 2, 1, 0.1);
  border: 1px solid var(--red);
  color: var(--white);
  font-size: 14px;
  text-align: center;
}

/* ---- Success State ---- */

.success {
  text-align: center;
  max-width: 440px;
}

.success-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold);
  font-size: 32px;
  color: var(--gold);
  animation: checkPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: 'Cairo', sans-serif;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 8px;
}

.success-text {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.reset-btn {
  display: inline-block;
  padding: 14px 48px;
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: 0;
  color: var(--gold);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  transition: background 0.2s, color 0.2s;
}

.reset-btn:hover {
  background: var(--gold);
  color: var(--black);
}

/* ---- Utilities ---- */

.hidden {
  display: none !important;
}

/* ---- Responsive: iPad Portrait ---- */

@media (max-width: 850px) {
  main {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    border-right: none;
    border-bottom: 1px dashed rgba(212, 168, 71, 0.25);
    padding: 32px;
  }

  .headline-white {
    font-size: 56px;
  }

  .headline-gold {
    font-size: 44px;
  }

  .form-panel {
    padding: 32px;
    overflow-y: visible;
  }
}

/* ---- Responsive: Phone ---- */

@media (max-width: 500px) {
  .brand-bar {
    padding: 8px 16px;
    font-size: 10px;
  }

  .hero {
    padding: 24px 20px;
  }

  .eyebrow-row {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }

  .eyebrow-badge {
    font-size: 10px;
    padding: 3px 10px;
  }

  .headline-white {
    font-size: 44px;
  }

  .headline-gold {
    font-size: 34px;
  }

  .venue-name {
    font-size: 18px;
  }

  .form-panel {
    padding: 24px 20px;
  }

  .form-row {
    flex-direction: column;
  }
}
