:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow: hidden; /* Prevent scrollbars */
}


/* Form App Styling */
.form-body {
    background: #001560;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.3);
    text-align: center;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 10;
}

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

.glass-card h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(30, 58, 138, 0.6);
}

.glass-card p {
    color: #ffffff;
    text-shadow: 0 1px 5px rgba(30, 58, 138, 0.5);
    margin-bottom: 2rem;
    font-weight: 500;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input[type="text"] {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: #ffffff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.glow-btn {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    color: #1e3a8a;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -10px rgba(30, 58, 138, 0.5);
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(30, 58, 138, 0.7);
    background: #f0f9ff;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

#successMessage {
    margin-top: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(30, 58, 138, 0.5);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

/* Main App Styling */
.main-body {
    background: url('Main Screen.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    width: 100vw;
    height: 100vh;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    transition: opacity 1s ease;
}

#container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.bouncing-name {
    position: absolute;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    white-space: nowrap;
    user-select: none;
    top: 0;
    left: 0;
    will-change: transform;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.envelope {
    position: absolute;
    font-size: 3rem;
    text-shadow: none;
    animation: envelopeSequence 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.wish-text {
    opacity: 0;
    transform: scale(0) translateY(20px);
    animation: textPopOut 0.8s 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes envelopeSequence {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    20% { transform: scale(1.2) rotate(15deg); opacity: 1; }
    40% { transform: scale(1) rotate(-10deg); opacity: 1; }
    60% { transform: scale(1) rotate(10deg); opacity: 1; }
    80% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(0) translateY(20px); opacity: 0; }
}

@keyframes textPopOut {
    0% { opacity: 0; transform: scale(0) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}


.bouncing-name.vanishing {
    transition: opacity 1s ease-out !important;
    opacity: 0;
}

/* --- New Codia AI Layout CSS --- */
:root {
  --default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft Yahei UI", "Microsoft Yahei",
    "Source Han Sans CN", sans-serif;
}

.main-container {
  overflow: hidden;
}

.main-container,
.main-container * {
  box-sizing: border-box;
}

.main-container input,
.main-container select,
.main-container textarea,
.main-container button {
  outline: 0;
}

.main-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  min-height: 100vh;
  margin: 0 auto;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flex-row-fe {
  position: relative;
  width: 100%;
  height: 56.572px;
  margin: 0 0 0 0;
  z-index: 5;
}
.group {
  position: absolute;
  width: 32.31%;
  height: 100%;
  top: 0;
  left: 0;
  background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2026-05-04/pAuUaeuSpN.png)
    no-repeat center;
  background-size: 100% 100%;
  z-index: 3;
}
.group-1 {
  position: absolute;
  width: 37.36%;
  height: 100%;
  top: 0;
  left: 62.64%;
  background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2026-05-04/zbBF4shHNg.png)
    no-repeat center;
  background-size: 100% 100%;
  z-index: 5;
}
.group-2 {
  position: absolute;
  width: 30.33%;
  height: 100%;
  top: 0%;
  left: 32.31%;
  background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2026-05-04/TO1MLCTz0C.png)
    no-repeat center;
  background-size: 100% 100%;
  z-index: 4;
}
.group-3 {
  position: relative;
  width: 60%;
  max-width: 232.34px;
  height: 107.574px;
  margin: 33px auto 0 auto;
  background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2026-05-04/f8JffD9oVz.png)
    no-repeat center;
  background-size: contain;
  z-index: 8;
}
.vector {
  position: relative;
  width: 136.17px;
  height: 20.17px;
  margin: 10px auto 0 auto;
  background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2026-05-04/3OhMTs3rO6.png)
    no-repeat center;
  background-size: 100% 100%;
  z-index: 10;
}
.samosir-mei {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: absolute;
  height: 74.37%;
  top: 15.29%;
  left: 8.87%;
  color: #ffffff;
  font-family: Poppins, var(--default-font-family);
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  text-align: left;
  white-space: nowrap;
  z-index: 9;
}
.overlay-border-shadow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  position: relative;
  width: 90%;
  margin: 47px auto 20px auto;
  padding: 32px 32px 32px 32px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 11;
  overflow: hidden;
  max-width: 448px;
  border-radius: 16px;
  backdrop-filter: blur(5px);
  box-shadow: 0 25px 50px 0 rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}
