/* SavilTech — Agendar Reunião: branco + amarelo slideshow (#FFD60A), sem azul */

.meeting-section.meeting-linear {
  /* Mesmo amarelo do slideshow (header-premium), não o --gold azul do style.css */
  --gold: #ffd60a;
  --gold-light: #ffeb3b;
  --gold-dark: #e6b800;
  --accent-rgb: 255, 214, 10;
  --meeting-gold-glow: rgba(255, 214, 10, 0.65);

  position: relative;
  padding: clamp(40px, 6vw, 64px) 0 clamp(28px, 4vw, 40px);
  background: var(--black);
  border-top: 1px solid rgba(255, 214, 10, 0.12);
  overflow: hidden;
  accent-color: #ffd60a;
}

.meeting-section.meeting-linear .container {
  width: 100%;
  max-width: 100% !important;
  margin: 0;
  padding: 0 clamp(10px, 1.2vw, 18px);
}

/* Cabeçalho: texto branco, animação amarela */
.meeting-head {
  margin-bottom: clamp(18px, 3vw, 28px);
  text-align: center;
}

.meeting-head-title {
  margin: 0;
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.meeting-title-typing {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  padding-right: 12px;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.12);
}

.meeting-title-typing::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8%;
  height: 84%;
  width: 3px;
  background: linear-gradient(180deg, #ffeb3b, #ffd60a);
  box-shadow: 0 0 20px var(--meeting-gold-glow);
  animation: meetingCursorBlink 0.7s step-end infinite;
}

.meeting-title-typing::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  white-space: nowrap;
  color: #ffd60a;
  text-shadow:
    0 0 30px rgba(255, 214, 10, 0.55),
    0 0 60px rgba(255, 214, 10, 0.25);
  clip-path: inset(0 100% 0 0);
  animation: meetingTypeLoop 3.6s steps(22, end) infinite;
}

@keyframes meetingTypeLoop {
  0% { clip-path: inset(0 100% 0 0); }
  42% { clip-path: inset(0 0 0 0); }
  52% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 100% 0 0); }
}

@keyframes meetingCursorBlink {
  50% { opacity: 0; }
}

.meeting-title-bar {
  margin: 14px auto 0;
  max-width: min(720px, 92vw);
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.meeting-title-bar__fill {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #e6b800, #ffd60a, #ffeb3b);
  box-shadow: 0 0 12px var(--meeting-gold-glow);
  animation: meetingBarSlide 3.6s ease-in-out infinite;
}

@keyframes meetingBarSlide {
  0% { transform: translateX(-100%); width: 35%; }
  50% { transform: translateX(180%); width: 55%; }
  100% { transform: translateX(-100%); width: 35%; }
}

/* Formulário — largura total da página */
.meeting-section.meeting-linear .meeting-form {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: clamp(12px, 1.5vw, 16px) clamp(8px, 1vw, 12px);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

.meeting-section.meeting-ready .meeting-form {
  animation: meetingFormIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes meetingFormIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.meeting-row {
  display: grid;
  grid-template-columns:
    minmax(120px, 1.2fr)
    minmax(110px, 1fr)
    minmax(100px, 0.95fr)
    minmax(88px, 0.75fr)
    minmax(72px, 0.62fr)
    minmax(72px, 0.62fr)
    minmax(68px, 0.58fr)
    minmax(90px, 0.78fr)
    minmax(100px, 0.95fr)
    minmax(100px, 0.95fr)
    minmax(100px, 0.95fr)
    auto;
  gap: clamp(6px, 0.8vw, 10px);
  align-items: end;
  width: 100%;
}

.meeting-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.meeting-field label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
}

.meeting-field:hover label,
.meeting-field:focus-within label {
  color: #ffd60a;
}

.meeting-field input,
.meeting-field select,
.meeting-field--duration .meeting-duration {
  height: 44px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #000000;
  padding: 0 12px;
  font-family: var(--font);
  font-size: 0.86rem;
  color: #ffffff;
  outline: none;
  accent-color: #ffd60a;
  caret-color: #ffd60a;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.meeting-field input:focus-visible,
.meeting-field select:focus-visible {
  outline: 2px solid #ffd60a;
  outline-offset: 1px;
}

.meeting-field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.meeting-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-color: #000000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: calc(100% - 10px) 50%;
}

/* Lista suspensa: fundo preto, texto branco, hover/seleção amarelo slideshow */
.meeting-section.meeting-linear select option {
  background-color: #000000;
  color: #ffffff;
}

.meeting-section.meeting-linear select option:checked,
.meeting-section.meeting-linear select option:hover,
.meeting-section.meeting-linear select option:focus {
  background-color: #1a1a1a !important;
  color: #ffd60a !important;
}

.meeting-field select:hover,
.meeting-field input:hover {
  border-color: #ffd60a;
  background: #0a0a0a;
  box-shadow: 0 0 0 2px rgba(255, 214, 10, 0.2);
  color: #ffffff;
}

.meeting-field select:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffd60a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: calc(100% - 10px) 50%;
  background-color: #0a0a0a;
}

.meeting-field select:focus,
.meeting-field input:focus {
  border-color: #ffd60a;
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.28);
  transform: translateY(-1px);
  background: #000000;
  color: #ffffff;
}

