:root {
  --purple: #513474;
  --teal: #17b7a5;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e2e8f0;
  --white: #ffffff;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 999999;
  font-family: "Poppins", sans-serif;
}

.popup-container {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 960px;
  display: flex;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

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

.close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s;
}
.close-btn:hover {
  transform: scale(1.1);
}

/* ================= LEFT SIDE ================= */
.popup-left {
  flex: 1.1;
  padding: 30px;
  position: relative;
  background-color: var(--white);
  border-radius: 20px 0 0 20px;
  overflow: hidden;
}

/* Teal circular background decoration */
.popup-left::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: rgba(23, 183, 165, 0.08);
  border-radius: 50%;
  z-index: 0;
}

.popup-left-content {
  position: relative;
  z-index: 2;
}

.popup-left .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.popup-left .tagline {
  font-size: 11px;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 15px;
  font-weight: 500;
}

.popup-left .main-heading {
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 15px;
  font-weight: 800;
}

.purple-text {
  color: var(--purple);
}
.teal-text {
  color: var(--teal);
}

.popup-left .desc {
  color: var(--text-dark);
  font-size: 15px;
  margin-bottom: 35px;
  max-width: 400px;
  line-height: 1.5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 10px;
  margin-bottom: 40px;
  max-width: 300px;
  position: relative;
  left: -20px;
}

.service-item {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.service-item .icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  font-size: 20px;
}

/* Wavy Purple Bottom */
.wavy-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 500 150" preserveAspectRatio="none" style="height: 100%; width: 100%;" xmlns="http://www.w3.org/2000/svg"><path d="M-4.22,96.21 C157.16,-6.41 334.36,114.96 505.35,39.96 L500.00,150.00 L0.00,150.00 Z" style="stroke: none; fill: %23513474;"></path></svg>')
    center bottom no-repeat;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  padding: 25px 30px;
  z-index: 999;
}

.bottom-features {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 20;
}

.feature {
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature i {
  font-size: 14px;
}

/* ================= RIGHT SIDE ================= */
.popup-right {
  flex: 0.9;
  background: var(--white);
  padding: 0px;
  border-radius: 16px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 5;
  margin: 0px;
}

.popup-right h2 {
  font-size: 26px;
  color: var(--purple);
  margin-bottom: 5px;
  font-weight: 700;
}

.popup-right > p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 30px;
}

.popup-right .form-group {
  margin-bottom: 18px;
  text-align: left;
}

.popup-right .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.required {
  color: #e74c3c;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 15px;
  background: var(--white);
  transition: all 0.3s ease;
}

.input-wrapper:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 183, 165, 0.1);
}

.input-wrapper i {
  color: #999;
  font-size: 16px;
  margin-right: 12px;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-dark);
  background: transparent;
  font-weight: 400;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: #aaa;
}

.textarea-wrapper {
  align-items: flex-start;
  padding-top: 12px;
}

.textarea-wrapper textarea {
  padding: 0;
  resize: none;
  height: 70px;
}

.phone-wrapper select {
  width: auto;
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid var(--border-color);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-weight: 500;
}

.submit-btn {
  width: 100%;
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition:
    background 0.3s,
    transform 0.1s;
  margin-top: 25px;
}

.submit-btn:hover {
  background: #149c8d;
}
.submit-btn:active {
  transform: scale(0.98);
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.form-footer::before,
.form-footer::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

@media (max-width: 900px) {
  .popup-container {
    flex-direction: column;
  }
  .popup-left {
    border-radius: 20px 20px 0 0;
    padding-bottom: 120px; /* space for wavy bg */
    display: none;
  }
  .popup-right {
    margin: 0;
    border-radius: 0 0 20px 20px;
    box-shadow: none;
    border-top: 1px solid var(--border-color);
  }
  .popup-overlay {
    align-items: flex-start;
  }
}

.popup-boy-img {
  position: absolute;
  bottom: 70px;
  right: -80px;
  width: 420px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

/* Handwritten Texts */
.heading-wrapper {
  position: relative;
}
.handwriting {
  font-family: "Caveat", cursive;
  color: var(--purple);
  font-size: 24px;
  line-height: 1.1;
  position: absolute;
  transform: rotate(-10deg);
}
.ideas-growth {
  right: 0;
  top: 20px;
}
.ideas-growth .arrow-svg {
  width: 40px;
  position: absolute;
  left: -40px;
  top: 20px;
  transform: rotate(340deg);
}
.success-priority {
  bottom: -120px;
  left: 20px;
  font-size: 28px;
  color: var(--teal);
  transform: rotate(-5deg);
}

/* Bottom Features Separator */
.feature-sep {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 15px;
}

/* Phone Input with Country Code */
.input-wrapper.phone-input {
  display: flex;
  align-items: center;
  padding-left: 15px;
}
.phone-icon {
  position: static !important;
  transform: none !important;
  margin-right: 10px;
  color: var(--purple) !important;
}
.country-code {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-right: 10px;
  border-right: 1px solid var(--border-color);
  margin-right: 10px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 14px;
}
.country-code img {
  width: 20px;
  border-radius: 2px;
}
.country-code i {
  font-size: 10px;
  color: #999;
}
.input-wrapper.phone-input input {
  padding-left: 0;
  border: none;
  flex: 1;
}

/* Submit Button Arrow */
.submit-btn i {
  margin-left: 10px;
  transition: transform 0.3s;
}
.submit-btn:hover i {
  transform: translateX(5px);
}

/* Form Footer */
.form-footer {
  text-align: center;
  margin-top: 15px;
  font-size: 12px;
  color: var(--text-light);
  position: relative;
}
.form-footer::before,
.form-footer::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20%;
  height: 1px;
  background: var(--border-color);
}
.form-footer::before {
  left: 0;
}
.form-footer::after {
  right: 0;
}
