/* Container */
.kw-wrapper {
  border-radius: 8px;
  padding: 24px;
  margin: 0 auto;
  font-family: "Montserrat", Sans-serif !important;
}

/* Form rows */
.kw-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

/* Stack */
.kw-stack {
  display: flex;
  flex-direction: column;
}

/* Validation placeholder */
.kw-validation-placeholder {
  height: 18px;
}

/* Field */
.kw-field {
  flex: 1;
  min-width: 200px;
}

/* Labels */
.kw-label {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

/* Inputs */
.kw-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: #f8f9fa;
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* Submit wrap */
.kw-submit-wrap {
  flex-shrink: 0;
}

/* Button */
.kw-button {
    height: 53px;
    padding: 10px 24px !important;
    border: none !important;
    border-radius: 50px !important;
    background: #b8955e !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    margin-top: 15px;
}

/* Consent row */
.kw-consent-row {
  display: flex;
  align-items: flex-start;
  margin-top: 16px;
  gap: 8px;
}
.kw-checkbox {
  margin-top: 6px;
  width: 16px;
  height: 16px;
}
.kw-consent-text {
  color: #f1f1f1;
  font-size: 0.875rem;
  line-height: 1.4;
}
.kw-link {
  color: #f1f1f1;
  text-decoration: underline;
}
.kw-note {
    color: rgba(241, 241, 241, 0.7);
    font-size: 0.95rem;
    margin-top: 8px;
    text-align: center;
}

/* AJAX response */
.kw-response {
  margin-top: 16px;
  font-size: 0.95rem;
}

/* Verify Email button */
.kw-verify-btn {
  margin-top: 8px;
  height:36px;
  padding:0 16px;
  background:#fff;
  border:none;
  border-radius:6px;
  font-size:0.9rem;
  cursor:pointer;
  box-shadow:0 1px 3px rgba(0,0,0,0.2);
}
.kw-verify-btn:hover {
  background:#f1f1f1;
}

/* OTP info */
.kw-info {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
    color: #607179 !important;
    line-height: 22px !important;
    margin-top: 10px !important;
}

/* OTP buttons */
.kw-otp-buttons {
  margin-top:8px;
  display:flex;
  gap:8px;
}
.kw-confirm-btn {
  background:#0066ff;
  color:#fff;
  border:none;
  border-radius:6px;
  padding:8px 16px;
  cursor:pointer;
}
.kw-edit-btn {
  background:#fff;
  color:#333;
  border:1px solid #ccc;
  border-radius:6px;
  padding:8px 16px;
  cursor:pointer;
}

/* Success & Error */
.kw-success-info {
    /* display: flex; */
    align-items: center;
    color: #4BB543;
    font-size: 0.9rem !important;
    margin-top: 15px !important;
    line-height: 20px !important;
}
.kw-success-icon {
  font-size:1.2rem;
  margin-right:8px;
  line-height:1;
}
.kw-validation-error {
  color:#e74c3c;
  font-size:0.85rem;
  margin-top:4px;
}

/* Responsive */
@media (max-width:600px) {
  .kw-row {
    flex-direction:column;
  }
  .kw-submit-wrap {
    width:100%;
    text-align:right;
  }
}

/* little loading spinner */
@keyframes kw-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.kw-button .kw-spinner,
.kw-verify-btn .kw-spinner {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: kw-spin 0.8s linear infinite;
}
/* Loading spinner for Verify Email button */
@keyframes kw-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.kw-verify-btn .kw-spinner {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: kw-spin 0.8s linear infinite;
}
