/* Contact Plane. Original "contact us" CSS prefixed cnt-, plus the kit section at the end. Pairs with contact-plane.js.
   .cnt-container is the optional pink page background; the card itself is .cnt-card-wrapper. */
.cnt-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff9ba5, #feb48e);
  padding: 20px;
}

.cnt-card-wrapper {
  position: relative;
  width: 900px;
  max-width: 100%;
}

.cnt-card {
  background: #ffffff;
  border-radius: 40px;
  display: flex;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  padding: 50px 60px;
  gap: 50px;
  z-index: 10;
  overflow: hidden;
}

/* Background circles inside card */
.cnt-bg-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 1; /* Behind card contents but above background */
}

.cnt-bg-circle-1 {
  width: 90px; height: 90px;
  background: #fff0f0;
  top: 15%; left: 32%;
}
.cnt-bg-circle-2 {
  width: 40px; height: 40px;
  background: #fff0f0;
  top: 35%; left: 22%;
}
.cnt-bg-circle-3 {
  width: 180px; height: 180px;
  background: #fff5f5;
  bottom: -30px; left: 15%;
}
.cnt-bg-circle-4 {
  width: 30px; height: 30px;
  background: #fff0f0;
  bottom: 15%; left: 45%;
}

/* External Pills */
.cnt-pill-decor {
  position: absolute;
  border-radius: 30px;
  z-index: 5; /* behind the card */
}

.cnt-pill-left-top {
  width: 120px;
  height: 45px;
  background: white;
  left: -40px;
  bottom: 150px;
}
.cnt-pill-left-bottom {
  width: 100px;
  height: 45px;
  background: white;
  left: -20px;
  bottom: 90px;
}

.cnt-pill-right-top {
  width: 100px;
  height: 35px;
  background: white;
  right: -30px;
  top: 70px;
}
.cnt-pill-right-bottom {
  width: 80px;
  height: 35px;
  background: #db4b68;
  right: -25px;
  top: 110px;
}

.cnt-illustration-side {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cnt-paper-plane-svg {
  transform: translateY(-20px) scale(1.1);
}

.cnt-form-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
  padding: 10px 0;
}

.cnt-header {
  display: flex;
  align-items: center;
  gap: 120px;
  margin-bottom: 15px;
}

.cnt-header h2 {
  margin: 0;
  color: #5d5964;
  font-size: 26px;
  font-weight: 600;
}

.cnt-input-group {
  display: flex;
  align-items: center;
  background: #f1f1f4;
  border-radius: 20px;
  padding: 0 20px;
  height: 55px;
  transition: box-shadow 0.2s;
}

.cnt-input-group:focus-within {
  box-shadow: 0 0 0 2px var(--cnt-ring);
}

.cnt-input-icon {
  color: #a0a0a0;
  margin-right: 15px;
}

.cnt-input-group input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 15px;
  color: #555;
  font-family: 'Inter', sans-serif;
}

.cnt-input-group input::placeholder,
.cnt-textarea-group textarea::placeholder {
  color: #a8a8a8;
}

.cnt-textarea-group {
  height: auto;
  padding: 20px;
  align-items: flex-start;
}

.cnt-textarea-group textarea {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  height: 100px;
  resize: none;
  font-size: 15px;
  color: #555;
  font-family: 'Inter', sans-serif;
}

.cnt-submit-btn {
  background: linear-gradient(to right, var(--cnt-a), var(--cnt-b));
  color: white;
  border: none;
  border-radius: 30px;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(247, 128, 111, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  margin-top: 15px;
  font-family: 'Inter', sans-serif;
}

.cnt-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(247, 128, 111, 0.4);
}

.cnt-socials {
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 15;
}

.cnt-social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s;
}

.cnt-social-icon:hover {
  transform: translateY(-4px);
}

