/* ============================================================
   MODAL.CSS — Get Quote Popup Modal Form
   Kinzi Pharma Landing Page
   ============================================================ */

/* ── Overlay ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
  animation: overlayIn 0.3s ease forwards;
}

/* ── Modal Box ── */
.modal-box {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.modal-box::-webkit-scrollbar { width: 0px; }
.modal-box::-webkit-scrollbar-thumb { background: transparent; }

/* ── Modal Header ── */
.modal-head {
  padding: 28px 32px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal-head-text {}
.modal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(14,124,110,0.1);
  color: var(--teal);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.modal-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease infinite;
}
.modal-title {
  font-family: var(--fd);
  font-size: 26px; font-weight: 400;
  color: var(--black); line-height: 1.15;
  margin-bottom: 6px;
}
.modal-sub {
  font-size: 13px; font-weight: 300;
  color: var(--gray); line-height: 1.6;
}

/* ── Close Button ── */
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--off); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: var(--gray);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--gray-light); color: var(--black); }

/* ── Modal Body / Form ── */
.modal-body { padding: 24px 32px 32px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-row.full { grid-template-columns: 1fr; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 12px; font-weight: 500;
  color: var(--black); letter-spacing: 0.3px;
}
.form-label span { color: var(--teal); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: 10px;
  font-family: var(--fb);
  font-size: 13px; color: var(--black);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: #b0b0aa; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,124,110,0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8a85' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.6;
}

/* ── Divider ── */
.form-divider {
  height: 1px;
  background: var(--gray-light);
  margin: 20px 0;
}

/* ── Submit ── */
.modal-footer {
  padding: 0 32px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-submit {
  flex: 1;
  padding: 14px 28px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--fb);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.2s;
  min-width: 180px;
}
.btn-submit:hover { background: var(--teal); transform: translateY(-1px); }
.btn-submit.loading { opacity: 0.7; pointer-events: none; }

.btn-wa-modal {
  padding: 14px 20px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--fb);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-wa-modal:hover { background: #1fba58; transform: translateY(-1px); }

.modal-privacy {
  width: 100%;
  font-size: 11px; color: var(--gray);
  text-align: center; line-height: 1.6;
}
.modal-privacy a { color: var(--teal); }

/* ── Success State ── */
.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px;
  gap: 16px;
}
.modal-success.show { display: flex; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(14,124,110,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  animation: pulse 2s ease infinite;
}
.success-title { font-family: var(--fd); font-size: 24px; font-weight: 400; color: var(--black); }
.success-sub   { font-size: 14px; font-weight: 300; color: var(--gray); line-height: 1.7; max-width: 340px; }
.success-close {
  padding: 11px 28px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--fb);
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.success-close:hover { background: var(--teal); }

/* ============================================================
   RESPONSIVE.CSS — Media Queries
   ============================================================ */

@media (max-width: 1100px) {
  #hero                        { grid-template-columns: 1fr; }
  .hl                          { min-height: auto; padding: 48px 36px 40px; }
  .hr                          { flex-direction: row; min-height: 360px; }
  .hphoto                      { min-height: 260px; flex: 1.5; }
  .hplatf                      { height: auto; flex: 1; min-height: 200px; }
  .about-card                  { grid-template-columns: 1fr; }
  .aimg                        { height: 260px; }
  #programs                    { grid-template-columns: 1fr; gap: 40px; }
  .ftop                        { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  #about, #categories, #services,
  #insights, #reach, #programs,
  #process                     { padding: 60px 24px; }
  .srv-tabs                    { grid-template-columns: repeat(2, 1fr); }
  .srv-btm                     { grid-template-columns: 1fr; }
  .tgrid                       { grid-template-columns: 1fr 1fr; }
  .cats-grid                   { grid-template-columns: repeat(2, 1fr); }
  .ctalime                     { padding: 60px 32px; }
  footer                       { padding: 48px 24px 28px; }
  .proc-grid                   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nlinks                      { display: none; }
  .nham                        { display: flex; }
  .tgrid                       { grid-template-columns: 1fr; }
  .cats-grid                   { grid-template-columns: 1fr; }
  .ftop                        { grid-template-columns: 1fr; }
  .cta-contact                 { flex-direction: column; align-items: center; gap: 16px; }
  .proc-grid                   { grid-template-columns: 1fr 1fr; }
  .form-row                    { grid-template-columns: 1fr; }
  .modal-box                   { border-radius: 20px; }
  .modal-head                  { padding: 20px 20px 0; }
  .modal-body                  { padding: 18px 20px 20px; }
  .modal-footer                { padding: 0 20px 24px; flex-direction: column; }
  .btn-submit                  { width: 100%; }
  .btn-wa-modal                { width: 100%; justify-content: center; }
  .hr                          { flex-direction: column; min-height: auto; }
  .hphoto                      { min-height: 220px; flex: none; height: 220px; }
  .hplatf                      { height: 120px; }
}
