@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

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

    :root {
      --green: #22c55e;
      --green-dark: #16a34a;
      --green-deeper: #15803d;
      --green-light: #bbf7d0;
      --green-xlight: #f0fdf4;
      --gray: #6b7280;
      --text: #0f1f14;
    }

    body {
      font-family: 'Nunito', sans-serif;
      background: var(--green-xlight);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* HEADER */
    header {
      background: linear-gradient(135deg, #14532d 0%, #15803d 50%, #22c55e 100%);
      padding: 16px 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 3px 20px rgba(22,163,74,0.35);
    }
    .logo-img {
      height: 52px;
      width: auto;
    }

    /* MAIN */
    main {
      flex: 1;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: clamp(16px, 4vw, 36px) clamp(12px, 4vw, 20px);
    }

    .layout {
      display: grid;
      width: 100%;
      max-width: 900px;
      background: white;
      border-radius: 24px;
      box-shadow: 0 12px 48px rgba(0,0,0,0.10);
      overflow: hidden;
      animation: slideUp 0.5s cubic-bezier(.22,1,.36,1) both;
      grid-template-columns: 1fr 1fr;
    }

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

    /* MANAGER SIDE */
    .manager-side {
      background: linear-gradient(165deg, #14532d 0%, #166534 35%, #15803d 65%, #16a34a 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      padding: 28px 20px 0;
      position: relative;
      overflow: hidden;
      min-height: 480px;
      order: 2;
    }
    .manager-side::before {
      content: '';
      position: absolute;
      top: -60px; right: -60px;
      width: 220px; height: 220px;
      background: rgba(255,255,255,0.06);
      border-radius: 50%;
    }
    .manager-side::after {
      content: '';
      position: absolute;
      top: 30px; left: -50px;
      width: 160px; height: 160px;
      background: rgba(255,255,255,0.04);
      border-radius: 50%;
    }

    .manager-info {
      text-align: center;
      position: relative;
      z-index: 2;
      margin-bottom: 18px;
      width: 100%;
    }
    .m-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255,255,255,0.16);
      border: 1px solid rgba(255,255,255,0.28);
      border-radius: 50px;
      padding: 5px 14px;
      font-size: 0.72rem;
      font-weight: 700;
      color: rgba(255,255,255,0.95);
      margin-bottom: 12px;
      backdrop-filter: blur(6px);
    }
    .m-name {
      font-size: 1.35rem;
      font-weight: 900;
      color: white;
      margin-bottom: 3px;
      text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .m-role {
      font-size: 0.8rem;
      color: rgba(255,255,255,0.75);
      margin-bottom: 14px;
    }
    .m-bubble {
      background: rgba(255,255,255,0.14);
      border: 1px solid rgba(255,255,255,0.22);
      border-radius: 16px 16px 16px 4px;
      padding: 13px 16px;
      font-size: 0.82rem;
      color: rgba(255,255,255,0.92);
      line-height: 1.55;
      text-align: left;
      max-width: 240px;
      backdrop-filter: blur(8px);
    }
    .m-bubble strong { color: white; font-weight: 800; }

    .m-photo-wrap {
      position: relative;
      z-index: 2;
      margin-top: 16px;
      width: 85%;
      max-width: 240px;
    }
    .m-photo-wrap img {
      width: 100%;
      display: block;
      border-radius: 16px 16px 0 0;
      object-fit: cover;
      object-position: top center;
      max-height: 220px;
    }
    .m-photo-fade {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 70px;
      background: linear-gradient(to bottom, transparent, #16a34a);
      pointer-events: none;
    }

    /* FORM SIDE */
    .form-side {
      padding: clamp(24px, 5vw, 44px) clamp(20px, 4vw, 40px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      order: 1;
      border-right: 1px solid #f0fdf4;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: var(--green-xlight);
      border: 1.5px solid var(--green-light);
      border-radius: 50px;
      padding: 5px 16px;
      font-size: 0.72rem;
      font-weight: 800;
      color: var(--green-deeper);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 16px;
      width: fit-content;
    }
    .tag-dot {
      width: 7px; height: 7px;
      background: var(--green);
      border-radius: 50%;
      animation: pulse 2s ease infinite;
    }
    @keyframes pulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.4); opacity: 0.7; }
    }

    .form-title {
      font-size: clamp(1.4rem, 3.5vw, 1.9rem);
      font-weight: 900;
      color: var(--text);
      line-height: 1.15;
      margin-bottom: 8px;
    }
    .form-title em {
      font-style: normal;
      color: var(--green-dark);
    }
    .form-sub {
      font-size: clamp(0.82rem, 2vw, 0.9rem);
      color: var(--gray);
      margin-bottom: clamp(18px, 3vw, 26px);
      line-height: 1.55;
    }

    .field { margin-bottom: 13px; }
    label {
      display: block;
      font-size: 0.72rem;
      font-weight: 800;
      color: var(--green-deeper);
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-bottom: 5px;
    }
    input, select, textarea {
      width: 100%;
      font-family: 'Nunito', sans-serif;
      font-size: clamp(0.88rem, 2vw, 0.96rem);
      color: var(--text);
      background: var(--green-xlight);
      border: 1.5px solid #d1fae5;
      border-radius: 12px;
      padding: 12px 14px;
      outline: none;
      transition: all 0.2s;
    }
    input:focus, select:focus, textarea:focus {
      border-color: var(--green);
      background: white;
      box-shadow: 0 0 0 3.5px rgba(34,197,94,0.18);
    }
    input::placeholder, textarea::placeholder { color: #b0c8b8; }
    select {
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2316a34a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      padding-right: 40px;
    }
    textarea { resize: none; height: 76px; }

    /* BUTTON */
    .btn-submit {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 16px;
      margin-top: 6px;
      background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
      color: white;
      font-family: 'Nunito', sans-serif;
      font-size: clamp(0.9rem, 2vw, 1.02rem);
      font-weight: 900;
      border: none;
      border-radius: 14px;
      cursor: pointer;
      box-shadow: 0 6px 22px rgba(22,163,74,0.40);
      transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
      letter-spacing: 0.2px;
    }
    .btn-submit:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 10px 30px rgba(22,163,74,0.50); }
    .btn-submit:active { transform: translateY(0); }

    .note {
      text-align: center;
      font-size: 0.73rem;
      color: #a3b8a9;
      margin-top: 10px;
    }

    /* SUCCESS */
    .success-view {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 40px 16px;
    }
    .success-view.show { display: flex; }
    .s-icon {
      width: 72px; height: 72px;
      background: linear-gradient(135deg, #15803d, #22c55e);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 18px;
      box-shadow: 0 10px 28px rgba(22,163,74,0.35);
      animation: popIn 0.4s cubic-bezier(.34,1.56,.64,1) both;
    }
    @keyframes popIn { from { transform: scale(0); opacity:0; } to { transform: scale(1); opacity:1; } }
    .s-icon svg { width: 34px; height: 34px; stroke: white; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
    .success-view h2 { font-size: 1.5rem; font-weight: 900; color: var(--text); margin-bottom: 10px; }
    .success-view p { color: var(--gray); font-size: 0.92rem; line-height: 1.6; max-width: 280px; }
    .btn-back {
      margin-top: 22px; padding: 12px 30px;
      background: var(--green-xlight); border: 1.5px solid var(--green-light);
      color: var(--green-deeper); font-weight: 700; font-size: 0.88rem;
      border-radius: 10px; cursor: pointer; font-family: 'Nunito', sans-serif;
      transition: background 0.15s;
    }
    .btn-back:hover { background: var(--green-light); }

    /* FOOTER */
    footer {
      background: #0f1f14;
      color: rgba(255,255,255,0.6);
      padding: 22px 24px;
      text-align: center;
    }
    .footer-logo {
      height: 32px;
      width: auto;
      margin-bottom: 12px;
      opacity: 0.85;
    }
    .footer-cnpj {
      font-size: 0.78rem;
      font-weight: 700;
      color: rgba(255,255,255,0.5);
      letter-spacing: 0.5px;
      margin-bottom: 4px;
    }
    .footer-address {
      font-size: 0.75rem;
      color: rgba(255,255,255,0.4);
      line-height: 1.5;
    }
    .footer-rights {
      margin-top: 12px;
      font-size: 0.72rem;
      color: rgba(255,255,255,0.3);
      border-top: 1px solid rgba(255,255,255,0.08);
      padding-top: 12px;
    }

    /* MOBILE */
    @media (max-width: 680px) {
      .layout {
        grid-template-columns: 1fr;
        border-radius: 20px;
      }
      .manager-side {
        order: 1;
        min-height: auto;
        padding: 28px 20px 0;
        border-radius: 0;
      }
      .m-bubble { max-width: 100%; font-size: 0.85rem; }
      .m-photo-wrap { max-width: 180px; margin-top: 14px; }
      .m-photo-wrap img { max-height: 180px; }
      .form-side {
        order: 2;
        border-right: none;
        border-top: 1px solid var(--green-light);
        padding: 28px 20px 24px;
      }
    }

    @media (max-width: 380px) {
      main { padding: 10px 8px; }
      .form-title { font-size: 1.3rem; }
    }

    @media (min-width: 1100px) {
      .layout { max-width: 960px; }
    }