.background-blur {
  flex-shrink: 0;
  position: absolute;
  width: 128px;
  height: 128px;
  top: -50px;
  left: -50px;
  background: #60a5fa;
  opacity: 0.5;
  filter: blur(20px);
  z-index: 12;
  border-radius: 9999px;
}
.background-blur-4 {
  flex-shrink: 0;
  position: absolute;
  width: 128px;
  height: 128px;
  top: -50px;
  right: -50px;
  background: #67e8f9;
  opacity: 0.5;
  filter: blur(20px);
  z-index: 13;
  border-radius: 9999px;
}
.background-blur-5 {
  flex-shrink: 0;
  position: absolute;
  width: 128px;
  height: 128px;
  bottom: -50px;
  left: 80px;
  background: #5eead4;
  opacity: 0.5;
  filter: blur(20px);
  z-index: 14;
  border-radius: 9999px;
}
.container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 8px;
  position: relative;
  min-width: 0;
  z-index: 15;
}
.heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  flex-wrap: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 16;
}
.text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-basis: auto;
  position: relative;
  width: 166.88px;
  height: 40px;
  color: #ffffff;
  font-family: Inter, var(--default-font-family);
  font-size: 36px;
  font-weight: 800;
  line-height: 40px;
  text-align: center;
  white-space: nowrap;
  z-index: 17;
}
.shadow {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  flex-wrap: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 18;
}
.what-is-your-wish {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-basis: auto;
  position: relative;
  width: 166.08px;
  height: 28px;
  color: #ffffff;
  font-family: Inter, var(--default-font-family);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
  white-space: nowrap;
  z-index: 19;
}
.form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 24px;
  position: relative;
  padding: 24px 0 16px 0;
  z-index: 20;
}
.input {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: stretch;
  flex-wrap: nowrap;
  flex-shrink: 0;
  position: relative;
  padding: 14px 16px 14px 16px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 21;
  overflow: hidden;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}
.container-6 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 0;
  position: relative;
  z-index: 22;
  overflow: hidden;
}

/* Custom Input Class to replace .super-man text span */
.super-man-input {
  align-self: stretch;
  flex-shrink: 0;
  flex-basis: auto;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-family: Inter, var(--default-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  text-align: left;
  z-index: 23;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
}
.super-man-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex-wrap: nowrap;
  flex-shrink: 0;
  position: relative;
  padding: 12px 16px 12px 16px;
  background: #ffffff;
  z-index: 24;
  border-radius: 12px;
}

/* Custom Button overrides */
button.codia-button {
  border: none;
  cursor: pointer;
}

.button-shadow {
  flex-shrink: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(255, 255, 255, 0);
  z-index: 25;
  border-radius: 12px;
  box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.1);
}
.text-7 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-basis: auto;
  position: relative;
  width: 62.25px;
  height: 28px;
  color: #2563eb;
  font-family: Inter, var(--default-font-family);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  white-space: nowrap;
  z-index: 26;
}
.shadow-8 {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  flex-wrap: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 27;
}
.may-your-wish-come-true {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-basis: auto;
  position: relative;
  width: 181.89px;
  height: 20px;
  color: #ffffff;
  font-family: Inter, var(--default-font-family);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  z-index: 28;
}
.flex-row-ccd {
  position: relative;
  width: 100%;
  height: 78.127px;
  margin-top: auto;
  margin-bottom: 20px;
  z-index: 2;
}
.group-9 {
  position: absolute;
  width: 12.45%;
  height: 99.92%;
  top: 0;
  left: 87.55%;
  background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2026-05-04/vbMGcMaz5n.png)
    no-repeat center;
  background-size: 100% 100%;
  z-index: 1;
}
.group-a {
  position: absolute;
  width: 12.45%;
  height: 99.97%;
  top: 0.03%;
  left: 0;
  background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2026-05-04/ubJX49K3C8.png)
    no-repeat center;
  background-size: 100% 100%;
  z-index: 2;
}
.group-b {
  position: absolute;
  width: 75.1%;
  height: 53.76%;
  top: 46.16%;
  left: 12.45%;
  background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2026-05-04/74JksBZhs6.png)
    no-repeat center;
  background-size: contain;
}