.meeting-field select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffd60a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: calc(100% - 10px) 50%;
  background-color: #000000;
}

/* Data/hora — sem azul do browser */
.meeting-field input[type="date"],
.meeting-field input[type="time"] {
  color-scheme: dark;
}

.meeting-field input[type="date"]::-webkit-calendar-picker-indicator,
.meeting-field input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.2);
  cursor: pointer;
  opacity: 0.9;
}

.meeting-field input[type="date"]::-webkit-calendar-picker-indicator:hover,
.meeting-field input[type="time"]::-webkit-calendar-picker-indicator:hover {
  filter: brightness(0) saturate(100%) invert(84%) sepia(68%) saturate(650%) hue-rotate(3deg) brightness(103%) contrast(104%);
}

.meeting-field--duration .meeting-duration {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.25);
  background: #000000;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.meeting-field--duration:hover .meeting-duration,
.meeting-field--duration:focus-within .meeting-duration {
  border-color: #ffd60a;
  color: #ffd60a;
  box-shadow: 0 0 0 2px rgba(255, 214, 10, 0.2);
}

.meeting-field--cond[hidden] {
  display: none;
}

.meeting-field--cond:not([hidden]) {
  animation: meetingFieldIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes meetingFieldIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.meeting-actions {
  display: flex;
  align-items: flex-end;
}

.meeting-btn {
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.88rem;
  color: #ffffff;
  background: #000000;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.meeting-btn-glow {
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(255, 214, 10, 0.35), transparent 35%);
  animation: meetingBtnSpin 3s linear infinite;
  opacity: 0.35;
  pointer-events: none;
}

@keyframes meetingBtnSpin {
  to { transform: rotate(360deg); }
}

.meeting-btn i {
  position: relative;
  z-index: 1;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.25s ease;
}

.meeting-btn:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #ffd60a;
  background: rgba(255, 214, 10, 0.12);
  color: #ffd60a;
  box-shadow: 0 0 24px rgba(255, 214, 10, 0.4);
}

.meeting-btn:hover i {
  color: #ffd60a;
  transform: translateX(4px);
}

.meeting-status {
  margin-top: 12px;
  min-height: 22px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.meeting-status.ok {
  color: #ffeb3b;
}

/* Autofill do browser — evitar fundo azulado */
.meeting-section.meeting-linear input:-webkit-autofill,
.meeting-section.meeting-linear input:-webkit-autofill:hover,
.meeting-section.meeting-linear input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px #000000 inset;
  transition: background-color 9999s ease-out 0s;
}

.meeting-status.err {
  color: #ff8a80;
}

@media (max-width: 1280px) {
  .meeting-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 214, 10, 0.45) rgba(255, 255, 255, 0.08);
  }

  .meeting-field {
    flex: 1 1 0;
    min-width: 110px;
  }

  .meeting-field.meeting-field--cond[hidden] {
    display: none;
    flex: 0 0 0;
    min-width: 0;
  }

  .meeting-actions {
    flex: 0 0 auto;
    min-width: 120px;
  }
}

@media (max-width: 640px) {
  .meeting-head-title {
    font-size: clamp(1.5rem, 8vw, 2.25rem);
  }

  .meeting-title-typing {
    white-space: normal;
    max-width: 100%;
  }

  .meeting-title-typing::before {
    white-space: normal;
    position: relative;
  }
}
