:root{
  --primary:#5a2d91;
  --primary2:#6f3db8;
  --bg:#f5f2fa;
  --card:#ffffff;
  --text:#2b2b2b;
  --muted:#666;
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--bg);
  font-family:"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
}

.wrapper{
  max-width:1100px;
  margin:40px auto;
  padding:20px;
}

.card{
  background:var(--card);
  border-radius:18px;
  box-shadow:0 20px 50px rgba(0,0,0,.08);
  padding:30px;
}

/* 🎟 HEADER */
.event-header{
  background:#5a2d91;
  padding:26px 34px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:30px;
  border-radius:0 0 18px 18px;
  position:relative;
  min-height:120px;
}

.event-left{
  color:#fff;
}

.event-line{
  margin-bottom:14px;
}

.event-line .label{
  font-size:16px;
  font-weight:600;
  display:block;
}

.event-line .value{
  font-size:20px;
  font-weight:700;
}

/* 🟣 LOGO */
.event-right{
  position:absolute;
  top:0;
  right:50px;
}

.header-logo{
  max-width:170px;
  height:auto;
  display:block;
  transform:translateY(-26px); /* flat top effect */
}

/* 🧾 INTRO */
.intro-section{
  background:#fff;
  border-radius:16px;
  padding:36px;
  margin-bottom:30px;
  box-shadow:0 14px 36px rgba(0,0,0,.08);
}

.intro-section h1{
  margin-top:0;
  font-size:32px;
}

.intro-section p{
  font-size:16px;
  line-height:1.7;
  margin-bottom:16px;
}

.intro-section a{
  color:var(--primary);
  font-weight:600;
}

/* ===== FORM STYLE ===== */
form{
  padding:10px;
}

section{
  margin-bottom:40px;
}

section h2{
  font-size:20px;
  color:var(--primary);
}

.hint{
  font-size:14px;
  color:var(--muted);
}

label{
  display:block;
  margin:8px 0;
  font-size:14px;
}

input[type=text],
input[type=email],
select{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #ccc;
}

.options{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

input[type=radio],
input[type=checkbox]{
  accent-color:var(--primary);
  margin-right:6px;
}

button{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
  border:none;
  padding:14px 44px;
  border-radius:40px;
  font-size:17px;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(90,45,145,.4);
}

#msg{
  margin-top:15px;
  font-weight:600;
  color:var(--primary);
}

/* ===== "OTHER" INPUT FIELD ===== */
.other-input{
  display:none;
  margin-top:10px;
  width:100%;
}

/* ===== SOLUTION CATEGORY ACCORDION ===== */
.parent{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  background:#f4ecff;
  border-radius:12px;
  font-size:18px;
  font-weight:600;
  margin:12px 0;
  cursor:pointer;
}

.parent span{
  pointer-events:none;
}

.parent .arrow{
  font-size:22px;
  font-weight:bold;
  color:#5a2d91;
}

.sub-wrap{
  display:none;
  padding-left:24px;
  margin:10px 0;
  border-left:3px solid #6f3db8;
}

.sub-wrap label{
  padding-bottom:6px;
  font-size:15px;
  display:block;
}

/* ===== SUCCESS OVERLAY + MOON & BUBBLES ===== */
.sleep-overlay{
  position:fixed;
  inset:0;
  background:rgba(245,242,250,0.96);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:99999;
}

.sleep-box{
  background:#fff;
  padding:40px;
  border-radius:22px;
  text-align:center;
  width:88%;
  max-width:450px;
  box-shadow:0 20px 50px rgba(0,0,0,.15);
}

.sleep-box h1{
  color:#5a2d91;
  margin-bottom:12px;
  font-size:32px;
}

.moon{
  width:70px;
  height:70px;
  background:#ffe98a;
  border-radius:50%;
  box-shadow:-12px -12px 0 #fff inset;
  margin:0 auto 18px;
  animation:moonFloat 2.5s infinite ease-in-out;
}

/* bubbles */
.sleep-bubble{
  position:fixed;
  bottom:-20px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#dcbaff;
  opacity:0.85;
  animation:float-bubble 4.5s linear infinite;
  z-index:100000;
}

@keyframes float-bubble{
  0%{transform:translateY(0) scale(1);opacity:1;}
  100%{transform:translateY(-110vh) scale(1.6);opacity:0;}
}

@keyframes moonFloat{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-10px);}
}

/* 🟣 MOBILE FIXES */
@media(max-width:768px){
  body,.wrapper,.card{overflow-x:hidden;}
  .wrapper{padding:0;}
  .card{border-radius:0;box-shadow:none;padding:26px;}

  .event-header{
    flex-direction:column;
    padding:20px 16px 28px;
    text-align:center;
  }

  .event-right{
    position:relative;
    order:-1;
    width:100%;
    display:flex;
    justify-content:center;
    margin-bottom:10px;
  }

  .header-logo{
    max-width:180px;
    margin:0 auto;
    transform:translateY(-0px);
  }

  .options{
    grid-template-columns:1fr;
  }
}
/* Highlight required labels purple + bold */
label[for="profession"] ,
label[for="area"] {
  font-weight: 700;
  color: #5a2d91;
}

/* 🎯 Mobile – force center alignment of logo */
@media (max-width: 768px) {
  .event-right {
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    position: relative !important; /* stops floating out of container */
  }

  .header-logo {
    margin: 0 auto !important;
    display: block !important;
    transform: translateY(-22px) !important;
  }
}