.cnt-social-icon.cnt-facebook { background: #3b5998; }
.cnt-social-icon.cnt-x { background: #111; }
.cnt-social-icon.cnt-linkedin { background: #0a66c2; }
.cnt-social-icon.cnt-instagram { background: linear-gradient(45deg, #f9a43a, #e1306c, #833ab4); }

@media (max-width: 900px) {
  .cnt-card {
    flex-direction: column;
    padding: 40px 30px;
  }
  .cnt-header {
    gap: 40px;
  }
  .cnt-card-wrapper {
    width: 100%;
  }
  .cnt-pill-decor {
    display: none; /* Hide external decorations on smaller screens */
  }
}

/* ==========================================================================
   Kit additions (vanilla version)
   ========================================================================== */
.cnt-card-wrapper {
  --cnt-a: #fc9b7d;            /* button gradient start */
  --cnt-b: #f98471;            /* button gradient end */
  --cnt-ring: #ffb48e;         /* focus ring */
  --cnt-ink: #5d5964;
  --cnt-ok: #2b8a3e;
  --cnt-p1: #e25877; --cnt-p2: #ffb49e; --cnt-p3: #ed84a1; --cnt-p4: #ffc3b2;   /* plane */
  margin: 0 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.cnt-card-wrapper *, .cnt-card-wrapper *::before, .cnt-card-wrapper *::after { box-sizing: border-box; }
.cnt-header h2 { width: 100%; margin: 0 0 20px; text-align: center; color: var(--cnt-ink); }
.cnt-stage { position: relative; width: 100%; }
.cnt-form { display: flex; flex-direction: column; gap: 20px; width: 100%; margin: 0; transition: opacity .4s, transform .4s, filter .4s; }
.cnt-sent .cnt-form, .cnt-busy .cnt-form { opacity: 0; transform: scale(.95); filter: blur(4px); pointer-events: none; }
.cnt-input-group input, .cnt-textarea-group textarea { font-family: inherit; }
.cnt-input-icon { flex-shrink: 0; width: 20px; height: 20px; }
.cnt-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cnt-submit-btn:focus-visible, .cnt-social-icon:focus-visible { outline: 2px solid var(--cnt-ink); outline-offset: 3px; }
.cnt-submit-btn svg { width: 18px; height: 18px; }
.cnt-error { margin: -6px 0 0; color: #c92a2a; font-size: 14px; font-weight: 500; text-align: center; }
.cnt-error:empty { display: none; }
a.cnt-social-icon { text-decoration: none; }

/* Plane */
.cnt-paper-plane-svg { overflow: visible; will-change: transform; }
.cnt-plane polygon { transition: fill .5s; }
.cnt-plane .cnt-f1 { fill: var(--cnt-p1); } .cnt-plane .cnt-f2 { fill: var(--cnt-p2); } .cnt-plane .cnt-f3 { fill: var(--cnt-p3); } .cnt-plane .cnt-f4 { fill: var(--cnt-p4); }
.cnt-green .cnt-plane .cnt-f1 { fill: #2b8a3e; } .cnt-green .cnt-plane .cnt-f2 { fill: #8ce99a; } .cnt-green .cnt-plane .cnt-f3 { fill: #51cf66; } .cnt-green .cnt-plane .cnt-f4 { fill: #b2f2bb; }
.cnt-motion { transition: opacity .3s; }
.cnt-busy .cnt-motion, .cnt-sent .cnt-motion { opacity: 0; }
.cnt-wind line { stroke-dasharray: .5 1.5; stroke-dashoffset: .5; opacity: 0; }
.cnt-flying .cnt-wind line { animation: cnt-wind .5s linear infinite; }
.cnt-flying .cnt-wind line:nth-child(2) { animation-delay: .15s; } .cnt-flying .cnt-wind line:nth-child(3) { animation-delay: .3s; } .cnt-flying .cnt-wind line:nth-child(4) { animation-delay: .45s; }
@keyframes cnt-wind { 0% { stroke-dashoffset: .5; opacity: 0; } 50% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }

/* Success */
.cnt-success { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: cnt-pop .5s both; }
.cnt-success[hidden] { display: none; }
.cnt-success svg { width: 80px; height: 80px; margin-bottom: 20px; }
.cnt-success circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cnt-draw .6s ease-in-out forwards; }
.cnt-success path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cnt-draw .4s .5s ease-out forwards; }
.cnt-success h3 { margin: 0 0 10px; color: var(--cnt-ok); font-size: 28px; }
.cnt-success p { margin: 0; color: #666; font-weight: 500; }
@keyframes cnt-pop { from { opacity: 0; transform: scale(.8); } }
@keyframes cnt-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
  .cnt-illustration-side { min-height: 180px; }
  .cnt-paper-plane-svg { width: 180px; height: 180px; }
}
@media (max-width: 480px) {
  .cnt-card { padding: 32px 20px 44px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) { .cnt-card-wrapper *, .cnt-card-wrapper { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }
