:root {
  --primary-color: #de3e0f;
  --voucher-bg: #fffefa;
  --text-color: #24231d;
  --voucher-shadow: 0 6px 30px 0 rgba(64,38,8,0.05);
  --voucher-radius: 15px;
  --border-color: #f3bc87;
  --accent: #ea9a26;
  --success: #15803d;
  --error: #dc2626;
}
body {
  background: linear-gradient(120deg, #fefae0 0%, #f7efd5 100%);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text-color);
  min-height: 100vh;
}

.container {
  max-width: 510px;
  margin: 2.2rem auto 1.7rem;
  padding: 1rem;
}

.voucher-title {
  font-weight: 900;
  font-size: 1.29rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.35rem;
  letter-spacing: -0.01em;
}

.junina-info-box {
  background: var(--voucher-bg);
  color: #95480f;
  border: 1.2px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1.6rem;
  padding: 0.77em 1.04em 0.77em 0.96em;
  font-weight: 600;
  font-size: 1.05em;
  box-shadow: 0 2px 16px 0 rgba(186,127,74,0.05);
}

.junina-form {
  background: var(--voucher-bg);
  border-radius: var(--voucher-radius);
  box-shadow: var(--voucher-shadow);
  padding: 1.5rem 1.2rem 2rem 1.2rem;
  margin-bottom: 2.2rem;
}

.logo-reserva-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.3rem;
}

.logo-slot {
  border: 1.7px solid var(--border-color);
  background: #fff5ea;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(255,188,77,0.06);
  padding: 0.95rem 0.85rem 0.82rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 148px;
  min-height: 215px;
  transition: border 0.2s, box-shadow 0.2s;
}
.logo-slot.reserved {
  border: 2.2px solid var(--primary-color);
  background: #fff6eb;
  box-shadow: 0 3px 18px 0 #de3e0f25;
}

.slot-title {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.05em;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
  display: flex;
  gap: 0.28em;
  align-items: center;
}
.slot-number {
  font-size: 1em;
  color: var(--accent);
  background: #fff1e1;
  border-radius: 4px;
  padding: 2px 6px 2px 6px;
  font-weight: 600;
  margin-right: 3px;
}

.logo-preview-area {
  height: 70px;
  width: 100%;
  background: #f8ede5;
  border: 1.2px dashed #faab62;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4em;
  position: relative;
}
.logo-img-box {
  width: 96px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.user-logo-img {
  max-width: 90px;
  max-height: 60px;
  object-fit: contain;
  border-radius: 6px;
  border: 1.2px solid #f9ddbb;
  background: #fff;
}
.logo-placeholder {
  font-size: 0.97em;
  color: #be7c39;
  text-align: center;
  font-weight: 500;
}

.logo-name-input {
  margin-top: 0.6em;
  width: 100%;
  padding: 0.54em 0.8em;
  border-radius: 6px;
  border: 1.2px solid #fdbe14;
  background: #fffee9;
  font-size: 1.02em;
  font-weight: 600;
  margin-bottom: 0.58em;
}

.logo-upload-label {
  font-weight: 700;
  color: var(--primary-color);
  background: #fdeaaf;
  border-radius: 5px;
  border: 1px solid #e9b674;
  padding: 0.35em 0.98em 0.35em 0.8em;
  font-size: 1.01em;
  margin-top: 0.1em;
  margin-bottom: 0.3em;
  cursor: pointer;
  display: inline-block;
  transition: background 0.16s;
}
.logo-upload-label input[type="file"] {
  display:none;
}

.remove-logo-btn {
  background: #ffe4db;
  color: #b81b1f;
  border: none;
  border-radius: 4px;
  font-size: 0.97em;
  padding: 0.42em 0.92em;
  margin-top: 0.45em;
  cursor: pointer;
  font-weight: bold;
}

.junina-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5em;
}

.primary-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.74em 1.28em;
  font-weight: 800;
  font-size: 1.04em;
  box-shadow: 0 2px 12px 0 rgba(186,61,18,0.10);
  cursor: pointer;
  transition: background .15s;
}
.primary-btn:hover {
  background: #c93a0d;
}

.junina-msg {
  margin-top: 1.19em;
  padding: 0.62em 0.8em;
  border-radius: 6px;
  font-size: 1.06em;
  font-weight: 700;
  text-align: center;
}
.junina-msg.success { 
  color: var(--success); 
  background: #ecfdf5;
}
.junina-msg.error { 
  color: var(--error); 
  background: #fef2f2; 
}

.painel-preview-box {
  margin-top: 2.8em;
  margin-bottom: 1.7em;
}
.painel-title {
  color: var(--primary-color);
  font-weight: 900;
  text-align: center;
  font-size: 1.18em;
  margin-bottom: 1.05em;
}
.painel-preview {
  background: #fff9ec;
  border-radius: 12px;
  box-shadow: 0 3px 22px rgba(252,186,83,0.10);
  padding: 1.2em;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.16em 1em;
}
.painel-logo-area {
  background: #ffecbf;
  border: 1.7px solid #eebb46;
  border-radius: 10px;
  height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  justify-content: center;
  transition: border 0.21s, box-shadow 0.21s;
  box-shadow: 0 3px 8px rgba(255,189,89,0.04);
}
.painel-logo-area.filled {
  border: 2px solid var(--primary-color);
  background: #fff5ee;
}
.painel-logo-img {
  max-height: 56px;
  max-width: 88px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #f3c267;
}
.painel-placeholder {
  color: #af861e;
  font-size: 0.97em;
  text-align: center;
}
.painel-nome-label {
  margin-top: 0.18em;
  font-size: 0.96em;
  color: #a74b0a;
  font-weight: 700;
  background: #fff7e5;
  border-radius: 6px;
  padding: 0.13em 0.6em;
}

@media (max-width: 610px) {
  .container {
    max-width: 99vw;
    padding-left: 0.33rem;
    padding-right: 0.33rem;
  }
  .junina-form {
    padding: 1rem 0.33rem 2.1rem 0.33rem;
  }
  .logo-reserva-wrapper {
    grid-template-columns: 1fr;
  }
  .painel-preview {
    grid-template-columns: repeat(2, 1fr);
    gap: 1em 0.8em;
    padding: 0.8em;
  }
}

