.ik-form {
  background: #fff;

  padding: 20px;

  border-radius: 12px;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.ik-field {
  margin-bottom: 14px;
}

.ik-field label {
  display: block;

  font-weight: 600;

  margin-bottom: 6px;
}

.ik-field label span {
  color: #ef4444;
}

.ik-field input[type="text"],
.ik-field input[type="tel"],
.ik-field textarea {
  width: 100%;

  padding: 10px 12px;

  border: 1px solid #dbe3f0;

  border-radius: 10px;

  outline: none;
}

.ik-field textarea {
  resize: vertical;
}

.ik-signature-wrap {
  position: relative;

  border: 1px dashed #a3b5d3;

  border-radius: 12px;

  padding: 8px;

  background: #f8fbff;
}

#ik-signature {
  width: 100%;

  height: 200px;

  border-radius: 8px;

  background: #fff;
}

#ik-clear {
  position: absolute;

  right: 12px;

  bottom: 12px;
}

.ik-hidden {
  position: absolute;

  left: -9999px;

  width: 1px;

  height: 1px;

  overflow: hidden;
}

.ik-consent input {
  margin-right: 8px;
}

.ik-actions {
  display: flex;

  align-items: center;

  gap: 12px;
}

.ik-btn {
  background: #3b82f6;

  color: #fff;

  border: none;

  border-radius: 10px;

  padding: 10px 16px;

  cursor: pointer;

  font-weight: 600;
}

.ik-btn.ghost {
  background: transparent;

  color: #0f2f52;

  border: 1px solid #9fb7d8;
}

.ik-status {
  font-size: 0.95rem;

  opacity: 0.85;
}

#ik-offline-btn {
  padding: 4px 10px;
  font-size: 16px !important;
  background: #0b2e4e;
}

@media (max-width: 768px) {
  .ik-mt-2 {
    margin-top: 20px;
  }
}

/* --- 2. Signature Canvas Styling (Responsive) --- */
.ik-signature-wrap {
  position: relative;
  border: 1px solid #000;
  border-radius: 4px;
  /* Aspect ratio container (important for responsive canvas) */
  width: 100%;
  padding-bottom: 33.33%; /* 600/200 = 3:1 aspect ratio */
  height: 0;
  overflow: hidden;
  touch-action: none; /* Prevents scrolling while signing on mobile */
}
#ik-signature {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.ik-signature-wrap #ik-clear {
  position: absolute;
  bottom: 5px;
  right: 5px;
  z-index: 10;
  opacity: 0.8;
  padding: 5px 10px;
  font-size: 0.8rem;
}

/* --- 4. Success Modal Styling --- */
#ik-success-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  padding-top: 60px;
  box-sizing: border-box;
}
.ik-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  position: relative;
}
.ik-modal-content h2 {
  color: #28a745;
  font-weight: bold;
  margin-top: 0;
  font-size: 1.5rem;
}
.ik-close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  line-height: 20px;
}
.ik-close:hover,
.ik-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
