/* ==============================================================================
   TONI • MONTEIRO - RSVP Runway Invitation
   Design: Clean, Elegant, Conceptual High Fashion
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-primary: #f7f6f2;
  --card-bg: #ffffff;
  --text-primary: #111111;
  --text-muted: #6b6a67;
  --text-light: #9c9a94;
  --border-subtle: #e6e4dc;
  --border-focus: #111111;
  --button-dark: #111111;
  --button-dark-hover: #262626;
  --accent-gold: #8d7b68;
  --success-color: #2b5b3a;
  --error-color: #9d2b2b;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(circle at 80% 90%, rgba(220, 218, 210, 0.3), transparent 60%);
}

/* Background artistic subtle element */
.bg-decor {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 720px;
  height: 90vh;
  background: radial-gradient(circle, rgba(235, 233, 226, 0.5) 0%, rgba(247, 246, 242, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

/* Container Principal */
.invitation-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Card Principal */
.invitation-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 3rem 2.25rem;
  box-shadow: 
    0 4px 20px -2px rgba(0, 0, 0, 0.03),
    0 12px 40px -4px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: var(--transition-smooth);
}

/* Cabeçalho da Marca */
.brand-header {
  text-align: center;
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sculpture-icon-wrapper {
  width: 96px;
  height: 96px;
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sculpture-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.05);
  transition: transform 0.6s ease;
}

.sculpture-icon-wrapper:hover img {
  transform: scale(1.04);
}

.brand-logo-text {
  max-width: 250px;
  height: auto;
  margin-bottom: 1.25rem;
  display: block;
}

.collection-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.45rem 1rem;
  margin-top: 0.25rem;
  display: inline-block;
}

/* Informações do Desfile */
.event-brief {
  text-align: center;
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.event-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.event-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.meta-icon {
  opacity: 0.7;
}

/* Formulário */
.form-section {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.95rem 1rem;
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-light);
  font-weight: 300;
}

.form-input:focus {
  border-color: var(--border-focus);
  background-color: rgba(0, 0, 0, 0.01);
  box-shadow: 0 0 0 1px var(--border-focus);
}

/* Mensagem de Erro */
.form-error {
  display: none;
  font-size: 0.78rem;
  color: var(--error-color);
  margin-top: 0.4rem;
  letter-spacing: 0.02em;
}

.form-error.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Botão de Confirmação Principal */
.btn-submit {
  width: 100%;
  padding: 1.1rem 1.5rem;
  background-color: var(--button-dark);
  color: #ffffff;
  border: 1px solid var(--button-dark);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn-submit:hover:not(:disabled) {
  background-color: var(--button-dark-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Spinner no Botão */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-submit.loading .btn-spinner {
  display: inline-block;
}

.btn-submit.loading .btn-text {
  opacity: 0.7;
}

/* Nota de Privacidade */
.privacy-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 1.25rem;
  letter-spacing: 0.02em;
}

/* ==============================================================================
   Tela de Sucesso / Confirmação Realizada
   ============================================================================== */
.success-section {
  display: none;
  text-align: center;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  background-color: #faf9f7;
}

.success-badge svg {
  width: 24px;
  height: 24px;
}

.success-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.success-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* Detalhes do Evento na Confirmação */
.event-details-card {
  background-color: #faf9f6;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

.event-details-card .detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.event-details-card .detail-row:last-child {
  margin-bottom: 0;
}

.event-details-card .detail-icon {
  margin-top: 2px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.event-details-card .detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
}

/* Seção de Calendário */
.calendar-prompt {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.calendar-prompt-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.calendar-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-calendar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.btn-calendar:hover {
  border-color: var(--text-primary);
  background-color: #fbfaf8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.btn-calendar svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Rodapé */
.invitation-footer {
  text-align: center;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Animações */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsividade Mobile */
@media (max-width: 480px) {
  body {
    padding: 1.25rem 0.85rem;
  }

  .invitation-card {
    padding: 2.25rem 1.5rem;
  }

  .sculpture-icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 1.25rem;
  }

  .brand-logo-text {
    max-width: 210px;
  }

  .event-title {
    font-size: 1.55rem;
  }

  .success-title {
    font-size: 1.7rem;
  }
}
