
*{box-sizing:border-box}

:root{
  --blue:#3f6ee9;
  --screen-blue:#3f6ee9;
  --header:#344fb8;
  --navy:#293b61;
  --muted:#aab5ca;
  --line:#dde3ee;
  --white:#fff;
}

html,body{
  margin:0;
  width:100%;
  min-height:100%;
}

body{
  min-height:100svh;
  background:var(--blue);
  font-family:Inter,Arial,sans-serif;
  color:var(--navy);
  overflow-x:hidden;
}

.app{
  width:100%;
  min-height:100svh;
  margin:0 auto;
  position:relative;
}

/* Profile / photo area */
.profile{
  position:relative;
  width:100%;
  height:390px;
  overflow:hidden;
  background:#fff;
  text-align:center;
}

.portrait{
  position:absolute;
  inset:0;
  width:100%;
  height:390px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:#fff;
  overflow:hidden;
  box-shadow:none;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

.portrait img{
  display:block;
  width:100%;
  height:390px;
  object-fit:contain;
  object-position:center top;
  border-radius:0;
  background:transparent;
}

.profile-info{
  position:absolute;
  left:15px;
  right:15px;
  bottom:0;
  height:82px;
  z-index:5;
  background:var(--screen-blue);
  border-radius:26px 26px 0 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding-top:3px;
}

.profile h1{
  margin:0 0 5px;
  color:#fff;
  font-size:26px;
  line-height:1;
  font-weight:700;
}

.profile p{
  margin:0;
  color:#fff;
  font-size:14px;
  line-height:1;
  font-weight:600;
}

/* White form card */
.contact{
  width:calc(100% - 30px);
  margin:0 auto;
  position:relative;
  z-index:3;
}

.card{
  width:100%;
  background:#fff;
  border-radius:0 0 30px 30px;
  padding:22px 22px 24px;
  box-shadow:none;
}

.contact-intro{
  margin:0 0 20px;
  color:#1f2f4e;
  font-size:16px;
  line-height:1.2;
  font-weight:400;
}

.card form{width:100%}

.card label{
  display:block;
  color:var(--navy);
  font-size:18px;
  line-height:1;
  font-weight:600;
  margin:0 0 17px;
}

.input{
  width:100%;
  height:68px;
  margin-top:9px;
  border:2px solid var(--line);
  border-radius:20px;
  background:#fff;
  display:flex;
  align-items:center;
  transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease;
}

.input:focus-within{
  border-color:#90a6f3;
  box-shadow:0 0 0 4px rgba(63,110,233,.08);
  transform:translateY(-1px);
}

.input svg{
  flex:0 0 auto;
  width:23px;
  height:23px;
  margin:0 18px 0 20px;
  stroke:var(--blue);
  stroke-width:1.9;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}

input{
  width:100%;
  min-width:0;
  height:100%;
  border:0;
  outline:0;
  background:transparent;
  padding:0 16px 0 0;
  color:var(--navy);
  font-size:16px;
  font-weight:400;
}

input::placeholder{color:var(--muted);opacity:1}

button{
  width:100%;
  height:70px;
  margin-top:3px;
  border:0;
  border-radius:20px;
  background:var(--blue);
  color:#fff;
  font-size:24px;
  font-weight:800;
  letter-spacing:.5px;
  cursor:pointer;
  position:relative;
  transition:transform .2s ease,box-shadow .2s ease;
}

button:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(63,110,233,.22)}
button:active{transform:translateY(0)}

.spinner{
  display:none;
  position:absolute;
  left:50%;
  top:50%;
  width:21px;
  height:21px;
  margin:-10.5px;
  border:3px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .7s linear infinite;
}

button.loading{pointer-events:none;color:transparent}
button.loading .spinner{display:block}

.error{
  color:#d94d62;
  font-size:11px;
  text-align:center;
  min-height:13px;
  margin:5px 0 0;
}

.success{
  min-height:430px;
  border-radius:0 0 30px 30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  animation:in .5s ease;
}

.emoji{
  position:relative;
  width:105px;
  height:105px;
  margin-bottom:9px;
  animation:float 2.6s ease-in-out infinite;
}

.face{
  position:absolute;
  inset:7px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 25%,#b7e0ff,#6baaf6 42%,#3565dc);
  box-shadow:inset -8px -12px 16px rgba(23,69,170,.13),inset 6px 6px 14px rgba(255,255,255,.25),0 12px 24px rgba(63,110,233,.22);
  animation:pop .9s cubic-bezier(.2,.9,.3,1.3);
}

