/* ============================================================
   TiCi Aquascape India — Collaborate Page Modal Popup Forms
   Dark-themed variant (matches the reference screenshots).
   Self-contained: does NOT touch assets/css/style18.css or
   common16.js. All selectors are prefixed "tici2-" so nothing
   here collides with the collaborate page's own markup/JS/GSAP
   selectors.
   ============================================================ */

.tici2-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  background: rgba(4, 8, 7, 0.82);
  backdrop-filter: blur(4px);
}

.tici2-modal-overlay.is-open {
  display: flex;
}

.tici2-modal {
  display: none;
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: auto;
  background: #1c1c19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 36px 36px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: tici2PopIn 0.25s ease;
}

.tici2-modal.is-active {
  display: block;
}

@keyframes tici2PopIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tici2-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #d7f24a;
  color: #17170f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.tici2-modal-close:hover {
  background: #c3e02f;
  transform: scale(1.06);
}

.tici2-modal-head {
  margin-bottom: 24px;
  padding-right: 20px;
}

.tici2-modal-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d7f24a;
  border: 1px solid rgba(215, 242, 74, 0.4);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
}

.tici2-modal-label i {
  color: #d7f24a;
  font-style: normal;
  font-size: 12px;
}

.tici2-modal-head h3 {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #ffffff;
}

.tici2-modal-head p {
  font-family: "Open Sans", sans-serif;
  font-size: 14.5px;
  color: #b7b7ae;
  margin: 0;
  line-height: 1.55;
}

.tici2-form {
  font-family: "Open Sans", sans-serif;
}

.tici2-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tici2-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.tici2-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f1ea;
  margin-bottom: 8px;
}

.tici2-field label span {
  color: #e2574c;
}

.tici2-field input,
.tici2-field select,
.tici2-field textarea {
  font-family: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #232320;
  color: #f1f1ea;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.tici-field select option {
    color: #000 !important;
    background-color: #fff;
}

.tici2-field input::placeholder,
.tici2-field textarea::placeholder {
  color: #7c7c72;
}

.tici2-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%23b7b7ae' stroke-width='1.6' fill='none' fill-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.tici2-field select option {
  background: #1c1c19;
  color: #f1f1ea;
}

.tici2-field input:focus,
.tici2-field select:focus,
.tici2-field textarea:focus {
  border-color: #d7f24a;
  background: #29291f;
}

.tici2-field textarea {
  resize: vertical;
  min-height: 90px;
}

.tici2-form-msg {
  min-height: 0;
  font-size: 13.5px;
  border-radius: 10px;
  margin-bottom: 14px;
  transition: all 0.15s ease;
}

.tici2-form-msg:empty {
  margin-bottom: 0;
}

.tici2-form-msg.is-error {
  padding: 10px 14px;
  background: rgba(226, 87, 76, 0.12);
  color: #ff8b81;
  border: 1px solid rgba(226, 87, 76, 0.35);
}

.tici2-form-msg.is-success {
  padding: 10px 14px;
  background: rgba(63, 214, 166, 0.12);
  color: #7ee9c8;
  border: 1px solid rgba(63, 214, 166, 0.35);
}

.tici2-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: #d7f24a;
  color: #14170e;
  font-family: "Jost", sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 15px 24px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.tici2-submit-btn i {
  font-size: 14px;
}

.tici2-submit-btn:hover {
  background: #c3e02f;
}

.tici2-submit-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.tici2-form.is-submitted-success .tici2-field,
.tici2-form.is-submitted-success .tici2-form-row {
  display: none;
}

@media (max-width: 640px) {
  .tici2-modal {
    padding: 30px 22px 26px;
    border-radius: 14px;
  }

  .tici2-modal-close {
    top: 14px;
    right: 14px;
  }

  .tici2-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tici2-modal-head h3 {
    font-size: 23px;
  }
}
