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

body {
  background-color: #000;
  color: #fff;
  font-family: 'Times New Roman', Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 60px;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== HEADER ===== */
header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.logo img {
  width: 460px;
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto 30px;
}

/* ===== LANG BUTTONS ===== */
.lang-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.lang-buttons button {
  font-family: 'Times New Roman', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  background: transparent;
  color: #666;
  border: 1px solid #333;
  padding: 5px 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.lang-buttons button:hover,
.lang-buttons button.active-lang {
  color: #fff;
  border-color: #fff;
}

/* ===== MAIN / FORMS ===== */
main {
  width: 100%;
  position: relative;
  min-height: 320px;
}

.nightmare-form {
  width: 100%;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nightmare-form.active {
  opacity: 1;
  position: static;
  pointer-events: auto;
}

/* ===== FIELDS ===== */
.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
textarea {
  font-family: 'Times New Roman', serif;
  font-size: 1rem;
  padding: 10px 12px;
  width: 100%;
  background-color: #0d0d0d;
  color: #fff;
  border: 1px solid #2a2a2a;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #555;
}

input::placeholder,
textarea::placeholder {
  color: #3a3a3a;
  font-style: italic;
}

textarea {
  height: 160px;
  resize: vertical;
  line-height: 1.6;
}

/* ===== RECORDER ===== */
.recorder {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
}

.rec-btn {
  font-family: 'Times New Roman', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  background: transparent;
  color: #fff;
  border: 1px solid #444;
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.rec-btn:hover { border-color: #aaa; }

.rec-stop {
  border-color: #5a1a1a;
  color: #c06060;
}
.rec-stop:hover { border-color: #c06060; }

/* Pulsing red dot */
.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c04040;
  display: inline-block;
  flex-shrink: 0;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.rec-timer {
  font-family: 'Times New Roman', serif;
  font-size: 0.78rem;
  color: #666;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

/* Preview area */
.rec-preview-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-preview-wrap audio {
  width: 100%;
  height: 32px;
  filter: invert(1);
}

.rec-clear {
  font-family: 'Times New Roman', serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #555;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.2s;
}
.rec-clear:hover { color: #c06060; }

.hidden { display: none !important; }

/* ===== SUBMIT BUTTON ===== */
button[type="submit"] {
  font-family: 'Times New Roman', serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 10px 28px;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.2s, color 0.2s;
}

button[type="submit"]:hover {
  background-color: #fff;
  color: #000;
}

/* ===== FOOTER ===== */
footer {
  width: 100%;
  text-align: center;
  margin-top: 80px;
}

.footer-text {
  font-size: 0.72rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.instagram-link {
  display: inline-block;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.instagram-link:hover { opacity: 0.8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  body { padding: 30px 16px 50px; }
  .logo img { width: 260px; }
  textarea { height: 140px; }
}