.eye{position:absolute;top:33px;width:18px;height:10px;border-top:3px solid #fff;border-radius:50%}
.eye.l{left:23px;transform:rotate(7deg)}
.eye.r{right:23px;transform:rotate(-7deg)}
.smile{position:absolute;left:50%;bottom:23px;width:43px;height:22px;transform:translateX(-50%);border-bottom:4px solid #fff;border-radius:0 0 43px 43px}
.emoji b{position:absolute;color:#fff;animation:spark 1.8s ease-in-out infinite}
.emoji b:nth-of-type(1){top:2px;left:3px}
.emoji b:nth-of-type(2){top:16px;right:0;animation-delay:.4s}
.emoji b:nth-of-type(3){bottom:5px;left:8px;animation-delay:.7s}
.success h3{margin:0;color:var(--blue);font-size:38px;font-weight:700}
.success p{max-width:470px;color:#59647c;line-height:1.5;font-size:15px;margin:11px 0}
.success hr{width:72%;border:0;border-top:1px solid #e3e7ee;margin:5px 0 13px}
.success strong{color:var(--blue);font-size:17px}

.brand-footer{
  width:100%;
  height:42px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:5px;
  padding-top:12px;
  color:#fff;
  white-space:nowrap;
  line-height:1;
}

.brand-name{font-size:16px;font-weight:500;letter-spacing:1px}
.brand-tag{font-size:9px;font-weight:400;letter-spacing:0;margin-top:3px}

[hidden]{display:none!important}

@keyframes spin{to{transform:rotate(360deg)}}
@keyframes in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@keyframes pop{from{transform:scale(.35);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes float{50%{transform:translateY(-6px)}}
@keyframes spark{50%{opacity:.45;transform:scale(1.2)}}

/* Web: narrower centered form, same visual hierarchy */
@media(min-width:601px){
  .app{max-width:1200px;padding-top:20px}
  .profile{
    width:min(100%,900px);
    height:430px;
    margin:0 auto;
    border-radius:30px 30px 0 0;
  }
  .portrait{height:430px}
  .portrait img{height:430px;object-fit:contain;object-position:center top}
  .profile-info{
    left:0;right:0;height:105px;border-radius:30px 30px 0 0
  }
  .profile h1{font-size:28px}
  .profile p{font-size:14px}
  .contact{width:min(560px,calc(100% - 40px))}
  .card{padding:26px 32px 28px;border-radius:0 0 30px 30px}
  .contact-intro{font-size:17px}
  .input{height:70px}
  button{height:72px}
  .brand-footer{height:46px}
}

/* Exact app-like mobile proportions */
@media(max-width:600px){
  .profile{height:390px}
  .portrait{height:390px}
  .portrait img{height:390px;object-fit:contain;object-position:center top}
  .contact{width:calc(100% - 30px)}
  .card{padding:22px 22px 24px}
}

@media(max-width:380px){
  .profile{height:350px}
  .portrait{height:350px}
  .portrait img{height:350px;object-fit:contain;object-position:center top}
  .profile-info{height:98px;left:13px;right:13px}
  .profile h1{font-size:23px}
  .profile p{font-size:12px}
  .contact{width:calc(100% - 26px)}
  .card{padding:20px 17px 22px}
  .input{height:64px}
  button{height:66px;font-size:23px}
}


/* Requested composition: white photo background + unchanged blue profile tab */
.profile,
.portrait {
  background: #fff !important;
}
.profile-info {
  background: var(--screen-blue) !important;
}


/* Profile tab = exact same width as the form */
.profile-info {
  left: 15px !important;
  right: 15px !important;
  width: auto !important;
}

@media (min-width: 601px) {
  .profile-info {
    width: min(560px, calc(100% - 40px)) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) {
  .profile-info {
    left: 15px !important;
    right: 15px !important;
    width: calc(100% - 30px) !important;
    transform: none;
  }
}

@media (max-width: 380px) {
  .profile-info {
    left: 13px !important;
    right: 13px !important;
    width: calc(100% - 26px) !important;
  }
}


/* Final compact profile tab */
.profile-info {
  height: 82px !important;
  padding-top: 3px !important;
}

.profile h1 {
  margin-bottom: 3px !important;
  line-height: 1 !important;
}

.profile p {
  line-height: 1 !important;
}

@media (max-width: 380px) {
  .profile-info {
    height: 76px !important;
  }
}


/* Final SHARE button typography */
button {
  font-size: 21px !important;
  letter-spacing: .35px !important;
  font-weight: 750 !important;
}

@media (max-width: 600px) {
  button {
    font-size: 20px !important;
  }
}

@media (max-width: 380px) {
  button {
    font-size: 19px !important;
  }
}


/* =========================================================
   ALEXON logo — top left
   ========================================================= */
.top-logo {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 20;
  display: block;
  width: 92px;
  height: auto;
  line-height: 0;
  text-decoration: none;
}

.top-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 25px;
  object-fit: contain;
  object-position: left center;
}

/* Keep the logo clear of the profile/photo area */
@media (max-width: 600px) {
  .top-logo {
    top: 18px;
    left: 18px;
    width: 88px;
  }

  .top-logo img {
    max-height: 25px;
  }
}

@media (max-width: 380px) {
  .top-logo {
    top: 15px;
    left: 15px;
    width: 82px;
  }
}

/* =========================================================
   Footer brand line — one visual size, directly below form
   ========================================================= */
.brand-footer {
  width: 100%;
  height: 39px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 5px !important;
  padding-top: 10px !important;
  margin: 0 !important;
  color: #fff;
  white-space: nowrap;
  line-height: 1 !important;
}

.brand-name,
.brand-tag {
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: .2px !important;
  line-height: 1 !important;
  margin-top: 0 !important;
}

.brand-tag {
  font-weight: 400 !important;
}

@media (min-width: 601px) {
  .brand-footer {
    height: 42px !important;
    padding-top: 10px !important;
  }

  .brand-name,
  .brand-tag {
    font-size: 12px !important;
  }
}

@media (max-width: 380px) {
  .brand-footer {
    height: 36px !important;
    padding-top: 8px !important;
  }

  .brand-name,
  .brand-tag {
    font-size: 10px !important;
  }
}


/* Mobile: reduce the gap above ALEXON Enterprise Innovations by 50% */
@media (max-width: 600px) {
  .brand-footer {
    padding-top: 4px !important;
  }
}

@media (max-width: 380px) {
  .brand-footer {
    padding-top: 4px !important;
  }
}


/* Photo section = exact same width as the form */
.profile {
  width: calc(100% - 30px) !important;
  margin: 0 auto !important;
}

.profile-info {
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  transform: none !important;
}

@media (min-width: 601px) {
  .profile {
    width: min(560px, calc(100% - 40px)) !important;
  }
}

@media (max-width: 600px) {
  .profile {
    width: calc(100% - 30px) !important;
  }
}

@media (max-width: 380px) {
  .profile {
    width: calc(100% - 26px) !important;
  }
}
