:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --button: #111827;
  --buttonText: #ffffff;
  --danger: #b91c1c;
  --success: #166534;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px 28px;
  max-width: 520px;
  margin: 0 auto;
}

.header {
  padding: 10px 6px 4px;
  text-align: center;
}

.title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 100%;
}

.videoCard {
  /* No container styling */
}

.formCard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px 8px 12px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.videoFrame {
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.playButton {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, opacity 0.3s ease;
  z-index: 5;
}

.playButton:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

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

.playButton.hidden {
  opacity: 0;
  pointer-events: none;
}

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

.inputGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fieldLabel {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.textInput {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  outline: none;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textInput:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.textInput::placeholder {
  color: #9ca3af;
}

.inputWrapper {
  position: relative;
}

.input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px 45px 16px;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  outline: none;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.input::placeholder {
  color: #9ca3af;
}

.help {
  font-size: 13px;
  color: var(--muted);
  margin-top: -4px;
}

.error {
  font-size: 13px;
  color: var(--danger);
  font-weight: 500;
}

.success {
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
}

.button {
  position: absolute;
  bottom: 12px;
  right: 12px;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: var(--button);
  color: var(--buttonText);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.buttonText {
  display: inline;
}

.buttonIcon {
  font-size: 18px;
  line-height: 1;
}

.footer {
  text-align: center;
  padding: 10px 4px 0;
}

.footerText {
  color: var(--muted);
  font-size: 12px;
}

