/* ========================================================================= */
/* TECHYARTS STANDALONE ADS LANDING PAGE — MOBILE-FIRST PURE CSS3            */
/* ========================================================================= */

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

html,
body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #ffff00;
  color: #111111;
}

.hidden {
  display: none !important;
}

/* ------------------------------------------------------------------------- */
/* SCREEN 1: 10% TOP | 70% VIDEO (95% W) | 15% BOTTOM | 2.5% L/R PADDING     */
/* ------------------------------------------------------------------------- */
.video-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding-left: 2.5%;
  padding-right: 2.5%;
  background-color: #fffff0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  opacity: 1;
  transition: opacity 350ms ease-out;
  z-index: 20;
}

.video-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* TOP SPACE: 10% */
.top-space {
  width: 100%;
  height: 10%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 0;
}

.brand-logo {
  height: 150px;
  max-height: 46px;
  width: 100px;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

/* VIDEO AREA: 70% height, 100% of inner 95% width = 95% viewport width */
.video-area {
  position: relative;
  width: 100%;
  height: 70%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fffff0;
}

.video-frame {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 0;
  background-color: #000000;
}

.intro-video {
  max-width: 100%;
  max-height: calc(70dvh - 4px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background-color: #000000;
  pointer-events: auto;
  cursor: pointer;
}

/* Center Circular Play Button (Visible when paused / not started) */
.center-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  border: none;
  background-color: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 22;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  transition: transform 180ms ease, background-color 180ms ease;
}

.center-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.07);
  background-color: #f3f3f3;
}

.center-play-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.center-play-icon {
  width: 24px;
  height: 24px;
  margin-left: 3px;
  display: block;
}

/* Video Load Error Fallback (Keeps bottom contact button visible) */
.video-fallback {
  position: absolute;
  inset: 0;
  background-color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 24;
}

.fallback-card {
  max-width: 340px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #ffffff;
  color: #000000;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

.fallback-subtitle {
  font-size: 13px;
  color: #d4d4d4;
  line-height: 1.5;
}

/* BOTTOM SPACE: 15% — Permanent High-Contrast Contact Button */
.bottom-space {
  width: 100%;
  height: 15%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.contact-cta-btn {
  width: 300px;
  max-width: 460px;
  min-height: 48px;
  padding: 13px 16px;
  border-radius: 9999px;
  border: none;
  background-color: #000000;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 180ms ease, background-color 180ms ease;
}

.contact-cta-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-1px);
}

.contact-cta-btn:active {
  transform: scale(0.99);
}

/* Desktop responsiveness for Video Screen */
@media (min-width: 768px) {
  .brand-logo {
    max-height: 44px;
    max-width: 200px;
  }

  .video-frame {
    border-width: 3px;
  }

  .intro-video {
    max-height: calc(70dvh - 6px);
  }

  .center-play-btn {
    width: 76px;
    height: 76px;
  }

  .center-play-icon {
    width: 28px;
    height: 28px;
  }

  .video-area,
  .bottom-space {
    max-width: 960px;
  }

  .contact-cta-btn {
    width: auto;
    min-width: 340px;
    padding: 15px 32px;
    font-size: 13px;
  }
}

/* ------------------------------------------------------------------------- */
/* SCREEN 2: ENQUIRY FORM & SUCCESS SCREEN (WHITE BG, BLACK TEXT)            */
/* ------------------------------------------------------------------------- */
.enquiry-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  animation: fadeIn 350ms ease-out;
  z-index: 10;
}

.enquiry-container {
  width: 100%;
  max-width: 640px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.form-card {
  width: 100%;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid #d1d1d1;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid #e1e1e1;
  padding-bottom: 12px;
}

.form-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #000000;
}

.form-step {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666666;
}

.form-step-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
}

.field-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000000;
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  background-color: #e1e1e1;
  border: 1px solid #d1d1d1;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  color: #000000;
  font-family: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-input::placeholder {
  color: #666666;
}

.field-input:hover {
  border-color: #000000;
}

.field-input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px #d1d1d1;
}

.field-input.has-error {
  border-color: #dc2626;
}

.field-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.select-wrapper {
  position: relative;
}

.field-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #000000;
  pointer-events: none;
}

.field-textarea {
  resize: none;
  min-height: 76px;
}

.field-error {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: #dc2626;
  margin-top: 5px;
}

.server-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
}

/* Step 1 Buttons */
.step1-actions {
  padding-top: 12px;
  border-top: 1px solid #e1e1e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.primary-btn {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  transition: background-color 150ms ease;
}

.primary-btn:hover {
  background-color: #1a1a1a;
}

.secondary-link-btn {
  background: transparent;
  border: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000000;
  cursor: pointer;
  padding: 4px;
}

.secondary-link-btn:hover:not(:disabled) {
  text-decoration: underline;
}

.secondary-link-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Step 2 Buttons */
.step2-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #e1e1e1;
}

.pill-btn {
  height: 48px;
  border-radius: 9999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.pill-btn-secondary {
  padding: 0 20px;
  background-color: #e1e1e1;
  border: 1px solid #d1d1d1;
  color: #000000;
}

.pill-btn-secondary:hover:not(:disabled) {
  background-color: #d5d5d5;
}

.pill-btn-primary {
  padding: 0 26px;
  background-color: #000000;
  border: none;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.pill-btn-primary:hover:not(:disabled) {
  background-color: #1a1a1a;
}

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

/* Success View (Centered white background, black text, two lines) */
.success-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 320px;
  padding: 40px 28px;
  gap: 14px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background-color: #000000;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.success-title {
  font-size: 24px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.02em;
}

.success-message {
  font-size: 15px;
  color: #333333;
  line-height: 1.5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive Mobile Tweaks */
@media (max-width: 600px) {
  .enquiry-screen {
    padding: 12px;
  }

  .form-card {
    padding: 18px 16px;
    gap: 12px;
    max-height: calc(100dvh - 24px);
  }

  .field-row-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pill-btn {
    height: 44px;
    font-size: 11px;
  }

  .pill-btn-secondary {
    padding: 0 14px;
  }

  .pill-btn-primary {
    padding: 0 18px;
  }
}